udara1986
06-19-2009, 09:28 AM
download attachment and extract files into folder named email inside your development folder(htdocs/mydevelopment).
then use following code to create your email messege,
require_once('../email/class.phpgmailer.php'); //path to the above folder
$mail = new PHPGMailer();
$mail->Username = '*****@gmail.com'; //SMTP username
$mail->Password = '*****'; //SMTP password
$mail->From = '[email protected]';
$mail->FromName = 'anyone';
$mail->Subject = 'php gmail';
$mail->AddAddress($email);
$mail->Body = 'this is simply great';
$mail->Send();
now you are done with it.
then use following code to create your email messege,
require_once('../email/class.phpgmailer.php'); //path to the above folder
$mail = new PHPGMailer();
$mail->Username = '*****@gmail.com'; //SMTP username
$mail->Password = '*****'; //SMTP password
$mail->From = '[email protected]';
$mail->FromName = 'anyone';
$mail->Subject = 'php gmail';
$mail->AddAddress($email);
$mail->Body = 'this is simply great';
$mail->Send();
now you are done with it.