E-mail privacy in HTML [closed] - html

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.

Related

Printing the content of an email marketing [closed]

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.

Why don't people write literally the "at" symbol? [closed]

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
I usually see that people, in the Internet, don't writes the at symbol (#) for their e-mail accounts or similar.
They do things like this: "my_username(AT)domain(DOT)com", and not "my_username#domain.com"
Do you know why is it? I've investigated a lot and I could't find any answer. Thanks :D
This is just a way of preventing spam (for robots that scans emails with an # symbol).
Simple: they are trying to protect their e-mails from autmatic collection by robots in attempt to protect themselves from SPAM
A lot of simple bots on the internet farm emails from various websites. When they are in their simplest form (e.g. bob#website.com) they are easily picked up. By changing some parts of it, such as the # to (AT) can help to prevent such bots realising it is an email address.
However - most bots are smarter, and you would need to go to further measures to protect your email address on a website, such as cloaking it with JavaScript.
Lots of examples on email cloaking via JavaScript can be found here: https://www.google.co.uk/search?q=javascript+email+cloak
Hope that answers your question :-).
This is because of spam bots. In general they're programmed to scan the web looking for email addresses, generally written with the # symbol, that they include in some database used for spam bombing. This is a easy-to-do first attempt to reduce spam mails.. :D
(Best techniques for safe email posting on the net are made with Javascript)

How do you make a .com address into just a string in an email? [closed]

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"

Starting out creating HTML email [closed]

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 :)

Javascript Button In Gmail Signature [closed]

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.