SMTP Send
3 min
Sends a mail in html format using the specified server credentials.
- Exclude the password parameter for sending mails without authentication
- To send to multiple people, provide a comma seperated list of emails
Options | Description |
|---|---|
from | Format sender info. To do this ass it in the format "Sender" <[email protected]> |
to,cc | Add comma separated email id's to send to multiple people |
attachments.type | text/binary |
attachemtns.content | Regular text if type is text, or base64encoded binary content if the type is binary |
API Definition
SMTP Send API
Call the following API:
POST
https://orca.pathfix.com/functions/web/smtpsend
{
"input":{
"settings":{
"from":"[email protected]",
"to":"[email protected]",
"cc":"[email protected]",
"host":"smtp.servername.com",
"ssl":"yes",
"port":"467",
"user_name":"username",
"password":"password",
"subject":"Hello",
"body":"From Pathfix"
}
}
}
SMTP Send API with User Name
Call the following API:
POST
https://orca.pathfix.com/functions/web/smtpsend
{
"input":{
"settings":{
"from":"\"Sender\" <[email protected]>",
"to":"[email protected],[email protected]",
"host":"smtp.servername.com",
"ssl":"yes",
"port":"467",
"user_name":"username",
"password":"password",
"subject":"Hello",
"body":"From Pathfix"
}
}
}
SMTP Send API with Attachments
Call the following API:
POST
https://orca.pathfix.com/functions/web/smtpsend
{
"input":{
"settings":{
"from":"\"Sender\" <[email protected]>",
"to":"[email protected],[email protected]",
"host":"smtp.servername.com",
"ssl":"yes",
"port":"467",
"user_name":"username",
"password":"password",
"subject":"Hello",
"body":"From Pathfix",
"attachements":[
{
"name":"filename.txt",
"content":"Text content in file",
"type":"text"
}
]
}
}
}