bvstone

GreenTools for G Suite (G4G) Now Includes Send Mail Functionality (G4GSMAIL Addon)

Posted:

GreenTools for G Suite (G4G) Now Includes Send Mail Functionality (G4GSMAIL Addon)

Update: 08/28/2109 - Google has verified the G4GSMAIL Addon

=========================================================

If you read the recent FieldExit article regarding Google updating their Privacy Policy and basically locking down certain APIs and scopes, you'll know that we were looking for a way to still allow the functionality of sending emails using GMail or G Suite with OAuth 2.0.

We recently updated GreenTools for G Suite (G4G) to include functions in the F.G4GMAIL service program that will allow you to send emails via Google's RESTful API interface.

We have also added functionality to MAILTOOL that will allow you to send using this method.  Simply register the service for your G Suite or GMail account and use the SENDWITH(*G4GSMAIL) option.

Right now the application is being reviewed by Google and isn't verified yet, but we have just submitted the required information and hope to have it verified soon.

You can also use this functionality in your own programs using the #g4gmail_sendMail() function.  Here is the prototype:

 *//////////////////////////////////////////////////////////////*       
 * #g4gmail_sendMail - Send an Email using Gmail API            *       
 *                                                              *       
 * Output:                                                      *       
 *   out_id - The ID of the email message (if successful).      *       
 *   out_threadID - The Thread ID of the email message.         *       
 *   out_errMsg - The error message (if error exists).          *       
 *                                                              *       
 * Returns:                                                     *       
 *   -1 for error, 0 for success                                *       
 *                                                              *       
 * Settable Variables ([r]=required)                            *       
 *   id - Google ID [r]                                         *       
 *   sendmail_mime_file - The fully qualified path to the MIME  *       
 *    file of the email you want to send. [r]                   *       
 *   message_id - The message/thread ID to apply to this email. *       
 *   ccsid - The CCSID to use (1208)                            *       
 *   debug - Turn on Debug (*NO, *YES)                          *  
 *                                                              *  
 *//////////////////////////////////////////////////////////////*  
D #g4gmail_sendMail...                                             
D                 PR            10i 0                              
D  out_id                      256    Options(*NOPASS)             
D  out_threadID                256    Options(*NOPASS)             
D  out_errMsg                  256    Options(*NOPASS)                  

All you need to provide is a properly formatted MIME file in the IFS and the API will do the rest.  Or, if you don't have any applications that create email MIME files the MAILTOOL application can do that heavy lifting for you.  

If you are using a 3rd party or open source email application this function will make it easy to simply plug this into your application and start using GMail functionality with your applications.

Using this application does require licensing of GETURI, the G4G base product and the G4GSMAIL addon.  If you wish to use it with MAILTOOL you will need a license for that as well.  But you will not require a MAILTOOL Plus license unless you require the functionality offered by the Plus Addon.

You can see a video of the process on YouTube by clicking here.

As always, feel free to contact us with any questions.

 


Last edited 08/28/2019 at 14:06:05



Latest Posts:

GreenTools for G Suite (G4G) Now Includes Send Mail Functionality (G4GSMAIL Addon) GreenTools for G Suite (G4G) Now Includes Send Mail Functionality (G4GSMAIL Addon)
Posted by August 27, 2019
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
GreenTools For G Suite (G4G) v12.00 Released With Base OAuth 2.0 Functionality GreenTools For G Suite (G4G) v12.00 Released With Base OAuth 2.0 Functionality
Posted by July 28, 2019
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
BVSTools Small Price Increase in 2020 BVSTools Small Price Increase in 2020
Posted by July 26, 2019
BVSTools >> BVSTools Announcements
GreenTools for Vertex Cloud (VTXCLOUD) Now Available GreenTools for Vertex Cloud (VTXCLOUD) Now Available
Posted by July 22, 2019
BVSTools >> BVSTools Announcements >> GreenTools for Vertex Cloud (VTXCLOUD) Specific Announcements
GreenTools for Google Apps (G4G) - Drive Addon Successfully Verified by Google GreenTools for Google Apps (G4G) - Drive Addon Successfully Verified by Google
Posted by July 22, 2019
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
Why I Cancelled my DynDNS Service and How I Replaced It with an IBM i Application Why I Cancelled my DynDNS Service and How I Replaced It with an IBM i Application
Posted by July 17, 2019
IBM Power Systems >> (QGPL) IBM i
Green Tools for G Suite (G4G) Product Updates (Licensing, Functionality, Base Product) Green Tools for G Suite (G4G) Product Updates (Licensing, Functionality, Base Product)
Posted by July 13, 2019
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
Reading JSON Data from Standard Input With YAJL and RPG Reading JSON Data from Standard Input With YAJL and RPG
Posted by July 12, 2019
Programming >> Proof of Concept (POC)
MAILTOOL Updated to Allow Use of IBM Global Security Kit (GSKIT) for SSL/TLS Communications MAILTOOL Updated to Allow Use of IBM Global Security Kit (GSKIT) for SSL/TLS Communications
Posted by June 19, 2019
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
GETURI v10.00 Released Supporting IBM Global Security Kit (GSKIT) and Server Name Indication (SNI) GETURI v10.00 Released Supporting IBM Global Security Kit (GSKIT) and Server Name Indication (SNI)
Posted by June 11, 2019
BVSTools >> BVSTools Announcements >> Get URI (GETURI) Specific Announcements
BVSTools Now Offers Vertex Cloud Interface BVSTools Now Offers Vertex Cloud Interface
Posted by April 15, 2019
BVSTools >> BVSTools Announcements
Token Has an Invalid Signature Error for Office 365 Email Token Has an Invalid Signature Error for Office 365 Email
Posted by March 22, 2019
BVSTools >> BVSTools Software Discussion >> GreenTools for Microsoft Apps (G4MS) Specific Discussion
Resending Emails that have Errored Out with Updated Router or Authentication Information Resending Emails that have Errored Out with Updated Router or Authentication Information
Posted by March 1, 2019
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
BVSTools Offers Toolset to Work With HubSpot OAuth 2.0 APIs On Your IBM i BVSTools Offers Toolset to Work With HubSpot OAuth 2.0 APIs On Your IBM i
Posted by January 27, 2019
BVSTools >> BVSTools Announcements
G4MSDRV Currently Not Supported G4MSDRV Currently Not Supported
Posted by January 17, 2019
BVSTools >> BVSTools Announcements >> GreenTools for Microsoft Apps (G4MS) Specific Announcements

Reply




Copyright 1983-2019 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, CKEditor and running on the IBM i (AKA AS/400, iSeries, System i).