-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from chirag-jn/dev
Add name in email
- Loading branch information
Showing
5 changed files
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,8 @@ from notipyer.email_notify import set_email_config | |
|
||
SENDER_EMAIL = '[email protected]' | ||
SENDER_PASS = 'my_app_password' | ||
set_email_config(SENDER_EMAIL, SENDER_PASS) | ||
SENDER_NAME = 'my name' | ||
set_email_config(SENDER_EMAIL, SENDER_PASS, SENDER_NAME) | ||
``` | ||
### Sending Email | ||
```python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from credentials import * | ||
from notipyer.email_notify import send_email, set_email_config | ||
|
||
set_email_config(username, password) | ||
set_email_config(username, password, name) | ||
|
||
send_email("my_subject", "my_content", [target_email]) |