Using Gmail as your mailer for NodeBB
-
As a new user of NodeBB I didn't find much info on getting the email side of the application working. Now that it is working well, here is how I did it using GMAIL
-
Create a new Gmail account or use an existing one. (if you use an existing account, your email address will be seen by your Nodebb users)
-
Turn on "two step verification" for this account by visiting your Gmail security page and clicking on the "Signing in to Google". You will receive a text message or two to verify the settings change.
-
Once "Two Step Verification" is enabled, goto this link Sign in using App Passwords and have a read. then click on this link to create an "app password", copy and save it for later.
-
Now we can go back to the NodeBB settings and choose "Email".
-
Enter your email address as the "Email address" in NodeBB
-
"From Name" can be anything you like
-
Enable the slider "Route emails through a GMAIL account"
-
Username is your GMAIL email address
-
Password is the "app password" you generated above.
-
Save the config and then restart NodeBB
-
Come back to the Nodebb email settings and press the test button, you should receive an email
-
All done! - ask any questions if you have them.
-
-
In 1.6.0 this will be easy to do with most email providers, not just Gmail.
-
@duke said in Using Gmail as your mailer for NodeBB:
As a new user of NodeBB I didn't find much info on getting the email side of the application working. Now that it is working well, here is how I did it using GMAIL
-
Create a new Gmail account or use an existing one. (if you use an existing account, your email address will be seen by your Nodebb users)
-
Turn on "two step verification" for this account by visiting your Gmail security page and clicking on the "Signing in to Google". You will receive a text message or two to verify the settings change.
-
Once "Two Step Verification" is enabled, goto this link Sign in using App Passwords and have a read. then click on this link to create an "app password", copy and save it for later.
-
Now we can go back to the NodeBB settings and choose "Email".
-
Enter your email address as the "Email address" in NodeBB
-
"From Name" can be anything you like
-
Enable the slider "Route emails through a GMAIL account"
-
Username is your GMAIL email address
-
Password is the "app password" you generated above.
-
Save the config and then restart NodeBB
-
Come back to the Nodebb email settings and press the test button, you should receive an email
-
All done! - ask any questions if you have them.
Not working for me
Does the line of code need to write down the code of Gmail or the code of the app? -
-
@mgm-ivr what line of code?
-
I followed the exact steps and it shows in the setting that test email was sent successfully. But I didn't receive any email in the user account. It didn't show that any email was sent from the email account I entered, either. @PitaJ Any chance you know what might be the issue?
-
@S-Yang which template did you use for email testing? I recommend using the "test" template.
-
@S-Yang indeed, mailer putting take precedence over the built-in SMTP mailer.