Foro Support  

Ingresa tu email y recibiras los ultimos anuncios


Go Back   Foro Support > Panel de Hosting > Dotnetpanel

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-16-2012, 09:39 AM
Super Moderator
 
Join Date: Dec 2011
Posts: 55
Default 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 :

Quote:
< ?

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();

? >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:05 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2