Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail->Host = 'smtp.host.net'; // SMTP server example
- $mail->SMTPDebug = 3; // enables SMTP debug information (for testing)
- $mail->SMTPAuth = true; // enable SMTP authentication
- $mail->Port = 465; // set the SMTP port for the GMAIL server
- $mail->SMTPSecure = 'ssl';
- $mail->Username = 'user'; // SMTP account username example
- $mail->Password = 'password'; // SMTP account password example
- $mail->setFrom('emailaddress at domainname.com','Mailer');
- //$mail->FromName = 'Mailer';
- $mail->addAddress('xxxxxx at gmail.com');
- $mail->Subject = 'Here is the subject';
- $mail->Body = 'This is the HTML message body in bold!';
- $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
- $mail->send();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement