Request metadata including ID, timestamp, and API version.
You can also send a simple email with just the required fields:
Copy
const res = await contiguity.email.send({ to: "[email protected]", from: "Your App <[email protected]>", subject: "Hello from Contiguity!", body: { text: "This is a plain text email." }});
Various email parameters can be configured in the Console such as tracking, custom domains, and more.
Copy
# HTML emailemail_object = { "to": "[email protected]", "from": "Contiguity", "subject": "My first email!", "html": "<b>I sent an email using Contiguity</b>"}client.send.email(email_object)
Or, to send a plain text email:
Copy
# Plain text emailemail_object = { "to": "[email protected]", "from": "Contiguity", "subject": "My first email!", "text": "I sent an email using Contiguity"}client.send.email(email_object)
Optionally, use replyTo and cc. At the moment, cc only allows one email address.