This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
HTML comments in e-mail copy
Started 12 years ago by adrianic | 7 posts |
-
Does machform summary e-mail (what gets sent to submitters and me when someone submits the form) respect HTML commenting (so that it leaves the code as is, without turning it into displayed HTML) while inserting dynamic content?
We are using our forms as content collection forms. To make it easier for me to use that content, I would want to use the following in a summary e-mail, where the form uses the person's entries and puts it in between HTML code:
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td valign="top" width="135"><img src="{element_26}" alt=" " height="125" width="125" /> <br /> <br /> <br /> <br /> <br /></td> <td valign="top"><strong>{element_9} | Booth: </strong> <br /> <em>{element_11}</em><br /> <strong>{element_12}</strong><br /> <br /> <strong>{element_14}</strong> <br /> {element_15} <br /> <br /> <a href="{element_18}">{element_17}</a><br /> <a href="{element_20}">{element_19}</a><br /> <a href="{element_22}">{element_21}</a><br /> <a href="{element_38}">{element_37}</a><br /> <br /> </td> </tr> </tbody> </table>
Makes sense?
Posted 12 years ago # -
It is possible to do so, simply enable "Send Email in Plain Text Format" within your email settings page. This way, the HTML tag won't be translated at all.
MachForm Founder
Posted 12 years ago # -
But will MachForm still insert the entries in {element_38} and so on? What will it do for images? Just post the link to the image?
Posted 12 years ago # -
I tested it out.
With "send e-mail in plain text format" it sort of works, but it doesn't put the link to the image. I guess because the way MachForm is coded, you really just get a "download" link, not a link to the actual image on the server. Is there a way to change that? So that it's the real image link and not a PHP download link?
Also, when I try to send myself the e-mail in HTML format, the MachForm does not respect HTML comment code, for example putting my HTML code in between <!-- and --> to make it inactive HTML/plaintext just makes the whole block of code not show at all in the HTML e-mail. Any way to fix this? Does machform use a different HTML commenting tag like the backticks?
Posted 12 years ago # -
Yuniar? Is there a special symbol (like backticks in apprnitro.com forums) that would suppress HTML to plaintext in a HTML format e-mail? Or will it only work sending the whole thing strictly as plaintext?
Also, still waiting on an answer to whether I can get direct link to images in our receipt e-mails instead of a download link when using the image upload field.
Posted 12 years ago # -
I'm afraid there is no way to exclude HTML code as it is, because the email template accept full HTML code. When you put the HTML comment code such as <!-- and --> it is actually being treated as a real HTML comment, which is not being displayed.
Direct link to images won't be possible either. However, you can set the file to be sent as attachment instead of download link. On most email clients, image being sent as part of email attachment should be displayed directly within the email.
MachForm Founder
Posted 12 years ago # -
Alright, thanks!
Posted 12 years ago #
Reply
You must log in to post.