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:
commit
da3c464034
10
README.md
10
README.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user