0

I am learning how to send emails in django. Now, i want to try to send links as a message in email. please help me how to do it. It would be a great help.

this is my views.py

def send(request):
    send_mail(
        "Subject",
        "This is a test sample mail https://www.google.com/ ",
        'sample.mail.2101@gmail.com',
        ['padow76087@chclzq.com'],
        fail_silently=False)
    return redirect('/')

thanku for your help.

1 Answers1

0

You have to change your email template to render a html file and include the url in the html file. For more refer this link Django sending emails with links