0

I use send_mass_mail and add to the message a link I get strange behavior: Some people will see the link as plain text other as link and some as half link half text, the link works when copy paste in the browser Any suggestion how to fix it, it’s a big problem for me sending a link that doesn’t work?

for example:

enter image description here

shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90
Ron
  • 61
  • 2
  • 8
  • Have you enclosed it in an `a` tag? (`my link`) – shad0w_wa1k3r Feb 12 '18 at 07:21
  • @AshishNitinPatil I understood that send_mass_mail doesn’t support HTML - if I can use it as you mention how can I add it to a message text? for exampe "Hi that is a text and here is a Linkmy link ? – Ron Feb 12 '18 at 07:37
  • Can I use it in send_mass_mail as in the example?? https://stackoverflow.com/questions/31715138/how-to-add-href-link-in-email-content-when-sending-email-through-smtplib – Ron Feb 12 '18 at 07:46
  • [Send HTML via send_mass_mail](https://stackoverflow.com/questions/26378008/django-send-html-email-via-send-mass-mail) – shad0w_wa1k3r Feb 12 '18 at 07:48
  • Thanks, so I need to add that code and create an HTML just to be able to view a link as a link in the subject? – Ron Feb 12 '18 at 07:59
  • In the email subject? Nope, you shouldn't have HTML in the subject (which the email reader would treat correctly). Subject links will be treated differently by different email readers, what you *can* do is add a trailing slash (`".../126/"`) which should hopefully resolve this issue. – shad0w_wa1k3r Feb 12 '18 at 08:02
  • @AshishNitinPatil thanks It could solve the broken link problem as I mention above but I dont think it will solve the plain text that some user get instead of link – Ron Feb 12 '18 at 08:07

0 Answers0