E-mail activity delivery algorithm
E-mail activity delivery requires the JavaMail API. E-mail messages are created and delivered through the use of this API's SMTP server interface, and the object-oriented model of the standard MIME e-mail message format. Delivery is started on the day specified by the Marketing Manager. The WebSphere Commerce scheduler launches a job at the specified date and time which starts the e-mail activity delivery.
The email activity delivery algorithm is as follows:
- Look up the e-mail promotion scheduled for delivery, including the target customer segment and e-mail template.
- Query the target customer segment for the e-mail activity to obtain the list of recipients.
- Verify that each recipient has opted to receive e-mail, as specified in the EMLUSRRECV table.
- Read the e-mail configuration data through the console.
- Connect to the SMTP server according to the outbound e-mail configuration.
- Iterate through every recipient calling the e-mail template for each.
- Add the inbound account address as the "sender" e-mail address, and the outbound account address as the "replyTo" address.
- Send the e-mail message.
- Disconnect and update the state of the e-mail activity.
It should be noted that the SMTP server used should adhere to the following RFC specifications:
- Email address adhering to RFC 822 (* stores should enforce this for registration)
- POP3 server as defined in RFC 1939 capable of delivering Delivery Status Notification(DSNs) as defined in RFC 1894
- SMTP server as defined in RFC 2821
For more information about RFCs, refer to www.ietf.org/rfc.html.
Related concepts
E-mail activitiesRelated tasks
Create e-mail activity templates using JSP files