How to view JSON payloads for Email sends? - json

My company is having trouble with account activation emails not sending out the proper activation link within the email so users can complete the account creation process.
We run our email sends through SendGrid and they instructed me to send them my JSON payload for email sends so they can see what the issue is causing this disconnect.
I have never had to work with JSON or pull this type of data and embarrassingly do not know where to start. How would I go about viewing this data?

Related

E-mail templates with Json

Working on a project for my employer. They are searching for a solution to connect JSON to a email template.
For now, I look for a solution where the system who has the JSON, loads the JSON script on a server. Then, we connect that server with a marketing automation system, for example Marketo. We like to create an email template which loads the JSON.
The developer we found, says it is not possible and it will not work in gmail, outlook or any other client. For what I know, it is possible to create a email template with JSON right? Just to be sure, because when it is possible, our problem is not the system, but the developer.
Like to hear your thoughts on this subject. Suggestions are welcome.
So, this can be done, but you're going to need to do some custom development.
Marketo's API includes a request campaign endpoint for triggering Smart Campaigns, including those which send emails. As part of the request campaign payload, you can send {{my.token}} values for the campaign.
If you can set up some middleware between your JSON output that renders the HTML for your email, you can push that rendered HTML as a token in the campaign request, allowing for on-demand email creation based on your JSON content.
There are two caveats with this approach:
You will have to dynamically send the email using Request Campaign. That means if you need to send unique content to multiple folks, you'll be using one API call per email.
Due to the nature of Request Campaign triggers, you will not be able to batch and send using Marketo's controls; however, this should be straightforward to set up on the API side.
You can build an email using dynamic data, e.g. from an API that sends JSON.
However, you cannot send an email that calls dynamic data. The final email that gets sent must be static. That may be what your developer is getting at. Email software will strip out scripts.

DocuSign API creates duplicate entries for the document

enter image description here
We have used DocuSign Rest API and at times we are seeing duplicate entries against one receiver in DocuSign account under "Sent Items". Though the receiver is receiving the email once only. See attached image for reference. What does the "waiting for others" status indicates and under which scenarios this status will be generated?
waiting for others means that one or more of the signing recipients and/or certified copy recipients has not yet completed their action on the envelope.
The multiple rows in the Sent list means that you have sent the envelope more than once, you'll need to check your code to see how that is happening. I suggest that you have your code make a log entry every time your code calls the DocuSign eSignature API (and for create envelope calls, record the envelope id.)
If you can't figure out how your app is sending multiple envelopes when you expect that only one is being sent, use the API Request Logger to see what is being sent to DocuSign from your app.
Re: only one email was sent even though there were two or more envelopes:
Using the DocuSign web app, examine the envelopes that are in flight to check their recipients. It could be that the email address is incorrect in some of the cases.
Check your email tool. The two email notifications for two different DocuSign envelopes will be very similar and are collapsed by some email agents.

How to take user input from api.ai(dialog flow) and store it in mysql database using php?

I want to take the user inputs through api.ai(dialog flow) chatbot and store it in MySQL database like asking the user details of name, age, contact num through chatbot and then the user details are to be stored in my database i.e.., MySQL database. After storing, at last, the chatbot should show the summary to the user for confirmation.
I am able to interact and continue the conversation with my chatbot but unable to store the user's inputs.
I was searching at different places but I can't get the right process. I am comfortable with PHP to get the data from api.ai and to store in MySQL database.
Any help would be appreciated.
"Thanks in Advance!"
You need to create a webhook to handle fulfillment from Dialogflow. This will be a publicly accessible URL that can take an HTTPS POST, with a JSON body. In your case, this will be your Heroku URL that you will enter into the Fulfillment tab in Dialogflow.
See https://dialogflow.com/docs/fulfillment for information about the JSON you are sent, the JSON you'll need to reply with, and other information you need to setup fulfillment.
In your PHP code - you can do whatever you want with the data being sent to you, including storing it in MySQL. You'll then send back JSON (see the above URL for the format) indicating how you want to reply to the user.

Salesforce Marketing Cloud mass email send

I want help from someone regarding the mass email send via Salesforce Marketing Cloud.
For example, I want to send emails to 5000 customers daily. It is a newsletter. Each days the email contents will change. There are 4 dynamic variables in my newsletter. First Name, Last Name, Email and Message.
Which is the option to send mass emails via Salesforce Marketing Cloud?
There are different options like use Data Extension, List, Triggered Send. I used triggered send (I am using PHP fuelSDK ) and it is not sending all the 5000 emails quickly (when I created a triggered send I have selected Email, List, etc). I am calling the Triggered send api 5000 times to send to each emails (It is taking more than 1.30 hours to complete). Also it is not sending email to all the 5000 email addresses. Some failure response I am getting like "Error Code: 24 - Subscriber was excluded by List Detective". I understand this. Some emails I can see "Successfully sent" response in the log. But when I check it in tracking section, those emails are not there. I don't know what is happening here.
Can any one help me to understand the problem?

How to send bulk mails using Mandrill in Drupal 7

I have an email to be sent to nearly 30,000 users. For this I have installed and configured the Mandrill module for Drupal 7, but I don't know how to start sending emails to my list. Do I need to install any other module?
From Mandrill's help:
Lists cannot be uploaded or stored in Mandrill. Recipient or subscriber lists should be managed in your own database or application. Then, when you're reading to send an email, recipient information is passed to Mandrill in your API request or SMTP message.
Note: If you're looking for a service that provides list-management services as well as the ability to create and track bulk emails, check out MailChimp.
Import your list of 30k emails to a table in your database.
Make another table called sent_emails, where it stores a string for sql, a text column for the html in the email, another text column for a text email, a string column for a subject, the date and time you want the emails to be sent
Cron up a bash script that runs every minute and checks for records in the sent_emails table and if so sends the email to the specified list of user ids that gets generated from the sql
Yes as #datashaman said, email lists cannot be imported into Mandrill or any other SMTP email gateways like SendGrid, Amazon SES, MailGun, etc.
But you can use 3rd party email clients or email marketing applications, like Sendy to easily integrate Mandrill. You can check Sendy installation services like, easysendy, which can get all these done for you.
Using Sendy you can manage the list of email subscribers and send emails through the SMTP gateways of your choice.