Page 1 of 1

fail to send mail

Posted: Tue Nov 24, 2009 7:14 am
by naik.jayashri
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?

Re: fail to send mail

Posted: Tue Nov 24, 2009 8:15 am
by superdezign
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.