Merge pull request #96 from levivm/develop
adding "from email" for sending emails
This commit is contained in:
commit
1a2a7b49df
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ class BaseEmail(object):
|
||||||
|
|
||||||
self.email = EmailMultiAlternatives(self.subject, text_content)
|
self.email = EmailMultiAlternatives(self.subject, text_content)
|
||||||
self.email.attach_alternative(html_content, "text/html")
|
self.email.attach_alternative(html_content, "text/html")
|
||||||
self.email.to = ['levinoelvm@gmail.com']
|
self.email.from_email = 'no-replay@ungleich.ch'
|
||||||
|
self.email.to = ['info@ungleich.com']
|
||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
self.email.send()
|
self.email.send()
|
||||||
|
|
Loading…
Add table
Reference in a new issue