How do I send email with PHPMailer for Windows Hosting?
Posted by Phil (Netcetera) on 25 April 2012 06:03 PM
Please see this link for more information regarding this PHP mail component. 

Special Note 
Be sure to make the following changes when using this coding example: 
1. Replace with a valid Netcetera hosted domain name. 
2. Replace with a valid Netcetera hosted email account. 
3. Replace password with the password for the email account used above. 
4. Replace with a valid email account. 

**Your FROM address must be the same as the email address you authenticate with.**



$mail = new PHPMailer(); 

$mail->Host = "";
$mail->SMTPAuth = true;
$mail->Username = "";
$mail->Password = "EmailPassword";

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


Attached is a sample that includes a form. Copy and paste the code from the attached into a PHP page and make the appropriate changes to the mail server, email addresses, and password. 

(6 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).