Working with Emailing using templates - email

We are building an Azure Function which is a timer based function. The responsibility of the function is to pick messages from the Service Bus Topic and send out an email to end user. I know we can maintain email templates using xslt templates and can transform and form the email message. Is there any way using json to create an email message with the help of a template?
Thanks,
John

Take a look at nuget or npm to see if there is a package that does what you need, for example:
https://www.npmjs.com/package/email-templates
The sendgrid output binding may also provide some of what you need:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid

Related

Export email activity as CSV in Sendgrid

Can anyone please help me on this. I would like to track the user activity in Excel, about their open, click status. I could see them in UI portal. Is there any option to export as CSV?
Thanks in advance.
Bose
Check out the Keen IO SendGrid integration. It collects and stores your SendGrid event data automatically and stores it forever. You to do downloads in the UI or programmatically, and provides a bunch of other functionality that may also be useful.
You can also use it to export some or all of your data to CSV and custom audiences based on arbitrary segmentation, like user behavior or custom attributes (what SendGrid calls Unique Arguments.

Is there some way to use Zapier code to transform data from a trigger before it passes to an action?

There are several instances where the values from a Zapier trigger need to be parsed or cleaned up before they can be used by a Zapier action. I can get halfway there by using Zapier code as an action but I don't see a way to turn around and have it also behave as a trigger.
As an example, say that I have a GMail trigger that I want to feed into my CRM system. The fields needed for the CRM system are contained in the body of the email. In this case I would want to send the email body to a Zapier code action to parse the values I need from the email body and add them as field to the output object. Next I need some way for the output to trigger the CRM action.
Does anyone know of a way to accomplish this?
Since asking this question, Zapier has released Multi-Step Zaps. This enables you to chain actions together. This is critical as they also provide a "Code" Zap that enables the developer to create javascript code that will take as input any of the fields of the previous zaps in the flow and can output virtually anything you want using Javascript.

SurveyMonkey API: Using existing email collector and/or HTML in body_text programmatically

I am guessing there is no support for this, but need to confirm for a client.
I am using send_flow from the API. Is it possible to:
In any way add recipients to an existing Email Collector? The reason is that automating surveys creates quite a few collectors if done daily or more frequently.
Is it possible to send in HTML in email_message.body_text programmatically? It does state plain text in the documentation, and it does not get converted and shows up in the email as plain text. If I use the same HTML-code in an Email Collector created in the SurveyMonkey-website, it works fine, but then again I have no way of using an existing collector it seems, as in question 1.
Continuing from question 2, if we can't send in HTML programmatically, is there a way to change the default email template? The API states "Default template is used if this [body_text] is not specified", but I can't see any option of customizing this in our client-accounts.
Have also considered using a Web Link Collector and send emails outside of SurveyMonkey. The challenge with that seems to be:
Can't register [CustomData] with the responses, which is vital for the analysis, without adding potentially large dropdowns inside the survey itself.
The Survey URL is not unique in terms of forwarding it, although this can be an acceptable risk.
Thanks a lot, any ideas or feedback is appreciated.
Thanks to Tony at SurveyMonkey this was solved by him pointing to Custom Variables in the Platinum version, then adding these to a Web Link Collector and sending the HTML email from our integrating application.
http://help.surveymonkey.com/articles/en_US/kb/What-are-custom-variables-and-how-do-I-use-them
The problem with web link collector is that there is no way to track response rate since SurveyMonkey doesn't know how many links were sent out. I don't know a way around this.

Unique "reference" for form response?

I just created a Google form for online enquiries for my business. I set it up so that it sends an email to the person who submits the form using the "FormEmailer" script but my question is, is there a way I can give that person or more specifically that FormEmailer generated email a unique "Reference" number at the time of submission?
Thanks in advance.
Dan
Absolutely, if you are willing to do some coding on your own.
You may want to look at the recently launched Form Notification add-on for Google Forms, which also sends emails to people who respond to a form. This add-on is meant to be a code sample, and you can find the source code on GitHub, and a quickstart about it in the Apps Script documentation.
To do what you are asking, you would just need to copy the code and add another "Reference number" field to the RespondentNotification template, and then modify the sendRespondentNotification() function accordingly. Alternatively, you can just insert the reference number into the email subject in that function.
Note that this add-on has some limitations: the number of emails sent out (like all of Apps Script) are subject to quota limits. In addition, the add-on isn't really meant used for forms with multiple collaborators/editors. However, Form Notifications should give you a good idea of how to write scripts that respond well to form submissions.

I would like to create a script for collecting multiple subscription requests and generating an e-mail notification

We have an existing website that is built on DNN. I would like to add a script to an existing page that collects a user's request for to subscribe to various e-mails we publish and then to generate an e-mail that idenfies those requested newsletter subscription titles. Any ideas?
Data springs has some good subscription tools available, check out their suite of modules.
If you want to just collect names and email addresses with a request, the DNN Form and List module will work just fine.
If you just want a "subscribe to our newsletter" type of link on your page, you could couple that with a modal popup that shows the form when the link is clicked(Here is an excellent tutorial: http://www.dnncreative.com/Tutorials/DNNTutorialsforAdministrators/EasilycreatePopupsusingdnnModalshow/tabid/679/Default.aspx that will show you how to do it.)