<?php $to = '[email protected]'; $subject = 'Test email'; $message = "Hello World!\n\nThis is my first mail."; $headers = "From: [email protected] \r\nReply-To: [email protected]"; $mail_sent = @mail( $to, $subject, $message, $headers ); 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