On Thu, Nov 17, 2011 at 9:44 AM, Bram de Jong <bram.dej...@gmail.com> wrote:
> The angle bracket thing is new to me: how exactly does this help? You
> do mean regular < and > right?
>
> So
>
> <http://www.google.com>
>
> Should be better than
>
> http://www.google.com
>
> ?
>

Yep, exactly. Well behaved email clients will ignore and remove line
breaks when presenting that link to the user viewing the email.

Another thing that can make sending links more successful is to send
multipart/alternative emails, with a text section using that
technique, and an HTML one that specifies it as a link. These days,
most people will see/use the HTML version, whilst those who configure
their email clients specifically to prefer plain text - which will be
a small percentage - will most likely have clients that are well
behaved.

It's straightforward to do this in Django:

  from django.core.mail import EmailMultiAlternatives
  txt_version = …
  html_version = …
  msg = EmailMultiAlternatives(subject, text_version, from_addr, [ to_addr, ])
  msg.attach_alternative(html_content, "text/html")
  msg.send()

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to