Personal tools

Log in

Changes

From All n One's bxp software Wixi

Jump to: navigation, search

Writing HTML Emails

1 byte removed, 16:50, 28 May 2014
no edit summary
The project would follow the major following steps.
 
<p>Getting Started Guides: (from the stackoverflow link above)</p>
<ul>
* [http://www.campaignmonitor.com/resources/will-it-work/guidelines/]Campaign Monitor
* [http://kb.mailchimp.com/article/how-to-code-html-emails/]Mailchimp
* [http://www.sitepoint.com/code-html-email-newsletters/]Sitepoint
* [http://www.reachcustomersonline.com/how-to-code-html-email-newsletters-all-new-version/">]Reach Customers Online* [http://dev.tutsplus.com/tutorials/what-you-should-know-about-html-email--webdesign-12908">]Tuts+</ul>
<p>CSS Support &amp; General Guides:</p>
<p>Here is [http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density]a list of devices</a> by resolution and pixel density</p>
<p>Templates &amp; Frameworks:</p>
The hard part is now over. Your images are on a web server, you have responsive HTML which is cross email browser compatible. All we need to do now is customise it for use record by record.
 
We now need to set up something similar to a mail merge process as you can do with Excel and Word. i.e. the data in the Excel spreadsheet is populated into the Word document.
 
In BE every form has a unique Id number. This number is used in the name of every field.
 
We need to get the field name for the field which contains the data we want to put in the email. Most commonly this is the first name of the customer.
 
Main Menu > Form Management > Form - Field Mapping > Field Mapping - Manage > Choose the form > You now see the field name for each field.
 
The name will appear as strCDA_X_field_Y_Z. X is the unique form Id. Z is the unique question Id. Every question also gets a unique number. If the question is a complex type and is made up of sub parts. Y represents the sub part. So if our form is ID 22. We are looking at the third question which is a complex - name block made up of Title, Firstname, Initial, Surname and in our mail we want the first name to be used our field would be strCDA_22_field_1_22. Each field is uniquely named and the field mapping gives you the field names.
 
BE uses a -- notation to let it know to perform a replacement.
 
Using the field mapping work out the field name need. Into your HTML at the appropriate places put --strCDA_22_field_1_22-- BE then knows when using this to perform the replacement.
Go into the outcome to send the email
 
Main Menu > Form Management > Form - Outcome Manager > Outcome - Edit > Choose your Form > Choose the Outcome > External Communications > External Body > Paste in your HTML here.
 
Fill out the other External mail fields and test the process on yourself.
 
If you have built this properly, you should get your stunning looking email with proper replacements come straight back to you.
7,528
edits