Skip to main content
SMTP

Learn how to set up SMTP settings in Torq for email providers like Gmail and Microsoft 365, and integrate email sending into your workflows.

Updated over a month ago

SMTP, or Simple Mail Transfer Protocol, is a set of rules used to send emails over the Internet. In Torq, you can use SMTP to send emails from your email application, like Gmail or Microsoft 365, directly from your Torq workflows.

SMTP allows the app to send emails by connecting to your mail server. This makes sure your messages get delivered to the right people. With this feature, you can easily send emails straight from the app without needing a separate email program.

SMTP Server Settings

Email provider

Server

Port

smtp.office365.com

587

smtp-mail.outlook.com

587

smtp.gmail.com

SSL: 465; TLS: 587

SMTP Message Components

An SMTP message contains a header and a body.

Header

The header contains information about the email such as:

  • Sender: sender's email address.

  • Recipient: recipients' email addresses.

  • Subject: email subject

  • Date (optional): email date.

  • Cc (optional): CC recipients' email addresses.

  • Bcc (optional): BCC recipients' email addresses.

  • Reply-To (optional): email addresses the email in reply to.

Basic Header

This email is a simple message reminding the recipient, Jane, about a meeting.

From: john.doe@example.com
To: jane.smith@example.com
Subject: Meeting Reminder
Date: Tue, 01 May 2023 09:00:00 -0400Hi Jane,
Just a quick reminder about our meeting this afternoon at 3 PM.
Best,
John

CC Header

This email contains a project update and is sent to Jane, with Peter copied (Cc) on the message.

From: john.doe@example.com
To: jane.smith@example.com
Cc: peter.brown@example.com
Subject: Project Update
Date: Tue, 01 May 2023 10:00:00 -0400Hello Jane and Peter,
Please find the latest project update attached to this email.
Best regards,

BCC Header

This email is a request for a private discussion with Jane, and includes a blind carbon copy (Bcc) sent to a confidential email address.

From: john.doe@example.com
To: jane.smith@example.com
Bcc: confidential@example.com
Subject: Private Discussion
Date: Tue, 01 May 2023 13:00:00 -0400Hi Jane,
I'd like to discuss a confidential matter with you. Please let me know when you're available for a private conversation.
Kind regards,
John

In-Reply-To Header

This email is a response to a previous message from Jane about a vacation request, using the "In-Reply-To" header to reference the original message.

From: john.doe@example.com
To: jane.smith@example.com
Subject: Re: Vacation Request
In-Reply-To: 
Date: Tue, 01 May 2023 11:00:00 -0400Hi Jane,
Thank you for approving my vacation request. I'll be sure to complete my tasks before leaving.
Regards,
John

Reply-To Header

This email is an RSVP confirmation for an event, with a "Reply-To" header directing responses to a specific event's email address.

From: john.doe@example.com
To: jane.smith@example.com
Subject: RSVP Confirmation
Reply-To: events@example.com
Date: Tue, 01 May 2023 12:00:00 -0400Dear Jane,
I'm happy to confirm my attendance at the upcoming event. Please let the events team know.
Sincerely,
John

Body

The body contains the actual content of the email message. It can be plain text or HTML, depending on the preferences of the sender and the capabilities of the recipient's email service.

Advanced Formatting

For more advanced formatting, such as including attachments, rich text, or non-ASCII characters, the MIME (Multipurpose Internet Mail Extensions) standard is used in conjunction with SMTP to extend its capabilities. MIME allows for the encoding and decoding of various content types within email messages, enabling more complex formatting and the inclusion of multimedia elements.

Rich-Text (HTML)

From: john.doe@example.com
To: jane.smith@example.com
Subject: Greetings
Date: Tue, 01 May 2023 14:00:00 -0400
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8Hello Jane,
Wishing you a great day!
Best regards,John

Attachment

From: john.doe@example.com To: jane.smith@example.com Subject: Project Files Date: Tue, 01 May 2023 15:00:00 -0400 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="BOUNDARY"--BOUNDARY Content-Type: text/plain; charset=UTF-8Hi Jane, Please find the project files attached.Best,John

--BOUNDARY Content-Type: application/pdf; name="project.pdf" Content-Disposition: attachment; filename="project.pdf" Content-Transfer-Encoding: base64BASE64_ENCODED_ATTACHMENT_DATA --BOUNDARY--

Non-ASCII Characters

From: john.doe@example.com
To: jane.smith@example.com
Subject: Foreign Language Example
Date: Tue, 01 May 2023 16:00:00 -0400
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8こんにちは Jane,これは日本語で書かれたメールです。よろしくお願いします, John

Create an SMTP Integration in Torq

  1. Go to Build > Integrations > Steps > SMTP and click Create New.

  2. Fill out all of the fields in the New Integration window. Refer to the SMTP server settings for your email application.

If you're using Gmail, the password must be an app password. For more information, consult Google's documentation.

smtp-integration
Did this answer your question?