I have a problem in CodeIgniter, sending a validation email:
A PHP Error was encountered
Severity: Warning
Message: mail() [function.mail]: SMTP server response: 550 The address
is not valid.
Filename: libraries/Email.php
Line Number: 1553
Usually this error means your mail server requires SMTP authentication to send emails. You may have two options, one is to change to another SMTP server that does not require authentication.
The other option will be to put the credentials in your config. Please check this page, and try with the smtp_user/smtp_pass settings.
If you post your config settings and the use case, I'll be able to provide you with more details.
To be clear, "550 The address is not valid." means that the mail server cannot accept your email because it cannot find the mailbox "admin#cam-corp.com". Are you sure that you have configured your mailserver properly?
Related
I am trying to send mass e-mails via PHPList software with the Direct Mail service in Alibaba Cloud, but I am getting the error below.
Error sending email to email#gmail.com SMTP Error: data not accepted.SMTP server error: DATA command failed Detail: Invalid rcptto [#sm070102] at DATA State(Connection IP address:111.111.11.11) ANTISPAM_BAT[01201311R166c, ay35sg011193009126]: invaddr reject SMTP code: 559
What should I do to fix this problem?
Smtp details which we use are correct, for host smtp.office365.com mail is not sent every time.
Sometimes this error is generated,
Fatal error: Uncaught Swift_TransportException: Failed to authenticate on SMTP server with username "XXX" using 2 possible authenticators in vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/AuthHandler.php on line 181
Observed behaviour
Sometimes with the same details, emails are sent.
Expected behaviour
It should send an email every time.
Can anyone please tell me what should I do?
Is the login credentials you used correct and the.env file configured correctly? Here are two links that might be useful to you.
PHP Fatal error: 'Swift_TransportException' with message 'Failed to authenticate on SMTP server
Failed to authenticate on SMTP server error using gmail
I have a PHP script that attempts to send an email, but continually triggers this error on my local machine:
Warning: mail(): SMTP server response:
554 5.7.1 [TPG-B01] Backscatter rejected to prevent DNSBL listings.
Please reject mail during the SMTP session. For more information,
see http://spamlinks.net/prevent-secure-backscatter.htm
Googling reveals almost nothing about what that error means, and the URL referenced appears to be down. Does anyone know what causes it?
I finally tracked it down.
This error occurs when the mail envelope sender is empty, that is when it communicates with a remote SMTP server and sends something like this:
220 mail.tpg.com.au ESMTP (mail14) Sendmail ready.
HELO localhost
250 mail14.tpgi.com.au Hello [x.x.x.x] (may be forged), pleased to meet you
MAIL FROM:<>
250 2.1.0 <>... Sender ok
Even though it says "Sender ok", it's not OK. After sending the message, the 554 error above is triggered.
The solution is to ensure that PHP's sendmail_from setting is valid (and not empty). You can do this in your php.ini file, like so...
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from=foo#bar.com
Or within your script...
ini_set('sendmail_from', 'foo#bar.com');
Hope that helps somebody else out there. It took me hours to track this down.
I am using WAMP on my local computer and I want to use my web hosting smtp.domainname.com to test sending email from my localhost. I have already set smtp, and its port number in php.ini.
it shows the following error.
==================================
( ! ) Warning: mail( [function.mail]: SMTP server response: 550 bosauthsmtp14: Host ipaddress : No unauthenticated relaying permitted in C:\wamp\www\client\email_test.php on line 7
=================================
I am using mail("you#you.com","subject","body").
I am completely new to SMTP. Can anyone help me..
Most webhosts don't allow the requests to originate outside their server farm. Have you checked to make sure they allow this? The error message 550 is "Unable to relay." This would seem to indicate they aren't accepting your request to send an email.
i am trying to use localhost to send mail. however, i am getting this error when sending:
Warning: mail() [function.mail]: SMTP server response: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1). i have smtp settings correct in php.ini and am just confused as to what this means. thanks
There seem to be two primary reasons for this.
The first has to do with the email client configuration (google INVALID HELO OUTLOOK).
The other reason is an improperly configured SMTP server where the server sends out emails with only the server name and not a fully qualified name (e.g., emailserver vs emailserver.mydomain.com).
You should contact your hosting company and give them as much detail as you can. They should be able to help.
If you are using cPanel, you can disable HELO checking. See the user guide. The trade off is you will receive more spam...
I had a similar problem with postfix in Ubuntu. It turned out that I'd not set 'myhostname' in the postfix configuration file.
The problem disappeared when I configured 'myhostname' in the following file:
/etc/postfix/main.cf