On Saturday, December 28, 2019 at 5:23:27 AM UTC+11, Ignacio Grande wrote:
>
> Hi!
>
> I have an application I made a few years ago for a friend which sends 
> emails using a Gmail account with STMP, using the library 
> gopkg.in/gomail.v1. Since then I moved on and I'm not familiar with 
> latest changes in Gmail or the library.
>
> It seems Google is dropping access for LSA (less secure apps) in June and 
> I've been asked if I can update the apps to work with OAuth. 
>
> I've doing some research and it seems that:
>
>    - gomail.v1 moved to gomail.v2, but it was abandoned several years ago.
>    - I cannot configure SMTP access in my Gmail account. Has STMP support 
>    dropped from Gmail? Current account works, so maybe it is not possible to 
>    activate it but accounts already using it works? Do you know if this will 
>    last? 
>    
> I guess it's time to learn how to use IMAP and OAuth in Go with Gmail to 
> update the app. Can you tell me of any tutorial/library to use? 
>
> Thanks a lot.
>
>
>
So I recently created some code that uses Gmail to send .. mail..
https://developers.google.com/gmail/api/quickstart/go has instructions and 
example (Go) code that you can use. I split the token code off to its own 
standalone pkg so that any code could then use the creds+tokens to send 
emails, without the need to y/n all the time. 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/647341a5-e203-4b40-8450-846a2aac1577%40googlegroups.com.

Reply via email to