Skip to content
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

Mailer should verify settings on startup #2072

Closed
taylortom opened this issue Sep 10, 2018 · 0 comments
Closed

Mailer should verify settings on startup #2072

taylortom opened this issue Sep 10, 2018 · 0 comments
Assignees
Labels
D: easy Straightforward issues, small time commitment I: minor Low, impact, low priority bugs S: merged Completed, reviewed, and merged issues T: enhancement Adding additional functionality
Milestone

Comments

@taylortom
Copy link
Member

For reference, from http://nodemailer.com/smtp

You can verify your SMTP configuration with verify(callback) call (also works as a Promise). If it returns an error, then something is not correct, otherwise the server is ready to accept messages.

// verify connection configuration
transporter.verify(function(error, success) {
   if (error) {
        console.log(error);
   } else {
        console.log('Server is ready to take our messages');
   }
});
@taylortom taylortom added T: enhancement Adding additional functionality D: easy Straightforward issues, small time commitment I: minor Low, impact, low priority bugs labels Sep 10, 2018
@taylortom taylortom self-assigned this Sep 10, 2018
@taylortom taylortom added this to the 0.6.1 milestone Oct 5, 2018
@taylortom taylortom added the S: merged Completed, reviewed, and merged issues label Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D: easy Straightforward issues, small time commitment I: minor Low, impact, low priority bugs S: merged Completed, reviewed, and merged issues T: enhancement Adding additional functionality
Projects
None yet
Development

No branches or pull requests

2 participants