Showing more usage options

This commit is contained in:
Nathan Long 2012-09-11 10:56:14 -06:00
parent be7f588afb
commit 8d276bb54f
1 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,8 @@ $mail->FromName = "Mailer";
$mail->AddAddress("josh@example.net", "Josh Adams"); $mail->AddAddress("josh@example.net", "Josh Adams");
$mail->AddAddress("ellen@example.com"); // name is optional $mail->AddAddress("ellen@example.com"); // name is optional
$mail->AddReplyTo("info@example.com", "Information"); $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->WordWrap = 50; // set word wrap to 50 characters
$mail->AddAttachment("/var/tmp/file.tar.gz"); // add attachments $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 ## CHANGELOG
See ChangeLog.txt See ChangeLog.txt