How can I send a .pdf file as blat attachment?

Davide picture Davide · Jul 23, 2009 · Viewed 31.7k times · Source

I try to send a mail with an attachment with blat (with the Shell command of Access VBA).

All works fine while I try to send a .txt file

blat ... -attach c:\mydir\myfile.txt

but if I try to send a .pdf file, with the same command

blat ... -attach c:\mydir\myfile.pdf

I don't receive the mail.

Thanks in advance for any suggestions.

Answer

Darth Continent picture Darth Continent · Jul 23, 2009

The file type by itself shouldn't matter with BLAT, but your email provider might be balking at the size of PDF you're trying to send, or may restrict sending PDF files altogether.

I'd say check with the mail provider and see if they have any such restrictions. Meanwhile you could rename the PDF to text and ask the recipient to rename it back to PDF, but that would be a wonky and hopefully short-term workaround.