0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

Merge pull request #4 from nathanl/more_documentation

Showing more usage options
This commit is contained in:
Marcus Bointon 2012-09-14 01:12:43 -07:00
commit da3c464034

View File

@ -73,6 +73,8 @@ $mail->FromName = "Mailer";
$mail->AddAddress("josh@example.net", "Josh Adams");
$mail->AddAddress("ellen@example.com"); // name is optional
$mail->AddReplyTo("info@example.com", "Information");
$mail->AddCC('cc@example.com');
$mail->AddBCC('bcc@example.com');
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments
@ -94,6 +96,14 @@ echo "Message has been sent";
?>
```
## Additional Options
```php
// Encrypt the connection to the email server
$mail->SMTPSecure = 'tls'; // 'ssl' also accepted
```
## CHANGELOG
See ChangeLog.txt