The following From address failed: Failed to send mail
{[email protected]: MAIL FROM command failed, Envelope FROM
.‘[email protected] email address not allowed
,553, SMTP server error: MAIL FROM command failed Detail: Envelope FROM ‘[email protected]’ email address not allowed.
SMTP code: 553 SMTP server error: MAIL FROM command failed Detail: Envelope FROM ‘[email protected]’ email address not allowed.
SMTP code: 553
i used Elastic Email
my code
try {
// SMTP
$mail->isSMTP();
$mail->Host = ‘smtp.elasticemail.com’;
$mail->SMTPAuth = true;
$mail->Username = ‘[email protected]’;
$mail->Password = ‘xxxx’;
$mail->SMTPSecure = ‘tls’;
$mail->Port = 2525;
Maybe port 2525 works, I haven’t actually tested. I would still recommend to use port 587 because I am sure that it works, but if it’s not giving you issues, then all is fine.
As for the issue itself, the error is returned by Elastic Email, so I’m guessing that it’s a configuration problem with what they need on their end. My first guess would be to check the allowed sender domains in Elastic Email and make sure that the domain arabx10.kesug.com is setup and verified there as a sender domain.
All transactional email providers I know require you to link and configure your domain name to send email from it. So sending email from [email protected] is definitely not allowed because you don’t represent gmail.com (and neither does Elastic Email, which would cause problems for them too).