Developing the content of a custom email template JSP file
You can develop dynamic and personalized email
message content for your custom email template JSP file. When you
are developing the content, you must adhere to certain specification
rules.
About this task
To receive email activities, the customer must have opted in for marketing emails during store registration or account updates. The EmailActivityUrlHelperDataBean class gives customers a quick opt-out method.
The content of an email message is separated from the address (both the sender and recipient) and subject elements of the message. A typical example of a MIME email message header follows:
Received: from localhost (localhost)
by some.address.com (1.12.256/1.12.256) id g8UG02Hj033414;
Tue, 22 Oct 2002 14:43:22 -0400
Date: Tue, 22 Oct 2002 14:43:22 -0400
From: Mail Delivery Subsystem
<MAILER-DAEMON@some.address.com>
Message-Id:
<200209301843.g8UG02Hj033414@some.address.com>
To: <yourname@anotherAddress.com>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="g8UG02Hj033414.1033411402/some.address.com"
Subject: Returned mail: see transcript for details
--g8UG02Hj033414.1033411402/some.address.com
The original message was received at Tue, 22 Oct 2002 13:57:55
-0400 from
yet.another.address.com [256.256.256.256]
As can be seen from the areas marked in bold, the content of the email is distinctly separate from the header information. This separation influences software APIs and products that are developed using these email formats.
When you are creating an email template, you must adhere to the following specification rules: