• Web page frame inside e-mail message?
    12 replies, posted
I'm not into this stuff, so I may be using wrong terms, but through which means I can achieve this result? [img]http://filesmelt.com/dl/zim860977.jpg[/img] When e-mail message is not just plain text, but some kind of an html frame
it's html - mostly tables and images (html is tricky in email clients)
Most decent email clients support some html. None support all html.
I've never had to do it myself, but I've heard it's very difficult to get it to display consistently between email clients. My suggestion would be to keep it as simple as possible. And if you're showing off your Tribes beta acceptance, you suck. :(
There's a few guidelines to follow when making HTML for emails. 1. Make both a plaintext AND an HTML version 2. Have both have a link on the top to a browser version of the email ("if you can't see this email blah blah blah") 3. Use a lot of tables, and don't use floated or positioned divs. 4. If you use CSS, use it inline. Most email clients support <style> tags, but some don't, so keep it inline. 5. Make your email be from 500-600px wide, as most email clients will be able to read it that way. To have people read your email is good enough, but people are much less likely to scroll in a newsletter, than on an actual website. 6. Keep it simple - email clients don't display the HTML; they parse it through for you, and display it the way that THEY think it's supposed to be displayed.
[QUOTE=Ortzinator;34237321] And if you're showing off your Tribes beta acceptance, you suck. :([/QUOTE] It was just the last e-mail I got which contained html :\
My guess is that they used: <iframe src="http://www.website.com/email.html" width="600" height="auto"></iframe> Not tested it myself, just a guess.
I got a tribes ascend beta that I won't ever be using...
[QUOTE=Meekal;34279792]My guess is that they used: <iframe src="http://www.website.com/email.html" width="600" height="auto"></iframe> Not tested it myself, just a guess.[/QUOTE] For security purposes you cannot use frames inside a mail body (Just like external images wont display before you accept them) Emails is sort of the only case where tables for the layout is acceptable. (Mostly because of outlooks crappy HTML support, some other clients has no problems with floated or positioned divs.) Also if you are using PHP i wouldn't recommend using the mail() function, it is simple too low level and you will have to make multipart support etc your self, plus it is unsecure if you do it wrong.
[QUOTE=reeferdk;34446664] Also if you are using PHP i wouldn't recommend using the mail() function, it is simple too low level and you will have to make multipart support etc your self, plus it is unsecure if you do it wrong.[/QUOTE] Then what would you recommend? I've never had a problem with php's mail function - even for sending out thousands of marketing messages.
Its not that there is a problem with it as such (Besides being horribly intensive under windows enviroment, because it opens a new connection to the local SMTP server for each mail() call) It is just really easy for beginners to make horrible mistakes, that can lead to a mail header injection attack, resulting in your script participating in spam distribution etc. There are also pear packages / classes out there that makes multipart, file embedding implementation a breeze compared to using mail().
[QUOTE=Catdaemon;34463936]Then what would you recommend? I've never had a problem with php's mail function - even for sending out thousands of marketing messages.[/QUOTE] [url=http://sourceforge.net/projects/phpmailer/]PHPMailer[/url]
Hey I mean seriously, you can use tables without people ripping on you... Do you have any idea how nice that is? Take advantage man...
Sorry, you need to Log In to post a reply to this thread.