SMTP

  • 18 Dec

    Sending emails using GMail SMTP with OAuth2 authentication

    Q: Sending emails using GMail SMTP with OAuth2 authentication. I am trying to set up an outgoing email notification that will happen when a file moves to it’s destination.

    8th of May 2022, we are working on an update because of: OAuth out-of-band (oob) flow will be deprecated

    Instead of the Google URI urn:ietf:wg:oauth:2.0:oob you’ll have to use a loopback (IP) address as Redirect URI like http://127.0.0.1 or http://localhost

    In this update (version v2022.5.8.0) a redirect port will be added which is only needed during the OAuth2 verification setup.

    Please check: Update Info

     

    A: Yes this is possible.

    First check if you enabled the GMail API in your account: https://support.google.com/googleapi/answer/6158841?hl=en

    Secondly we’ll need credentials ‘Client ID and Client Secret’  for the OAuth2 authentication: https://support.google.com/googleapi/answer/6158857?hl=en&ref_topic=7013279

    We added some screenshots to help you with the setup.

    Limagito File Mover SMTP Setup

    Don’t forget the Security Options:

    Limagito File Mover SMTP Setup

    OAuth2 Setup:

    Limagito File Mover SMTP OAuth2 authentication

    Please add the following information:
    – Authorization Endpoint URL: https://accounts.google.com/o/oauth2/v2/auth
    – Token Endpoint URL: https://www.googleapis.com/oauth2/v4/token
    – Client ID
    – Client Secret
    – Scope: https://mail.google.com/
    – Redirect URI: urn:ietf:wg:oauth:2.0:oob
    Click GET and your browser will open. Follow steps and copy / paste the code from your browser in the ‘Auth Code’ field.
    This will automatically fill in Refresh Token and Access Token. Do not forget to <Save> afterwards.

    Limagito File Mover SMTP OAuth2 authentication

    RunTime Log Result when testing:

    Limagito File Mover RunTime log result

    #FileTransfer

    If you need any info about this ‘GMail SMTP’ question, please let us know.

    Best regards,

    Limagito Team

  • 15 Oct

    Q&A 26: Custom SMTP report with filename and transfer timestamp

    Q: Custom SMTP report. I am trying to set up SMTP notifications / Reports that will be sent out once a job runs. I am having the following trouble, I want the email to show the filename and timestamp of when it was transferred, I have this working but if there is multiple files it will send multiple emails, I want a single email per Rule that will one send out one email with file names and time each file was moved.
    A: We’ve added some screenshots to get you started.

    >Please open ‘Rule Events’ Setup in the ‘Moving Rule’ Menu:

    LimagitoX File Mover Rule Events

    >Select and enable ‘On Rule Begin’ event item. Within the ‘On Rule Begin’ event item:

    • Select Pascal Script tab and enable ‘Enable Pascal Script’.
    • Add the following Pascal Script:
    Begin
      // ... add your code here
      psVSA := '';
    End.

    LimagitoX File Mover Rule Events Setup

    >Select and enable ‘On Success’ event item. Within the ‘On Success’ event item:

    • Select ‘Options’ tab and enable ‘Trigger mail event after scan’.
    • Optionally you can enable ‘Enable On Success Events for LimagitoX Temporary Files’.

    • Select ‘Pascal Script’ Tab and enable ‘Enable Pascal Script’.
    • Add the following Pascal Script:
    var
      tmpList: TStringList;
      tmpTime: String;
    Begin
      // ... add your code here
      tmpList := TStringList.Create;
      Try
        // Read from psVSA
        tmpList.Text := psVSA;
        // Add To psVSA
        tmpTime := FormatDateTime('YYYY/MM/DD HH:NN:SS', Now);
        tmpList.Add(psFilePath + psFilename + ' @ ' + tmpTime);
        // Write to psVSA
        psVSA := tmpList.Text; 
      Finally
        tmpList.Free;
      End;  
    End.

    • Select ‘Email’ tab and enable ‘Enable Mail’
    • Setup SMTP server and Email itself. There is a test button available.

    • Important, in the mail body you’ll need to add:  %VSA
      • This %VSA will contain the file information added thanks to the previous Pascal Script

    • We used the gmail smtp server in this example but any other smtp server will work.

    >Result

    If you need any help with this custom SMTP report, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team Q&A SMTP
  • 04 Feb

    How-to use Gmail to send emails from LimagitoX File Mover

    We’ve added some screenhots to get you started using the GMail SMTP server.

    • Server Setup

    LimagitoX-SMTP-GMail-Setup

    • Security Setup

    LimagitoX-SMTP-GMail-Security-Setup

    • We are using OAuth2 authentication so we also need to fill in this setup

    LimagitoX-SMTP-GMail-OAuth2-Setup

    • Test email Setup (using the Rule Events)

    • Trigger email, result Successful

    If you need any help, please let us know.

    Best Regards,

    Limagito Team

    By Limagito-Team SMTP , ,
1 2 3 4 5 6
SEARCH