I would greatly appreciate any help i can get.
I wrote a script that will send an email from my server using mail() but it is ending up in Junk folders for Web Based email services. My friend set up his own email server and it did not end up in the Junk department.
Is it because of spam filtering? It is a legitimate email being sent from my homepage. Below is the code, please help me fix it.
Code: Select all
//Send email to non-member
$mail_to = $token_array[1];
$mail_from = $email_addr;
$mail_headers = "To: $mail_to\r\nFrom: $mail_from\r\nReply-to:$mail_reply_to\r\nCc:$mail_cc\r\nBcc: $mail_bcc\r\n";
$mail_subject = "Invitation from ".ucwords($_SESSION["firstname"])." ".ucwords($_SESSION["lastname"]);
$mail_body = "Hi there!";
if (mail($mail_to, $mail_subject, $mail_body, $mail_headers))
{
//Do stuff to DataBase
}Regards
Mian
feyd|please use
Code: Select all
tags when posting code.[/color]