Skip to content

Commit

Permalink
Update examples/test_smtp_gmail_basic.php
Browse files Browse the repository at this point in the history
update to use RFC 2606 email addresses
  • Loading branch information
msturdy committed Feb 27, 2013
1 parent 2f7b3ec commit ea60bd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/test_smtp_gmail_basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
$mail->Username = "yourusername@gmail.com"; // GMAIL username
$mail->Password = "yourpassword"; // GMAIL password

$mail->SetFrom('name@yourdomain.com', 'First Last');
$mail->SetFrom('sender@example.com', 'First Last');

$mail->AddReplyTo("name@yourdomain.com","First Last");
$mail->AddReplyTo("reply-to@example.com","First Last");

$mail->Subject = "PHPMailer Test Subject via smtp (Gmail), basic";

$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test

$mail->MsgHTML($body);

$address = "whoto@otherdomain.com";
$mail->AddAddress($address, "John Doe");
$address = "recipient@example.com";
$mail->AddAddress($address, "Recipient Name");

$mail->AddAttachment("images/phpmailer.gif"); // attachment
$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
Expand Down

0 comments on commit ea60bd8

Please sign in to comment.