Page 2 of 4

sendgrid attachment

Posted: Mon Jan 12, 2015 11:36 pm
by Yurii Orishchuk

Hello,

Please debug this code with WEINRE debugger.

Details are here: http://devcenter.appery.io/documentat...

Regards.


sendgrid attachment

Posted: Tue Jan 13, 2015 8:41 pm
by AC

hello, ken. I want to do the same thing that what u have done. But since I am a rookie so I dont understand ur instruction very clear. I already passed the photo to my image container and it will show when I load the send email page.
I followed the sendgrid email tutorial and set up everything I need. Now I can receive email including text in the email body and some text data followed by the email body text. Can u tell me what codes are needed from ur code in my case. Please advice.


sendgrid attachment

Posted: Wed Jan 14, 2015 9:41 am
by Hi4All

I'm unable to sort out the issue, when I tested the APK through my android device it is not showing anything and not sending any email .. I don't know how to debug while I'm testing though my mobile.. :(

I hope somebody can help in this matter..


sendgrid attachment

Posted: Wed Jan 14, 2015 9:52 am
by Hi4All

I'm able now to get the error through debugger,
processMessage failed: Error: TypeError: Cannot read property 'length' of undefined
processMessage failed: Stack: TypeError: Cannot read property 'length' of undefined
at file:///android_asset/www/Login.js:308:54
at Object.cordova.callbackFromNative (file:///android_asset/www/files/resources/lib/cordova.js:294:48)
at processMessage (file:///android_asset/www/files/resources/lib/cordova.js:1053:21)
at androidExec.processMessages (file:///android_asset/www/files/resources/lib/cordova.js:1090:13)
at instrumentedCode (http://debug.appery.io/target/target-...)
processMessage failed: Message: F07 PushNotification1136157459 sInvalid action


sendgrid attachment

Posted: Thu Jan 15, 2015 12:29 am
by Yurii Orishchuk

Hello,

Not sure what could produce this error.

But you can check it with following js code:

pre

console.log("binary is = ");
console.log(binary);
console.log("binary.length = " + binary.length);

/pre

Then you see logs in your weinre debugger.

Regards.


sendgrid attachment

Posted: Thu Jan 15, 2015 7:13 am
by Hi4All

Even I removed the blob from formdata, still it is not sending. but I get the status as
Status Code:400 Bad Request400 Bad Request

And the response,

CF-RAY:1a903e26fb2e09f4-ICN
Connection:Keep-Alive
Content-Type:application/json
Date:Thu, 15 Jan 2015 07
Server:cloudflare-nginx
Set-Cookie:__cfduid=d8855a1a58dfd46935d4dc856c11e70591421305713; expires=Fri, 15-Jan-16 07
Transfer-Encoding:chunked


sendgrid attachment

Posted: Fri Jan 16, 2015 8:06 am
by Evgene Karachevtsev

Hello Hi4All,

Could you please kindly clarify, have you followed the instructions from this tutorial
http://blog.bismallion.com/sending-em... ?


sendgrid attachment

Posted: Sat Jan 17, 2015 10:05 am
by Hi4All

I started over again and implement the same mentioned in different page http://blog.bismallion.com/sending-em...

When I debug, now I'm getting the following error,
TypeError: Illegal constructor

I don't know how to get this done, I can share my project with anybody from the support team..

Thank you


sendgrid attachment

Posted: Sat Jan 17, 2015 10:16 am
by Illya Stepanov

Hello Hi4All,

Yes you can share (http://devcenter.appery.io/documentat...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and please send us the app name.


sendgrid attachment

Posted: Sat Jan 17, 2015 5:25 pm
by AC

this is a very very good post. I worked it by using this code. Thx for all!