Chuyển tới nội dung chính

Setup Guide: SMTP (Send Email)

Use Send SMTP Mail Message when the Agent needs to send emails through a mail server such as Gmail, Yahoo Mail or your company's mail server.

This guide helps you collect the information the activity needs and shows where to enter it. You do not need to install or configure a mail server.

Using Exchange Server?

If you send from a mailbox on your company's own Exchange Server, you can also use Send Exchange Mail (in akaBot Studio: Mail > Exchange). See Setup Exchange (EWS).


1. Information You Need​

InformationWhere to get itExample
ServerTable in section 3, or ask your IT team"smtp.gmail.com"
PortTable in section 3, or ask your IT team587
EmailThe address that sends the email"bot.notifications@gmail.com"
PasswordAn App Password, or the account password if your provider allows it. Leave empty for a company relay without login16 letters, no spaces
ToThe people who receive the email"user1@company.com;user2@company.com"

2. Get the Information​

Gmail / Yahoo Mail​

Create an App Password as described in the IMAP setup guide. Use it as Password. Sending does not require IMAP to be turned on.

Microsoft 365​

Sending with a normal password only works if your administrator has turned on Authenticated SMTP for the mailbox, and Microsoft is switching this off from late 2026. Use Send Mail in the Office 365 package instead.

Company mail relay (no login)​

Many companies have an internal mail server ("relay") that accepts email from approved computers without a password. Send your IT team this request:

Please send me the SMTP relay server name and port for the Agent machine <computer name or IP address>, and confirm that it can send email without a login. The Agent will send from the address <address>.


3. Server and Port Reference​

ProviderServerPortSecure ConnectionLogin needed
Gmailsmtp.gmail.com587StartTls (or Auto)Yes – App Password
Gmail (alternative)smtp.gmail.com465SslOnConnectYes – App Password
Yahoo Mailsmtp.mail.yahoo.com465SslOnConnectYes – App Password
Company relayAsk your IT teamUsually 25None or AutoUsually no

4. Enter the Information in akaBot Studio​

Send SMTP Mail Message​

All settings for this activity: Send SMTP Mail Message

  1. In the Activities panel, open Mail > SMTP and drag Send SMTP Mail Message into your workflow.
  2. In the Properties panel, fill in:
CategoryPropertyValue
HostServer"smtp.gmail.com"
HostPort587
LogonEmail"bot.notifications@gmail.com"
LogonPasswordYour App Password
ReceiverTo (required)"manager@company.com;finance@company.com" – separate addresses with ;
ReceiverCc / BccOptional, same format as To
MailSubject"Daily Report - " + DateTime.Now.ToString("dd/MM/yyyy")
MailBody"All items have been processed."
OptionsIs Body HtmlSelect only if Body contains HTML, for example "<h2>Done</h2>"
OptionsSecure ConnectionStartTls or Auto for port 587, SslOnConnect for port 465
AttachmentsAttachmentsClick ... and add file paths, for example "C:\Reports\Summary.xlsx"

Send SMTP Mail Message – example settings

Example settings for Gmail. The password is hidden in this screenshot – enter your App Password in Password.

For a company relay without login: leave Email and Password empty, and enter the sender address in Sender > From. If you leave From empty too, the email is sent from noreply@anonymous.com.

mẹo
  • You can enter the password in SecurePassword (type SecureString) instead of Password.
  • If Email is filled in, the Agent tries to log in whenever the server offers a login. For a relay without login, keep Email empty.