51ff3226 |
1 | <html>\r |
2 | <head>\r |
3 | <title>Examples using phpmailer</title>\r |
4 | </head>\r |
5 | \r |
6 | <body bgcolor="#FFFFFF">\r |
7 | \r |
8 | <h2>Examples using phpmailer</h2>\r |
9 | \r |
10 | <h3>1. Advanced Example</h3>\r |
11 | <p>\r |
12 | \r |
13 | This demonstrates sending out multiple email messages with binary attachments\r |
14 | from a MySQL database with multipart/alternative support.<p>\r |
15 | <table cellpadding="4" border="1" width="80%">\r |
16 | <tr>\r |
17 | <td bgcolor="#CCCCCC">\r |
18 | <pre>\r |
19 | require("class.phpmailer.php");\r |
20 | \r |
21 | $mail = new phpmailer();\r |
22 | \r |
23 | $mail->From = "list@example.com";\r |
24 | $mail->FromName = "List manager";\r |
25 | $mail->Host = "smtp1.example.com;smtp2.example.com";\r |
26 | $mail->Mailer = "smtp";\r |
27 | \r |
28 | @MYSQL_CONNECT("localhost","root","password");\r |
29 | @mysql_select_db("my_company");\r |
30 |