Jump to content

problem with mail()


Gmunky

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.