Spaces:
Sleeping
Sleeping
email sender done. needs-> ur id, ur app pwd, receiver's id, body and subject
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def tool_email_sender(sender:str, pwd:str, reciever:str, subject:str, body:str)-
|
|
| 43 |
|
| 44 |
server.sendmail(SENDER_EMAIL, RECIEVER_EMAIL, message.as_string())
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
except Exception as e:
|
| 49 |
return f"Unexpected error while sending email: {str(e)}"
|
|
|
|
| 43 |
|
| 44 |
server.sendmail(SENDER_EMAIL, RECIEVER_EMAIL, message.as_string())
|
| 45 |
|
| 46 |
+
return f"Email sent successfully to {RECIEVER_EMAIL}"
|
| 47 |
|
| 48 |
except Exception as e:
|
| 49 |
return f"Unexpected error while sending email: {str(e)}"
|