Update email_agent.py
Browse files- email_agent.py +1 -1
email_agent.py
CHANGED
@@ -10,7 +10,7 @@ def send_email(subject: str, html_body: str) -> Dict[str, str]:
|
|
10 |
""" Send an email with the given subject and HTML body """
|
11 |
sg = sendgrid.SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY'))
|
12 |
from_email = Email("sean@faheymedia.ie") # put your verified sender here
|
13 |
-
to_email = To("
|
14 |
content = Content("text/html", html_body)
|
15 |
mail = Mail(from_email, to_email, subject, content).get()
|
16 |
response = sg.client.mail.send.post(request_body=mail)
|
|
|
10 |
""" Send an email with the given subject and HTML body """
|
11 |
sg = sendgrid.SendGridAPIClient(api_key=os.environ.get('SENDGRID_API_KEY'))
|
12 |
from_email = Email("sean@faheymedia.ie") # put your verified sender here
|
13 |
+
to_email = To("sean@faheymedia.ie") # put your recipient here
|
14 |
content = Content("text/html", html_body)
|
15 |
mail = Mail(from_email, to_email, subject, content).get()
|
16 |
response = sg.client.mail.send.post(request_body=mail)
|