Sending Out SPAM! NEED HELP! PLEASE CHECK

Discussion in 'PHP' started by resellwww, Jun 4, 2008.

  1. #1
    THIS SCRIPT IS SEND SPAMS... CAN ANY ONE TELL ME HOW TO SOLVE THIS ?

    $mailer = new PHPMailer();
    $mailer->IsSMTP();
    $mailer->Host = 'ssl://smtp.gmail.com:465';
    $mailer->SMTPAuth = TRUE;
    $mailer->Username = 'xxxxxx@googlemail.com';  // Change this to your gmail adress
    $mailer->Password = 'xxxxxx';  // Change this to your gmail password
    $mailer->From = "$_POST['fromemail']";  // This HAVE TO be your gmail adress
    $mailer->FromName = "$_POST['name']"; // This is the from name in the email, you can put anything you like here
    $mailer->AddReplyTo("$_POST['fromemail']");
    $mailer->Body = "$_POST['msg']";
    //$mailer->IsHTML(true); // send as HTML
    $mailer->Subject = "$_POST['subject']";
    $mailer->AddAddress($invite_email);  // This is where you put the email adress of the person you want to mail
    if(!$mailer->Send())
    {
       echo "<br>Message was not sent<br/ >";
       echo "Mailer Error: " . $mailer->ErrorInfo;
    }
    else
    {
       echo "Message has been sent";
    }
    PHP:

     
    resellwww, Jun 4, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    what do you mean by sends spam?
     
    crath, Jun 4, 2008 IP
  3. resellwww

    resellwww Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just need help in this script as this is a SMTP mailing script, which is not working properly... and sending mails as SPAM
     
    resellwww, Jun 4, 2008 IP