Forum Moderators: open

Message Too Old, No Replies

Bug: mailto: links in HTML emails

mailto: links selected in Hotmail break when they open in Outlook

         

figgy

8:54 pm on Oct 30, 2008 (gmt 0)

10+ Year Member



Today I encountered an odd bug with our HTML newsletter and I hope that somebody has an idea how I can fix it.

It occurs when the newsletter is viewed in Hotmail but the user has Outlook set as the default email client. When users click on the link to generate an unsubscribe email, Outlook opens a new message with the subject and body info but ignores the carriage returns in the body of the email (%0A%0A). If the carriage returns are excluded, the user will get an automated reply that the email was incorrectly formatted.

The email generated correctly in all other environments that we've tested. Does anyone have any thoughts on why the carriage return is being ignored?

Here's the code I'm using:


href="mailto:email@address.com?subject=One%20thing%20and%20Other%20thing&body=One%20Gthing%0A%0AOther%20thing"

lavazza

9:32 pm on Oct 30, 2008 (gmt 0)

10+ Year Member



This is a bit of a long shot, considering how Microsoft aren't exactly renowned for adhering to standards... but... there's no reason why you shouldn't :)

The ampersand isn't 'escaped' with amp;

Instead of:
%20thing&body=One%20G
Try:
%20thing&body=One%20G

This might not fix your current problem, but it won't hurt :)

figgy

3:03 pm on Oct 31, 2008 (gmt 0)

10+ Year Member



Thanks for the idea, but unfortunately it didn't fix the problem :(

I will make this change in the template though, and maybe it will prevent other potential problems that I haven't encountered.

rocknbil

2:51 pm on Nov 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't know why, but you could try:

mailto:email@address.com?subject=One%20thing%20and%20Other%20thing&body=One%20Gthing%0D%0DOther%20thing

(carriage return instead of line feed.)

lavazza

7:17 am on Nov 5, 2008 (gmt 0)

10+ Year Member



Any gnus?