Here they are reassigned to local variables for clarity. First, you need to create a new SMTP email message. The attachment that we are specifying here is the encoded copy, not the original. Returning to the calling method, the transmission loop is completed. End if Potential refinements Consider storing email addresses in a many table, related to the contacts table.
Many people have multiple email addresses, and companies are likely to have multiple addresses too.
Create a template file to store frequently used standard messages. Allow for personalization of the messages so that each recipient would be addressed appropriately within the body of the message. Store a copy of the sent message with each contact record, or store a date, time and reference to the message sent. Create a log of bulk email sent. Ignore sending attachments greater than a specific size to certain domains.