Page 1 of 1

GMAIL

PostPosted: Wed Jun 07, 2017 10:28 am
by Ernst
Having trouble getting JIWA to send to GMAIL.

Have seen viewtopic.php?f=26&t=459&p=1496&hilit=gmail#p1496

But cannot see any resolution. Can we get help on getting this working please.

Client has smtp.gmail.com/465 and SSL ticked. SMTP username password from GMAIL logon. We tried via port 25, no luck

Have also Toggle 'Allow Less Secure Apps' to On.

Re: GMAIL

PostPosted: Wed Jun 07, 2017 10:32 am
by Mike.Sheen
Hi Ernt,

Can't help you unless you tell us which version of Jiwa you are using - the email mechanism has changed a fair bit over the last few public releases.

Mike

Re: GMAIL

PostPosted: Wed Jun 07, 2017 11:12 am
by Ernst
Hi Mike. Ok its latest public release 7.0.175..Thanks

Re: GMAIL  Topic is solved

PostPosted: Wed Jun 07, 2017 12:52 pm
by Mike.Sheen
Hi Ernst,

Ok - the problem is because you're probably using the user's gmail password instead of generating an App Password.

I followed these steps, and successfully sent email from Jiwa using my Gmail account.

1. Enable the "Email - Configuration SMTP" plugin in Jiwa, and disable all others.
2. Quit Jiwa and log back in.
3. Open the System Configuration form and on the "Email - Configuration SMTP" tab, set the values:
SMTPServerAddress : smtp.gmail.com
SMTPServerPortNumber : 587
SMTPRequiresSSL : checked

SystemMaintenance.PNG
System Configuration


4. Open staff maintenance and for the gmail user(s), set the Email Settings - Address (gmail email address), and SMTP Username (this will be their gmail email address also) - you won't have a password yet, we'll get that in the next step
StaffMaintenance.PNG
Staff Maintenance
StaffMaintenance.PNG (67.38 KiB) Viewed 3369 times


5. Visit the App Passwords page of Gmail and select the "Select App" dropdown in the "Select the app and device for which you want to generate the app password." section
Gmail_App_Passwords.PNG
App Passwords


6. Type in Jiwa as the name of the App and press the Generate button.
Gmail_App_Passwords_Generate.PNG
App Password Generate
Gmail_App_Passwords_Generate.PNG (28.98 KiB) Viewed 3369 times


7. An App password will be shown to you, Select it and copy it to your clipboard.
Gmail_App_Passwords_Generated.PNG
App Password Generated
Gmail_App_Passwords_Generated.PNG (51.92 KiB) Viewed 3369 times


8. Back in Staff Maintenance in Jiwa, press the "Password..." button of the Email Settings section, and paste in the password
StaffMaintenance_Set_Password.PNG
Staff Maintenance SMTP Password


9. Save

Then that staff member will be able to send emails using their gmail account.

I've added a How-to article on our document Portal with the above: Use a GMail account to send emails.

Re: GMAIL

PostPosted: Wed Jun 07, 2017 5:14 pm
by Ernst
Thats great Mike, Thanks for all the effort. I'm sure there will be a number of people who will use this.
Eventually got it working on my account. For those Brave enough to give it a go. Remember to switch on the 2 Step Notification on your
Gmail account. :mrgreen: :mrgreen: :mrgreen:

Re: GMAIL

PostPosted: Wed Jun 07, 2017 5:17 pm
by Ernst
PS as an extra, I ticked send email receipt notification in JIWA, and the Notification got sent back to my GMAIL account, .. Double Bonus.

Re: GMAIL

PostPosted: Wed Jun 07, 2017 8:06 pm
by Mike.Sheen
Ernst wrote:Remember to switch on the 2 Step Notification on your Gmail account


Thanks for that - I've updated the docs article Use a GMail account to send emails to reflect this.