crossvertise / ActionMailerNext

Fork of ActionMailer.Net, A easy to use library to generate emails with razor views
MIT License
42 stars 24 forks source link

Attached PDF files, failing using SendGrid #9

Open objecta opened 9 years ago

objecta commented 9 years ago

We have been using a standard SMTP server setup to send signup confirmation andemail content with PDF attachements. Recently we started getting problem with mail not showing up at the reciever and we decided to try alternativ ways. We found SendGrid and is now testing. Fortunateliy we are using ActionMailerNext (greate cintribution) and we noticed that the developer branch now support SendGrid as a MailSender, so we decided to give it a test try with SendGrid.

The result of our first test is that the mail sendout is still working as expected, except mails with attached PDF files. When we try to open the PDF file we get a meesage saying that the content is not a PDF. Then we tried to use the standard SMTP Mail sender in ActionMailerNext, with the added settings in config, and the PDF attachment is ok now.

So it looks like the SendGrid mailsender API is handling attachment differently than the standard SMTP mailsender?