Source Rally PHP Community Scripts .. Sign up .. Login
A simple demonstration of using SMTP on phpmailer
This snippet is dependent on http://phpmailer.sourceforge.net/
Access: Public      Tags: phpmailer, mail, smtp
Add to favourites       Subscribe comments       Copy code       Bookmark
<?php
$mail 
= new PHPMailer;
$mail->isSMTP();//
$mail->Host $smtpHost;//smpt.domain.com
$mail->Port $smtpPort;//usually 25
$mail->SMTPKeepAlive true;
//set other values here!
$mail->send();//multiple times!?
$mail->SmtpClose();
?>
Add to favourites       Subscribe comments       Copy code       Bookmark
Sign up to add your own comment here!

Shared by:

regin

Mail user Add to friends
All user contributed content is available under the LGPL unless specified otherwise.
Remaining copyrights Regin Gaarsmand © 2006-2008
About SourceRally.net
Programador PHP