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("jrestiva@gmail.com","test subject","test message","FROM: jrestiva@bsu.edu") 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!! Quote Link to comment 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 anyname@domain.com not anyname@anotherdomain.com Quote Link to comment Share on other sites More sharing options...
Gmunky Posted April 5, 2007 Author Share Posted April 5, 2007 no. I'm actually using 'FROM: name@fpdirect.com' 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 Quote Link to comment 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.