Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

SendGrid Photograph, easy solution?

Hi folks,
I have made the changes lllya mentioned changed parameter to html from text.

if I send message without a photo I get the message, with a small grey box where the photo would be if I had taken one.

when I take a photo and send message nothing arrives
here are some screenshots.
can anyone see the mistake?

thanks

Image

Image

Image

Image

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

SendGrid Photograph, easy solution?

Hi Michael,

Just check the availability of data in a variable 'photo_buffer', and if the data is absent, do not add the tag img. After all, if you add it - then you will just see a gray box.

[quote:]1). You need to change the setting for particular instance of service (on Data tab of a screen);[/quote]You can add several services to a page, and change these settings there (on the page in DATA tab).

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

SendGrid Photograph, easy solution?

Hi Evgene,
still struggling here, changed sending to html,
you mention Base64encoded picture should be sent. I cant find this setting or where to put it, can you explain. I had looked at every topic and all docs but to no avail.

Thanks

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

SendGrid Photograph, easy solution?

Hi,
im still stuck here
when I add photo the email does not arrive, please take a look at these screenshots and tell me what settings are wrong,
im sending it as html, I have data url selected and the sendgrid js code for the message appears to be correct, Im saving the details to localstorage and then invoke the sendgrid service, Evegene mentioned sending a base64 ilmage, I cant find this setting.

Image

Image

Image

Image

Image

Image

Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

SendGrid Photograph, easy solution?

Hi Katya,
can someone have a look at this problem, the apps name "easylets" app id a4e9c51c-e1f8-455b-810f-c2867a3a2388

Thanks

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

SendGrid Photograph, easy solution?

Hi Michael,

You can obtain a base64 image from a response parameter imageDataBase64 as on your screenshot:
Image

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

SendGrid Photograph, easy solution?

heers Katya,
I have it mapped to localstorage, in the screenshot above mapped to photo_buffer

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

SendGrid Photograph, easy solution?

Hello Michael,

Could you please look, using weinre, what error occurs when you are sending email: http://devcenter.appery.io/documentat...

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

SendGrid Photograph, easy solution?

OK Evgene,
in weinre when I send the email with photo network says "Request URl too large"
here is the screenshot along with the sendgrid settings

Image

Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

SendGrid Photograph, easy solution?

Michael,

It turns out that the query string is too long(because the string's representation of the image is passed in the URL string). Please try to reduce the quality and reduce the height and width of the image in request parameters of camera_service.

Return to “Issues”