Open bhaskararora opened 10 years ago
+1
+1
+1 Looks to me like the code here should be using a multipart request to submit binary attachments. see https://sendgrid.com/docs/API_Reference/Web_API/mail.html#-send
Is anyone maintaining this repo at this point? @brandonmwest? @motdotla?
Here is a solution for sending jpeg, pdf or other data formats as attachments from sendgrid: https://github.com/Kaptio/SalesforceToSendgridWithAttachmentsExample
+1
@rfjolnisson You're the man! Was able to use your code and get multiple attachments, of different filetypes, sent via SendGrid's API.
@rfjolnisson Can you help in sending unique arguments with the mail using Content-Disposition from your code as mentioned here https://sendgrid.com/docs/API_Reference/SMTP_API/unique_arguments.html?
Can you help with sending PDF attachments using sendgrid vis javascript?
We are using sendgrid API to send email and the only problem we have is attachment. We need to send PDF,DOC,JPEG from salesforce using sendgrid. BUt we are able to send only .txt file. Please help us regarding the encoding of pdf or other format file so that we can send other format using sendgrid via salesforce. We had a chat with sendgrid and they suggested you can help us regading this.