Solved

Sending HTML Email

Posted on 2008-10-07
3
856 Views
Last Modified: 2012-05-05
I am using the EmailSetBody function of the 360 Works e mail plugin with Filemaker Pro 9. I am using some HTML code to insert a header, footer and some text in between. The header and footer are sourced from online and the text comes from a field on the database. This works! The only problem is that the text is not constrained to the width of the header and so this makes the email look odd. To solve this I used a table, but the code, GetAsCSS(Customer::Text Field), that worked great outside the table only shows the code, not the referred to text, when used in the table. I have attached a copy of the code I am using.

Can anyone help.

John
EmailSetBody(
    "<html><body>" &
"<table border=\"1\" bordercolor=\"#000000\" width=\"600\" bgcolor=\"#FEFEFE\">
<tr>
<td> <img src=\"http://address of the header.jpg\" ></td>
</tr>
<tr>
<td>  GetAsCSS ( Customers::Text Field )</td>
</tr>
<tr>
<td> <img src=\"http://address of the footer.jpg\" ></td>
</tr>
</table>" & 
    "</body></html>";
    "html"
)

Open in new window

0
Comment
Question by:Torchwood
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
lesouef earned 500 total points
ID: 22668685
...<td>  GetAsCSS ( Customers::Text Field )</td>...
is the guilty one...
you need to concatenate fields or variable and text properly
...<td>" &   GetAsCSS ( Customers::Text Field ) & "</td>....
0
 

Author Closing Comment

by:Torchwood
ID: 31504083
You are a complete legend. Thank you
0
 
LVL 28

Expert Comment

by:lesouef
ID: 22670891
i'd rather be rich!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to Left-Align Navigation bar? 4 26
Set email body to html using vbscript 6 41
Border and image sizing 5 19
Create animated movies for web page 18 45
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question