syntax101 Posted January 31, 2008 Share Posted January 31, 2008 my code in php <?php mail("[email protected]","hai","hai","[email protected]"); ?> 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 = [email protected] 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("[email protected]","hai","hai","[email protected]"); ?> Try this and see if it works for you. mail("[email protected]","hai","hai","From: [email protected]"); 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. Link to comment https://forums.phpfreaks.com/topic/88674-help-with-email-sending/#findComment-454151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.