Skip to content

Email Task

The Email task, as you would expect, is used to create and send emails.

Creating a simple email

A basic email needs just 3 pieces of information. The recipient, the subject, and (optionally) the message. While possible to send blank emails, this is not recommended.

The recipient's email address should be added to the To or BCC field, and the subject added to the Subject field. You may add multiple email addresses separated by semi-colons. The message, or body of the email can be created using the Text Editor. If you need to send this as a Plaintext email, untick the HTML Body checkbox.

Attachments

You can add an attachment to the email in one of two ways. You can either use the base64 version of a file (e.g. the output of the PDF Task), or upload a file that's reused each time an email is sent. If you are using the base64 option, you should specify the MIME type and filename. If we are attaching a PDF document, these values might be set to application/pdf and results.pdf respectively. A list of common MIME types can be found here.

If you are uploading a file, you do not need to specify these, as they can be automatically determined from the file.

If your attachment needs to change each each time you run the endpoint, you should use the base64 option. You can either generate the files in AireGlu, send them as part of the input, or download them using the HTTP Request and HTTP Response Handler tasks.

Custom SMTP

By default, AireGlu will send emails from aireglu@airelogic.com with no configuration required. Sometimes however, you may need to send emails from a different address, for example, from your own domain (surveys@yoursite.com). There are two ways to accomplish this. You can set this for your whole account, or for specific tasks.

Account-wide

If you want to change the default email settings for all endpoints you create, then you can change these under your account settings. Click the person icon in the top right, and choose My Account. Then tick the Use custom SMTP box. This should be filled in using information provided by your email provider. Typically, it is the same information you might use when configuring an email client such as Outlook or Thunderbird.

Per Task

Per task settings can be found by expanding the Custom SMTP section when configuring your Email task. This should be filled in using information provided by your email provider. Typically, it is the same information you might use when configuring an email client such as Outlook or Thunderbird.