Gmunky Posted April 5, 2007 Share Posted April 5, 2007 I am trying to send a simple email using the mail() function. But I get a weird error: ErrorCode: 2 ErrorMsg : mail() [function.mail]: Unable to send message to SMTP server. No recipients specified. ite. ice ready. mail not sent my code: mail("[email protected]","test subject","test message","FROM: [email protected]") I'm thinking I might have to change my php.ini file? or my server isn't set up right? any help would be appreciated.Thanks!! Link to comment https://forums.phpfreaks.com/topic/45717-problem-with-mail/ Share on other sites More sharing options...
opels Posted April 5, 2007 Share Posted April 5, 2007 is the php file on the domain : bsu.edu ? if not there may be some security settings blocking sending email from a different domain ie. domain = domain.com can only send emails from [email protected] not [email protected] Link to comment https://forums.phpfreaks.com/topic/45717-problem-with-mail/#findComment-222078 Share on other sites More sharing options...
Gmunky Posted April 5, 2007 Author Share Posted April 5, 2007 no. I'm actually using 'FROM: [email protected]' for the header. And I have the domain set up like your reply. I'll have to ask someone who set up the server about the security settings. Thnks Link to comment https://forums.phpfreaks.com/topic/45717-problem-with-mail/#findComment-222090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.