john49 Posted June 25, 2015 Share Posted June 25, 2015 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? Quote Link to comment https://forums.phpfreaks.com/topic/297032-how-to-create-an-email-in-nice-format-from-a-html-form/ Share on other sites More sharing options...
fastsol Posted June 26, 2015 Share Posted June 26, 2015 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 Quote Link to comment https://forums.phpfreaks.com/topic/297032-how-to-create-an-email-in-nice-format-from-a-html-form/#findComment-1515004 Share on other sites More sharing options...
Raxix Posted January 6, 2016 Share Posted January 6, 2016 According to me if you want to send mail of your HTML form then you take the image of your form and send the soft copy of image.... Quote Link to comment https://forums.phpfreaks.com/topic/297032-how-to-create-an-email-in-nice-format-from-a-html-form/#findComment-1529188 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.