PHPMailer Class - Foro Support - Manuales tecnicos

Announcement

Collapse
No announcement yet.

PHPMailer Class

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHPMailer Class

    PHPMailer Version 5.1


    Enviar email con php en windows server con multiples TOs, CCs, BCCs y REPLY-TOs

    Incluye archivo class.phpmailer.php , el ejemplo del codigo es de la siguiente manera :

    < ?

    require("class.phpmailer.php");

    $mail = new PHPMailer();
    $mail->IsSMTP();
    $mail->Host = "mail.yourdomain.com";
    $mail->SMTPAuth = true;
    $mail->Username = "you@yourdomain.com";
    $mail->Password = "EmailPassword";

    $mail->From = "you@yourdomain.com";
    $mail->FromName = "Your Name";
    $mail->AddReplyTo("you@domain.com");
    $mail->AddAddress("user@domain.com");
    $mail->IsHTML(true);

    $mail->Subject = "Test message sent using the PHPMailer component";
    $mail->Body = "This is a test message.";

    $mail->Send();

    ? >
Working...
X