GMAIL  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

GMAIL

Postby Ernst » Wed Jun 07, 2017 10:28 am

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.
User avatar
Ernst
Kohai
Kohai
 
Posts: 221
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: GMAIL

Postby Mike.Sheen » Wed Jun 07, 2017 10:32 am

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: GMAIL

Postby Ernst » Wed Jun 07, 2017 11:12 am

Hi Mike. Ok its latest public release 7.0.175..Thanks
User avatar
Ernst
Kohai
Kohai
 
Posts: 221
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: GMAIL  Topic is solved

Postby Mike.Sheen » Wed Jun 07, 2017 12:52 pm

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 1192 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 1192 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 1192 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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: GMAIL

Postby Ernst » Wed Jun 07, 2017 5:14 pm

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:
User avatar
Ernst
Kohai
Kohai
 
Posts: 221
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: GMAIL

Postby Ernst » Wed Jun 07, 2017 5:17 pm

PS as an extra, I ticked send email receipt notification in JIWA, and the Notification got sent back to my GMAIL account, .. Double Bonus.
User avatar
Ernst
Kohai
Kohai
 
Posts: 221
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: GMAIL

Postby Mike.Sheen » Wed Jun 07, 2017 8:06 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 9 guests