sendgrid / sendgrid-apex

SendGrid (http://sendgrid.com) Apex helper library.
35 stars 21 forks source link

File Attachment like PDF,DOC,JPEG #1

Open bhaskararora opened 10 years ago

bhaskararora commented 10 years ago

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.

bhaskararora commented 10 years ago

+1

bhaskararora commented 10 years ago

+1

mscholtz commented 9 years ago

+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?

rfjolnisson commented 8 years ago

Here is a solution for sending jpeg, pdf or other data formats as attachments from sendgrid: https://github.com/Kaptio/SalesforceToSendgridWithAttachmentsExample

Denizhen commented 8 years ago

+1

mattsimonis commented 8 years ago

@rfjolnisson You're the man! Was able to use your code and get multiple attachments, of different filetypes, sent via SendGrid's API.

lochan58 commented 5 years ago

@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?

carol-saldanha commented 5 years ago

Can you help with sending PDF attachments using sendgrid vis javascript?