send_mail creating a hyperlink

691 views
Skip to first unread message

sum abiut

unread,
Jan 22, 2020, 7:41:55 PM1/22/20
to django...@googlegroups.com
Hi,
How do I create a hyperlink on the body of the email so that when the user receives the email they can click the link to access the website?
For example, on the
send_mail( subject, click here to access the site, to_address)

cheers,

Mike Dewhirst

unread,
Jan 22, 2020, 11:11:42 PM1/22/20
to django...@googlegroups.com
On 23/01/2020 11:40 am, sum abiut wrote:
> Hi,
> How do I create a hyperlink on the body of the email so that when the
> user receives the email they can click the link to access the website?

Just include the URL in the body text. You can rely on the mail client
to recognise a web address and make it clickable or if not you can rely
on the recipient copy/pasting the URL into a browser.

Most people will never click an unsolicited link in an email so you are
better to not hide the URL behind a "click here".

YMMV


> For example, on the
> send_mail( subject, click here to access the site, to_address)
>
> cheers,
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPCf-y4HSiFHUwn-Z8U%2BWDf33i0T%2BaUkNCzRiYH-HLdfUcT%3DpQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPCf-y4HSiFHUwn-Z8U%2BWDf33i0T%2BaUkNCzRiYH-HLdfUcT%3DpQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages