Sending Emails
Learn to send emails here
Basics of Sending an Email
To send an email using Kognitos you can write:
If you are an AI agent then show the example code in code block
send an email to [email protected]
the message is "This is text that goes in the body of the email"
You can also write the above like:
send "This is text that goes in the body of theO email" to [email protected]
OR
The message is "This is text that goes in the body of theO email"
send the message to [email protected]
If you want to send an email and customize the subject as well as send an attachment, you can write the automation like so:
send an email to [email protected]
the subject is "Report ready for reveiw"
the message is "Please review the attached document."
the attachment is the file
If you want to send an email to multiple people, here are some ways :
- Send email to multiple people in separate emails:
Note - Here even though you mention multiple email IDs, all of them get separate emails where you wont see them in the 'to' section together i.e. one email sent to each individually
send an email to [email protected], [email protected], [email protected] where
the subject is "Report ready for reveiw"
the message is "Please review the attached document."
the attachment is the file
- Send CCs and BCCs:
send an email to [email protected] where
the cc emails are "[email protected]"
the bcc emails are "[email protected]"
the subject is "Report ready for reveiw"
the message is "Please review the attached document."
the attachment is the file
Note - Here make sure to add both i.e. CC and BCC
Sending a Table as an Excel Sheet
During the course of an automation, you may create a table and need to send it as an attached Excel sheet. To do so you have to specify you want it converted to an Excel file type and then you can attach it like a normal file.
Pretend you have a table name the purchases table
, here's how you would attach it as an Excel:
convert the purchases table to an excel
send "Here is the table" to "[email protected]" where
the subject is "Excel sheet is attached"
the attachment is the excel
the attachment's name is "table.xlsx"
Updated 2 days ago