A
Anonymous
Guest
HI,
i'm trying to send mail from the my website.....using flash file as a GUI and php at the backen........but my code not working...not sure whether it is the reason of my code or server.......if my domain address is this http://www.mydomain.com --do i have to mention it in my code?
thanks for any help
here is my code
i'm trying to send mail from the my website.....using flash file as a GUI and php at the backen........but my code not working...not sure whether it is the reason of my code or server.......if my domain address is this http://www.mydomain.com --do i have to mention it in my code?
thanks for any help
here is my code
Code:
<?
$ToEmail = "sunnysobhani@gmail.com";
##$ToName = "Jeff";
$ToSubject = "Example Mail from SendMail Tutorial";
$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\nSenders Company: $Company\n\nMessage Sent:\n$ToComments\n\nSender Heard About Site From: $HearAbout\n";
$EmailFooter="\nThis message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.somesite.com";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";
?>