i m writing simple php mail function
mail($to,$subject,$message)
while sending mail i did not get any error, but in the mail box i did not receive any mail.
whts the problem? need to do any settings?
fail to send mail
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: fail to send mail
Your server needs an SMTP connection, I believe. If it isn't set up, then mail() will do nothing. I think there is a way to create one in PHP, but I'm not sure of how to do it myself. Try using SwiftMailer. It has the capability for you to connect to an SMTP server to send your e-mail with.