Send Mail

This function block allows users to send emails through the Gmail API. It supports sending messages with optional attachments, enabling seamless communication directly from the interface.

πŸ“₯ Inputs

Subject The subject line of the email.

Content The body text of the email.

Sender Address The email address from which the email will be sent. Please ensure this address is activated with Gmail API.

Mail API Password The password or application-specific password for the sender email account.

Receiver Address The email address of the recipient.

Attachment File Path The file path of any attachment you wish to include in the email. This input is optional.

Trigger A Boolean signal used to trigger the sending of the email.

πŸ“€ Outputs

Success A Boolean output indicating whether the email was sent successfully.

πŸ•ΉοΈ Controls

  • Currently Supported Sending: Information labels describing Gmail requirements for sending emails.

  • Sender Mail Activation: Provides guidance that the sender's email must be activated via the Gmail API.

🎨 Features

Attachment Support Users can add attachments from their local filesystem when sending emails.

Gmail API Integration Utilizes the Gmail API for secure email communication.

Error Handling The block attempts to gracefully handle SMTP session expirations and re-establishes connections seamlessly.

πŸ“ Usage Instructions

  1. Set Up Sender Address: Enter the sender's Gmail address and ensure it is activated through the Gmail API.

  2. Compose Email: Fill in the Subject and Content fields to create the email.

  3. Add Attachment (Optional): If you wish to include an attachment, provide the file path under Attachment File Path.

  4. Trigger Sending: Activate the Trigger parameter to send the email.

πŸ“Š Evaluation

Upon triggering, the function block composes the email and attempts to send it. The success state will be outputted, confirming whether the send action was successful.

πŸ› οΈ Troubleshooting

Failed to Send Email

Ensure that the sender's email account is correctly set up and activated for API access. Also, verify that the password provided is correct.

Attachment Not Found

If you receive an error about attachment issues, ensure that the file path provided is valid and the file exists at that location.

Session Expiration

If you receive warnings about session expiration, consider waiting a brief moment and then triggering the action again. The block handles session reconnection automatically.

Last updated