• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

phpMailer

DiegoAlves

New Pleskian
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 = "[email protected]";
$ mail-> Password = "asdfahDdfa838";
$ mail-> Port = 587;
$ mail-> From = $ _POST ['ipt_email'];
$ mail-> FromName = $ _POST ['ipt_nome'];
$ mail-> AddAddress ('[email protected]', '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']);

}
?>
 
Back
Top