Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

sendgrid attachment

Hi @Hi4All!

Have you shared the app?

Hi4All
Posts: 0
Joined: Sun Jan 11, 2015 2:25 pm

sendgrid attachment

I already did ..

thank you

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

sendgrid attachment

Please clarify project name.

Hi4All
Posts: 0
Joined: Sun Jan 11, 2015 2:25 pm

sendgrid attachment

RepairEXP

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

sendgrid attachment

Hello,

As we can see there is custom JavaScript, no Appery.io functions used.
Unfortunately this is something outside the scope http://devcenter.appery.io/support-po... of standard Appery.io platform support . You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack http://appery.io/services/#Advisory_Pack.

Hi4All
Posts: 0
Joined: Sun Jan 11, 2015 2:25 pm

sendgrid attachment

Finally, I was able to receive the email with attachment, here are the main errors I overcome,

  • If you get the error INVALID_STATE_ERR: DOM Exception 11
    You need to take the code request.withCredentials = true; to be right before
    request.send(formData);

  • If you get the error "Illegal constructor", then try to change the way you are creating the Blob object, below code is very useful in this case,

    function NewBlob(data, datatype) {
    var out;

    try {
    out = new Blob([data], {
    type: datatype
    });
    console.debug("case 1");
    } catch (e) {
    window.BlobBuilder = window.BlobBuilder window.WebKitBlobBuilder window.MozBlobBuilder || window.MSBlobBuilder;

    Code: Select all

     if (e.name == 'TypeError' && window.BlobBuilder) { 
         var bb = new BlobBuilder(); 
         bb.append(data); 
         out = bb.getBlob(datatype); 
         console.debug("case 2"); 
     } else if (e.name == "InvalidStateError") { 
         // InvalidStateError (tested on FF13 WinXP) 
         out = new Blob([data], { 
             type: datatype 
         }); 
         console.debug("case 3"); 
     } else { 
         aler("We are screwed, blob constructor unsupported entirely"); 
         console.debug("Errore"); 
     } 

}
return out;
}

The problem which I'm facing now is that attached image is corrupted in the attachment of the email.

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

sendgrid attachment

Hello,

Sorry, but debugging custom app code is outside the scope of support.

Hi4All
Posts: 0
Joined: Sun Jan 11, 2015 2:25 pm

sendgrid attachment

Did I ask your debugging support..!!?

I'm explaining what is my experience with this and might other users can have some inputs in regards.

Moez Ali
Posts: 0
Joined: Wed Aug 17, 2016 2:46 pm

sendgrid attachment

hey please tell me how to attach a file in email i am using sendgrid plugin

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

sendgrid attachment

Hello Moez,

Could you please clarify what have you tried and what exactly doesn't work? Have you tried any approach described in this thread?

Return to “Issues”