Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have designed an HTML page which I will send out as an email.
I have never sent an HTML email before and need some pointers.
Do you literally just send the code in the body of the email?
What is the best way to attach images?
I have tried Google but haven't found anything that helpful, answers on here are always more informative!
I'm slightly unsure how the whole process works!
Thanks!
Do you literally just send the code in the body of the email?
No.
Rewrite the HTML and CSS to account for the many limitations of various HTML capable email clients and webmail systems.
Create a plain text alternative
Construct a multipart MIME email with the HTML and Text versions as alternate parts
The Campaign Monitor: Resources section has a lot of useful information.
What is the best way to attach images?
Generally speaking, link to external images. Otherwise the email file sizes will be huge.
If its a normal HTML Mailer then yes, you just simply put everything inside the tags inside, and attach images as you normally would using the .
When the user recived the email, if not in the trusted list, it wont load the images, and will ask the user if he/she wishes to load the remote images.
Hope this helps :)
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I would like to know some pros and cons about the which solution is better in html email when we are dealing with images.
If the image is attached inline?
Or if it is referenced and stored in a public url?
Loading of images referenced from a public URI will often be blocked by the Mail User Agent (Thunderbird e.g.) to protect the user's privacy and avoid tracking.
So attaching them is the best way to have the images shown to the receipient.
In my opinion the better way is url img :
lighter
attaching picture can be blocked by antivirus/spyware
some users disable images because they have enough speed or not to waste their package. Remember that mobile is increasingly used!
When a Mail User Agent protect the user privacy, you need respect
that. You needed to interest your client with your title, your text
content so that it unlocks pictures.
I send mass mailling every week. I do not consider myself pro.
You can To analyze several newsletters. You'll see what the professionals do.
PS : sorry for my bad english =)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have created an email marketing.
A different HTML with styles inline and all good practices of email marketing creation (that are very different from usual web development practices).
After struggling a little bit with this, I had a good html to be sent by email.
One problem, though... The people that receive the email will have to print its content and bring it back to me.
The best way I found was to select the content of the email and print it, but the content loses its styles, colors, etc.
I would like to know if there's a better way to print the email content. Maybe a link with some css... I really don't know.
As I didn't find clear info on this subject on the web, any help will be appreciated!
Thanks in advance!
Email design is hard enough without trying to make it print friendly as well. If the need to print is common practice for you, I would suggest including a hyperlink somewhere in your email to a web hosted version that is print friendly.
If it is something like a coupon they are printing, you could also take that opportunity to customize it more, add the fine print or any other info you'd like to omit from the email itself.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How should I solve the e-mail privacy issue on the webpage, so it is not displayed in plain text in HTML code?
Malicious bots scrape the web in search of email addresses and plain text email addresses are more likely to be spammed.
A number of ways that you can do this:
spell the email out 'info at domain dot com'
create an image of the email address
use a contact form with additional anti-spam measures such as captcha
Unfortunately. most of these methods make it difficult for end users (especially the first two)
I would say the best way is to require the user to solve a CAPTCHA of some kind, and then when they succeed you should give them the email in plain text.
In particular, this allows users to copy-paste it into their email client, without the risk of mis-typing. Additionally, with the right CAPTCHA, this allows users with disabilities to contact you as well.
That said, you can keep your address completely hidden by having a contact form. In this way, it will be your server sending you the email on behalf of the user, and they will only ever know your address if you reply to them.
Quite a common method is to create an image with the email text within it.
Algorithms to read text from an image are a lot more complex (and error prone) than simple web scraping ones!
Edited to expand to include the details given in the comments.
It's important that this work be done server side, any manipulation done in javascript is likely to include the email address somewhere in the page's source - which any web scraper will have access to. Better to include an image with no reference to the image at all in it's url.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
MY code creates an email that has the text <h1>google.com</h1> in the body of the email. When I take a look at the email that is sent, it shows google.com as a link. Is there a way to tag it as not a link but just text via html?
Thanks!
This is almost always done by the client and will be dependent on on how the client decides what is and is not test. Similar issues occur with emails that with text such as "please discuss with jessica#accounting" where it's parsed as an email address.
The typical solution is to use html entities for text that shouldn't get parsed by the client. Using your example:
<h1>google.com</h1>
I would, however, consider the idea that if something is actually a URL, whether you intended it to be a hyperlink or not, letting the client do what it does, as the user may be accustomed to this feature and like clicking on any url in the body to open it.
If its really an issue, you could always make it an image. i.e Make gif/jpeg with the string "google.com"
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I was wondering how, or if it is even possible, to embed a javascript button in my gmail signature?
You can't. Or at least, I really, really hope you can't.
Javascript does not belong on e-mails. If it did, then people could receive nightmarishly evil emails that open an infinite number of alerts, redirect them to an offsite page, read your emails and your contact list, and so on. There are too many security repercussions of allowing Javascript inside of e-mails.
For this reason, gmail blocks javascript inside of emails, as any respectable e-mail client should.
Html emails shown in browser email clients will be stripped of all javascript so you can try but it won't work. Other clients such as outlook (which uses MS Word to render the html) also strip (or ignore?) the javascript. It's a vulnerability to allow it.
Think of this scenario: javascript on a page has full access to make ajax calls. You could use JS to iterate through all your emails and contacts etc and then send them on to a foreign server.
Allowing JS to run in emails would be the equivalent of allowing XSS.