Jump to content

how to create an email in nice format from a HTML form


john49

Recommended Posts

I want to send the attached form (filled in by a member)  with an email with exactly the lay-ou as the Original. All variabels are available through a php script. When I send these by mail tekst is displayed line by line. How can I structure the tekst, so that the form still looks nice?

post-179160-0-75046800-1435254529_thumb.jpg

Link to comment
Share on other sites

Reproducing that exact table in an email won't be super easy.  Email programs tend to not play by the rules of the modern web.  They are still stuck in the 90's.  You must use inline styles to get them to cooperate.  the code gets messy and complicated to maintain this way, but it's the only way to make it work.  What you need to do is build a template of what you want it to look like, but in a manner that you can inject the php info in to the cells you want (sounds like maybe you already have that part handled).  Then you take the template and paste the code in to the textarea on this page http://zurb.com/ink/inliner.php and it will inline all the css for you.  Here is a video tutorial that you will find very helpful https://www.youtube.com/watch?v=gBiocrJuWOA

Link to comment
Share on other sites

  • 6 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.