Bash
php //define the receiver of the email $to = '[email protected]'; //define the subject of the email $subject = 'Test email'; //define the message to be sent. Each line should be separated with \n $message = "Hello World!\n\nThis is my first mail."; //define the headers we want passed. Note that they are separated with \r\n $headers = "From: [email protected] \r\nReply-To: [email protected]"; //send the email $mail_sent = @mail( $to, $subject, $message, $headers ); //if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" echo $mail_sent ? "Mail sent" : "Mail failed"; ?>I am using this code to send mail but o/p is Mail Failed.
no error.so plz help me

Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 9, 2012, 10:26 PM EST
Please refer the below link
http://www.vishalkumar.in/2009/06/php-mail-using-gmail-smtp-tutorial/
Thanks
Astika Jadhav20 reputationPosted Jan 9, 2012, 11:47 PM EST
I go throuth this link but when i download phpmailer the path Root\PHP-Mailer\examples\, and open up test_smtp_gmail_basic.php is not found.
plz help.