syntax101 Posted January 31, 2008 Share Posted January 31, 2008 my code in php <?php mail("hvillacruz@yahoo.com","hai","hai","hvillacruz@yahoo.com"); ?> Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing i have an error can anyone help me with this this is the code from my php.ini [mail function] ; For Win32 only. SMTP=smtp.mail.yahoo.com smtp_port=25 ; For Win32 only. sendmail_from = hvillacruz@yahoo.com Quote Link to comment https://forums.phpfreaks.com/topic/88674-help-with-email-sending/ Share on other sites More sharing options...
Azarian Posted January 31, 2008 Share Posted January 31, 2008 <?php mail("hvillacruz@yahoo.com","hai","hai","hvillacruz@yahoo.com"); ?> Try this and see if it works for you. mail("hvillacruz@yahoo.com","hai","hai","From: hvillacruz@yahoo.com"); Quote Link to comment https://forums.phpfreaks.com/topic/88674-help-with-email-sending/#findComment-454108 Share on other sites More sharing options...
syntax101 Posted January 31, 2008 Author Share Posted January 31, 2008 i tried your code but there is a new error Warning: mail() [function.mail]: SMTP server response: 530 Authenticate before sending emails. Quote Link to comment https://forums.phpfreaks.com/topic/88674-help-with-email-sending/#findComment-454151 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.