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/17/2020 at 09:15:08



Latest Posts:

MAILTOOL Errors with Microsoft Office 365 (2020) MAILTOOL Errors with Microsoft Office 365 (2020)
Posted by September 3, 2020
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Using MAILTOOL With Office 365 and Two Factor Authentication (2FA or MFA) Using MAILTOOL With Office 365 and Two Factor Authentication (2FA or MFA)
Posted by August 17, 2020
BVSTools >> BVSTools Software Discussion >> Email Tools (MAILTOOL) Specific Discussion
Updating DNS With Dynamic IP Addresses After a Router Reboot/Power Outage Updating DNS With Dynamic IP Addresses After a Router Reboot/Power Outage
Posted by August 16, 2020
Programming >> Proof of Concept (POC)
GETURI v10.10 Released with New ILE Functions GETURI v10.10 Released with New ILE Functions
Posted by August 12, 2020
BVSTools >> BVSTools Announcements >> Get URI (GETURI) Specific Announcements
MAILTOOL Updated to Allow G4GSMAIL as Option in Routers File MAILTOOL Updated to Allow G4GSMAIL as Option in Routers File
Posted by June 28, 2020
BVSTools >> BVSTools Announcements >> eMail Tool (MAILTOOL) Specific Announcements
BVSTools Now Offers Interface with Infor's ION APIs BVSTools Now Offers Interface with Infor's ION APIs
Posted by May 15, 2020
BVSTools >> BVSTools Announcements
More V7R4 IFS File CCSID Issues and The Fix More V7R4 IFS File CCSID Issues and The Fix
Posted by March 4, 2020
IBM Power Systems >> (QGPL) IBM i
Error Retrieving IP Address by Name Error Retrieving IP Address by Name
Posted by February 25, 2020
BVSTools >> BVSTools Software Discussion
Logging jobs that hit an outq Logging jobs that hit an outq
Posted by February 13, 2020
Programming >> CL Programming
GreenTools for Google Apps (G4G) v12.60 Released with Shared Drive Features and More... GreenTools for Google Apps (G4G) v12.60 Released with Shared Drive Features and More...
Posted by February 4, 2020
BVSTools >> BVSTools Announcements >> GreenTools for G Suite (Google Apps) (G4G) Specific Announcements
Allowing Requests over Port 80 For SSL Validation (ie, Namecheap, etc) Allowing Requests over Port 80 For SSL Validation (ie, Namecheap, etc)
Posted by January 31, 2020
Programming >> Web Programming
GreenTools for Slack (G4SLK) v3.00 Released GreenTools for Slack (G4SLK) v3.00 Released
Posted by January 17, 2020
BVSTools >> BVSTools Announcements >> GreenTools for Slack (G4SLK) Specific Announcements
Calling a QSH Command from RPG Calling a QSH Command from RPG
Posted by December 26, 2019
Programming >> RPG Programming
SPLTOOL Print Range (PRTRNG) Function Updated to Handle Spooled Files up to 999,999,999 Pages SPLTOOL Print Range (PRTRNG) Function Updated to Handle Spooled Files up to 999,999,999 Pages
Posted by December 14, 2019
BVSTools >> BVSTools Announcements >> Spooled File Tools (SPLTOOL) Specific Announcements
GreenTools for Microsoft Apps (G4MS) Updated to v6.00 - Now Uses Microsoft Graph APIs GreenTools for Microsoft Apps (G4MS) Updated to v6.00 - Now Uses Microsoft Graph APIs
Posted by November 24, 2019
BVSTools >> BVSTools Announcements >> GreenTools for Microsoft Apps (G4MS) Specific Announcements

Reply




Copyright 1983-2020 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).