can someone help me send an array to an email using sendgrid?
i want it to look just like this guys example..
https://getsatisfaction.com/apperyio/...
can someone help me send an array to an email using sendgrid?
i want it to look just like this guys example..
https://getsatisfaction.com/apperyio/...
Hello,
If we understood you correctly you want send multiple "to" emails.
Unfortunately there is not available multiple addresses in this plugin by default.
But if you want to do it you can try next steps:
1 open Services-SendGrid_MailSend.
2 Request. Delete "to" parameter.
3 Invoke service using javascript code:
pre
code
sendgrid_mailsend.execute({data: {"to[]": ["yourfirstEmail@sss.com", "yoursecondEmail@sss.com"]} });
/code
/pre
It will generate request with multiple to[] parameters. Please check request/response in the browser console "Network".
Do you want to use email body text with array inside?
Could you show what exactly you tried and what doesn't work?
yes id like to put an array inside the body if possible.. basically upon sign up users are required to fill out a form and upload two files into the database. I need to take that new user info, along with the files, and send it to a single email address using the Sendgrid api. I have a server side code that takes the "_id" and outputs the user's info into an array. Now i need to take this array and somehow implement it into some type of sendgrid parameter(text, header, SMTPAPI?) so that it displays in the email. How can I add extra parameters or find a way to include user info (name,address,email,city,DOB,etc....) to appear in the email?
im having trouble mapping the array response from my server code to the request response from the sendgrid service..
Hi,
In this tutorial tutorial there is an example of code that sends email. In response parameters, use this code to send the array:pre"text": JSON.stringify(arr)/preWhere 'text' is a XHRResponse parameter,
'arr' is an array name.