I am trying to send mail using php mail() function. All servers are receiving mails except hotmail. I dont know why hotmail not receiving mails. Pls help me ...its very urgent..

Recommended Answers

All 2 Replies

hotmail may be actively rejecting the message. Are you setting your "from" in the headers? Are you getting a bounceback?

If you have malformed headers, some mail services will actively reject the mail as spam. Also, if the server itself is not configured to identify itself when sending email, some servers will reject the mail as well (so, if you are using a home server or an oddball company).

You would be better served (after you get this up and running) to look into PEAR or some other non php mail() system, either using SMTP or a service that is configured appropriately. The mail() function is incredibly inneficient, hard to maintain, and (as I was taught) it is a last resort when more common systems fail.

ok...i changed my code using php mailer class. but its always showing host error.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.