diff --git a/examples/code_generator.phps b/examples/code_generator.phps index af0cfcc1..de04f0cc 100644 --- a/examples/code_generator.phps +++ b/examples/code_generator.phps @@ -1,8 +1,9 @@ - -
- -This is a somewhat naïve example of sending similar emails to a list of different addresses. It sets up a PHPMailer instance using SMTP, then connects to a MySQL database to retrieve a list of recipients. The code loops over this list, sending email to each person using their info and marks them as sent in the database. It makes use of SMTP keepalive which saves reconnecting and re-authenticating between each message.
This is an example showing how to use the SMTP class by itself (without PHPMailer) to check an SMTP connection.
+Most of these examples use the 'example.com' domain. This domain is reserved by IANA for illustrative purposes, as documented in RFC 2606. Don't use made-up domains like 'mydomain.com' or 'somedomain.com' in examples as someone, somewhere, probably owns them!