Skip to content

Add email testing example #4152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 12, 2020
Merged

Conversation

joshcorr
Copy link
Contributor

Fixes:

This adds documentation on how to test email settings configured in they configuration.py file.


```
# python ./manage.py nbshell
### NetBox interactive shell (jstretch-workstation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can omit the header lines from the output to keep it a bit cleaner.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the headers

@@ -109,6 +109,16 @@ In order to send email, NetBox needs an email server configured. The following i
* TIMEOUT - Amount of time to wait for a connection (seconds)
* FROM_EMAIL - Sender address for emails sent by NetBox

Email is sent from NetBox only for critical events. If you would like to test the email server configuration please use the following:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to include a link to Django's documentation for the send_mail() utility in case the reader wants to explore all its options.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Included a link to send_mail() documentation

@joshcorr
Copy link
Contributor Author

@jeremystretch Should be good to go. Let me know if you need anything else changed.

@jeremystretch jeremystretch merged commit 6d7c5d5 into netbox-community:develop Feb 12, 2020
@joshcorr joshcorr deleted the patch-2 branch February 12, 2020 22:23
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants