Trigger workflows on new emails, and send emails to yourself as part of a Pipedream workflow.
Get a unique address where you can send emails to trigger your workflow.
Create a new contact in PostGrid. See the documentation
Customize and send an email to the email address you registered with Pipedream. The email will be sent by notifications@pipedream.com.
Creates a new letter in PostGrid. See the documentation
Creates a new postcard in PostGrid. See the documentation
export default defineComponent({
async run({ $ }) {
const options = {
subject: 'Your subject here',
text: 'Your text here'
};
$.send.email(options);
},
});
The PostGrid Print & Mail API offers seamless print and mail solutions, enabling the automation of sending personalized letters, postcards, checks, and more. With this API, you can systematize direct mail campaigns, transactional mailings, or on-demand dispatch without managing printing infrastructure. In Pipedream, you can harness this capability to interlace PostGrid with an array of other services and triggers, creating workflows that respond to events such as form submissions, scheduled campaigns, or customer actions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
postgrid: {
type: "app",
app: "postgrid",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.postgrid.com/print-mail/v1/contacts`,
headers: {
"x-api-key": `${this.postgrid.$auth.api_key}`,
},
})
},
})