1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

phpMailer

Discussion in 'Plesk 11.x for Linux' started by DiegoAlves, Jan 14, 2013.

  1. DiegoAlves

    DiegoAlves New Pleskian

    11
     
    Joined:
    Dec 23, 2012
    Messages:
    16
    Likes Received:
    0
    Guys, my phpmailer began to accuse the following error:
    Error: The following From address failed:
    He was running smoothly.


    code:
    <? php}
    else {
    / * SEND MAIL


    $ msg = "
    Name: $ _POST [ipt_nome]
    Email: $ _POST [ipt_email]
    Message: $ _POST [ipt_mensagem]
    ";

    require ("phpmailer / class.phpmailer.php");
    $ mail = new PHPMailer ();
    $ mail-> CharSet = "iso-8859-1";
    $ mail-> IsSMTP ();
    $ mail-> Host = "mail.meudominio.com.br";
    $ mail-> SMTPAuth = true;
    $ mail-> Username = "atendimento@meudominio.com.br";
    $ mail-> Password = "asdfahDdfa838";
    $ mail-> Port = 587;
    $ mail-> From = $ _POST ['ipt_email'];
    $ mail-> FromName = $ _POST ['ipt_nome'];
    $ mail-> AddAddress ('atendimento@meudominio.com.br', 'Contact');
    $ mail-> IsHTML (true);
    $ mail-> Subject = 'Website - Contact';
    $ mail-> Body = $ msg;
    if (! $ mail-> Send ()) {
    echo 'Error <h2> send your message </ h2>';
    print "Error:". $ mail-> ErrorInfo;

    }
    else {
    echo 'h2> Message sent successfully. </ h2>';

    }

    unset ($ _POST ['ipt_send']);

    }
    ?>
     
Loading...