g4gmail_sendMail
*//////////////////////////////////////////////////////////////*
* 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, unique email ID 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) *
* debug_file - The debug file name. *
* (/tmp/g4g_[ID]_[msgid]_sendMail.txt) *
* *
*//////////////////////////////////////////////////////////////*
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)
g4gmail_sendMail will use a pre-created MIME file to send an email using the GMail servers for a previously registered GMail Account.
Returns: 0 for success or -1 for error.
Optional Parameters:
Error Message (output) - Error message
Settable Variables (use g4gmail_setValue):
id (required) - Your Google ID
sendmail_mime_file (required) - The fully qualified path to the MIME file in the IFS.
message_id - A message/thread ID to apply to this message (not required).
ccsid - The CCSID to use. The default is 1208.
debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.
debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4g_[ID]_[msgid]_sendMail.txt.