Possible Duplicate:
mail(): SMTP server response: 550 The address is not valid error on hmailserver
I would like test my class senderMail.php.
For to have, a smtp server, I use hMailServer. I have created a domaine, I have created a account, and now I configure SMTP settings.
hMailServer would like a configuration "SMTP RELAYER". I test with the information: smtp.gmail.com on port 587 and I enter my identifier too.
When, I have tested this with my class senderMail.php I have this error:
SMTP server response: 550 The address is not valid
Where come my error ? It's from SMTP RELAYER or a other config ?
why don't you try it to send it directly from localhost.
Go to your
php.ini
file and changeSMTP = localhost to SMTP = aspmx.l.google.com
and uncommentsendmail_from
and put in your sending gmail address.In php, test it with
mail("youremail]@gmail.com", "subject", "body");
Note: This only works when sending email to google hosted email addresses.
OR
try above if its not work use swiftmailer its php mail sending library which also allow to send mail through SMTP its really helpful during development.