Need help with mail sending. Please! |
[eluser]Unknown[/eluser]
I'm new to CI and enjoying every minute of it. But I've run into a minor snag and can't seem to find a way around it. I'm trying to send a verification email to the user but I keep getting the error Code: SMTP server response: 550 5.7.1 Unable to relay for email@mydomain The relay permissions have been set on the server but I'm not sure if I've got everything 100% in the libraries/email.php file My set up is as follows: PHP5, Apache2 on Windows (WAMP server 1.7.2) Anything specific I should look out for? Any help would be greatly appreciated! Thanks
[eluser]Derek Allard[/eluser]
Welcome to CI Ghad. Can you send regular phpmail outside of CI using Code: mail('[email protected]', 'subject', 'body'); I notice that you're using SMTP, but standard mail tends to be easier to get working if that's supported by your host.
[eluser]Christopher Blankenship[/eluser]
Welcome Ghad: In addition to what Derek stated; some hosts such as yahoo block external sending of mail that have not been set to active or configured to send email. For this you will need to check if such a block is in place and specify the specific email address that has access to send an email from your site and verify that in your scripting. |
Welcome Guest, Not a member yet? Register Sign In |