我通過Django的爲什麼我的django電子郵件的html鏈接無法點擊?
subject, from_email, to = 'site Registration', '[email protected]', self.second_email
text_content = 'Click on link to finish registration'
html_content = '<html><body><a href="site.com/accounts/user/' + self.slug +'">Click Here</a></body></html>'
msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
msg.attach_alternative(html_content, "text/html")
msg.send()
發送以下電子郵件當我去的電子郵件(谷歌和雅虎的電子郵件),他們都顯示的點擊此處以藍色文本(我想這意味着它認爲是一個鏈接),但是,該鏈接不可點擊,並且不會鏈接到site.com/acc ...我做錯了什麼?
謝謝!
真棒THX一堆!!!!! – Derek