Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

email array to sendgrid

Nathan,

Could you please post screenshots of service Settings and Test tab?

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Katya-

Did you look at the screen shot that I attached already? Please let me know. Thanks.

Cheers,

Nathan

I have attached the two requested here. Image Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

email array to sendgrid

Hi Nathan,

On your screenshot we don't see "from" and "to" addresses. They should have this format: a href="mailto:admin@mail.com" rel="nofollow"admin@mail.com/a

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Katya-

Hi. This is a bit frustrating as I thought I explained that I was told to delete the to parameter. The error message only happens in testing. In practice, it works fine except that the email only goes to the first address listed and leaves out the other three.

Please I have pasted Igor's instructions below to remind you again of the process.

Have you looked at the other screen shot from the developer tools? I will paste the findings in another post with the hope that you are a colleague will take a look. Thanks.

Cheers,

Nathan

From Igor:

EMPLOYEE
Igor Moroz (Employee) 1 month ago
Hi Casey.

Unfortunately there is no 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 only via javascript code:

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Here is what developer tools is telling me.

In the Response I get this: {"message":"success"}

The email sends to the first email address in the array.

Accept:application/json, text/javascript, /; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
appery-key:1398373842987
appery-proxy-url:http://sendgrid.com/api/mail.send.json
appery-rest:1522660
appery-transformation:checkTunnel
Connection:keep-alive
DNT:1
Host:api.appery.io
Origin:http://appery.io
Referer:http://appery.io/app/view/0138aa30-ef...
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Query String Parametersview sourceview URL encoded
subject:Out of Stock Alert: Safest Choice Large CAGE FREE (NPE) is out stock at Gelsons Location- 108 West Hollywood (#Store Number: 108)
text:Dear Nathan Test,

Hi, This is an email from Laurie. I am writing to let you know that you have product out of stock at Gelsons Location: 108 West Hollywood (#Store Number: 108)

Here is what I found at the store:

Safest Choice Large CAGE FREE (NPE) is out of stock

There is more stock in the warehouse and they will restock the shelf.

The shelf tag is still in place and the spot allocated to your products if void of any other items.

The order was shorted by the distributor

The last approximate delivery date was 2014-04-02

Here are some additional notes: No additional notes

Kind Regards,

Laurie
from:a href="mailto:OutOfStock_ALERT@inshelfanalytics.com" rel="nofollow"OutOfStock_ALERT@inshelfanalytics.com/a
api_user:******** // I have removed this info for security purposes
api_user:******** // I have removed this info for security purposes
api_key:*********** // I have removed this info for security purposes
api_key:****** // I have removed this info for security purposes
to[]:a href="mailto:nlmorin@gmail.com" rel="nofollow"nlmorin@gmail.com/a
to[]:a href="mailto:northcoastorganics@gmail.com" rel="nofollow"northcoastorganics@gmail.com/a //you can see the 2nd email is there
to[]:a href="mailto:nathan@north-coast-organics.com" rel="nofollow"nathan@north-coast-organics.com/a //you can see the 3rd email is there
to[]:a href="mailto:deodorantkingofchicago@gmail.com" rel="nofollow"deodorantkingofchicago@gmail.com/a ///you can see the 4th email is there
Response Headersview source
Access-Control-Allow-Origin:http://appery.io
Cache-Control:private
Connection:keep-alive
Content-Type:text/plain
Date:Thu, 24 Apr 2014 21:13:03 GMT
Expires:0
Pragma:cache
Server:nginx
Transfer-Encoding:chunked Image Image

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

To be clear about this issue:

  1. It is working with the first email in the Array.

  2. The other email addresses are being passed but those emails are not being sent.

  3. I followed Igor's instructions to remove the to parameter so testing will ALWAYS fail. However emails are being sent fine, so that service is working partly.

    I kindly ask that you review the developer logs. I have posted them twice as a pdf and once as text in the body of the message. This tells us what is happening.

    Thanks.

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Casey as you can see I have not got anywhere all day with the appery.io folks on this issue. I am going to implement this later after I get done teaching class. I may reach out to you here, if I have any issues.

Thanks for being a great help. I wish I didn't waste all day on SendGrid.

casey palmer
Posts: 0
Joined: Tue Mar 18, 2014 6:32 am

email array to sendgrid

Yes let me know if you need something or if I can help with this part.

I also spent a lot of time with SendGrid before I switched.. Good Luck.!

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

email array to sendgrid

Hi Casey,

There is a solution for you.

Please follow these steps:

1 Open "SendGrd_MailSend" service.

2 Change "URL" to: "https://api.sendgrid.com/api/mail.sen..."

3 change "Method" to "post".

4 change "Content Type" to "x-www-form-urlencoded".

See details for these steps on this screen shot: http://prntscr.com/3d5eze/direct

After you make this changes you can send email to multiple users via code:

pre
sendgrid_mailsend.execute({data: {"subject": "a_13", "to[]": ["firstEmail@domain.com", "secondEmail@domain.com"] } });

/pre

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Alena-

I implemented Steps 1 through 4. However, it is not working. Here is the network log.

Cheers,

Nathan

Remote Address:54.221.205.233:443
Request URL:https://api.appery.io/rest/1/proxy/tu...
Request Method:POST
Status Code:500 Internal Server Error
Request Headersview source
Accept:application/json, text/javascript, /; q=0.01
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
appery-key:1398441138718
appery-proxy-url:https://api.sendgrid.com/api/mail.sen...
appery-rest:1522660
appery-transformation:checkTunnel
Connection:keep-alive
Content-Length:1128
Content-Type:application/x-www-form-urlencoded
DNT:1
Host:api.appery.io
Origin:http://appery.io
Referer:http://appery.io/app/view/0138aa30-ef...
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
Form Dataview sourceview URL encoded
subject:Out of Stock Alert: Country Daybreak Grade A Jumbo Eggs (CD) is out stock at Gelsons Location- 16 Sherman Oaks (#Store Number: 16)
text:Dear Nathan Test,

Hi, This is an email from Laurie. I am writing to let you know that you have product out of stock at Gelsons Location: 16 Sherman Oaks (#Store Number: 16)

Here is what I found at the store:

Country Daybreak Grade A Jumbo Eggs (CD) is out of stock

They do not have any stock in the warehouse. Shelves will not be restocked until more product arrives.

The shelf tag is still in place and the spot allocated to your products if void of any other items.

The order was shorted by the distributor

The last approximate delivery date was

Here are some additional notes:

Kind Regards,

Laurie
from:a href="mailto:OutOfStock_ALERT@inshelfanalytics.com" rel="nofollow"OutOfStock_ALERT@inshelfanalytics.com/a
api_user:
api_user:
api_key:
api_key:
to[]:
to[]:
to[]:
to[]:
Response Headersview source
Access-Control-Allow-Origin:http://appery.io
Cache-Control:private
Connection:keep-alive
Content-Type:text/plain
Date:Fri, 25 Apr 2014 15:55:13 GMT
Expires:0
Pragma:cache
Server:nginx
Transfer-Encoding:chunked

Return to “Issues”