Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Aula 10 - Curso PHP 2

Olá pessoal!

Tive êxito para receber o email, mas no corpo do email recebido não veio a mensagem como deveria. Vocês pode me ajudar?

Segue mensagem recebida por email:

Delivery to the following recipient failed permanently:

     alura.php.e.mysql@gmail.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain gmail.com by gmail-smtp-in.l.google.com. [2607:f8b0:400d:c08::1a].

The error that the other server returned was:
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1  https://support.google.com/mail/?p=NoSuchUser k32si5674477qtc.136 - gsmtp


----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=from:date:to:subject:message-id:mime-version
         :content-transfer-encoding;
        bh=1jbyAuRY7Fde1RbyqCKSQPL8DxQiKpccYkcJFgWRluY=;
        b=vDE1RMmO7pUOD95/iECRu2etWLSu4uezkTQLlfHvD3dapZ5CC/79kr7iv/6D21bk4J
         D8XVoqNSm2wBlNnZr9jRsyQzT1s04+yn7FpDgU7IjC2RiN/229hQoUxICxob1tkWIUKH
         gDEbm4yulMa7rUm4sFr3EJmVTsplFlWxJwO+0PRB0HdM/6C4jJTPkdAlH4++TQJIXMeK
         xFXFv+icRXsyx+vVU7YHuer7rGCbGz04HM3b47U02Imd65vXQQ0e2q7dqF/bx5JLv7U2
         Ou9NPaq08yIQ1ESgjbDhPde8i425Q14XFIszxvZNK42dMRyPpPO5Ij2ZAl1otFG08vgk
         ZDag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:date:to:subject:message-id:mime-version
         :content-transfer-encoding;
        bh=1jbyAuRY7Fde1RbyqCKSQPL8DxQiKpccYkcJFgWRluY=;
        b=RQivxKPL39bydFyGrhYZsLpkG4JLkBuNknoBmlrwBwRR6GyNPPVQIzr+sCdFLAx7Xi
         pM9A6uJW3PV9PJYwiFJTNqBtYei/PCbcudasdpMHvWqhjT1v+xs5Nj1+nk4PDM820YUc
         mQLz2CvvuzunUSyaJ9o9DhlYOek4OuhKMy9VFuNUDaKpKkOGP93zCmThCv7WjH2WTVRC
         qG2e5/ng+JJw2v9X7I2GXf0eqYufG7XLqY1Taqlt0KLsV2XEFkBRXmKaP6DjQlzRrogC
         EFZprLnNPpx8J8PfKWzjFXT4XYLhbP/4zyciX8XUoHuIG1ijKlgWFvj3+B2oYqaaZXOg
         w7OQ==
X-Gm-Message-State: AIkVDXLYRB+BDoS3/d4IDJsT8+XqyVJ56BaqslzcoDylMUtbO6TPc7CRKxgavpdmQFjOdg==
X-Received: by 10.237.37.148 with SMTP id x20mr15233608qtc.192.1482154511371;
        Mon, 19 Dec 2016 05:35:11 -0800 (PST)
Return-Path: <andrebdesouza96@gmail.com>
Received: from localhost ([187.182.13.96])
        by smtp.gmail.com with ESMTPSA id m30sm10408689qta.7.2016.12.19.05.35.09
        for <alura.php.e.mysql@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 19 Dec 2016 05:35:10 -0800 (PST)
From: Alura Curso PHP e MySQL <andrebdesouza96@gmail.com>
X-Google-Original-From: Alura Curso PHP e MySQL <alura.php.e.mysql@gmail.com>
Date: Mon, 19 Dec 2016 14:35:10 +0100
To: alura.php.e.mysql@gmail.com
Subject: Email de contato da Loja
Message-ID: <24c025e531e262b098e3e54e62bb3eb0@localhost>
X-Mailer: PHPMailer 5.2.17 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="b1_24c025e531e262b098e3e54e62bb3eb0"
Content-Transfer-Encoding: 8bit

Será que está faltando algo no meu código ou algum arquivo da Biblioteca que eu não exportei para o diretório?

Desde já, obrigado!

1 resposta
solução!

Olá Andre,

No caso, a mensagem recebida é de que o usuário de destino não existe.

550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces.

Isso significa que não há o endereço de e-mail indicado para o destinatário. Tente alterar para algum endereço de e-mail seu e teste novamente, que você deve receber normalmente de acordo com o esperado.

Espero ter ajudado.