如何将 .pdf 文件作为 blat 附件发送?
我尝试使用 blat 发送带有附件的邮件(使用 Access VBA 的 Shell 命令)。
当我尝试发送 .txt 文件时一切正常,
blat ... -attach c:\mydir\myfile.txt
但如果我尝试发送 .pdf 文件,使用相同的命令
blat ... -attach c:\mydir\myfile.pdf
我不会收到邮件。
在此先感谢您的任何建议。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看一下文件名‘length’; 我刚刚遇到一个文本文件的进程失败,因为名称太长。
失败:
成功:
还可以使用命令行“调试”选项来查看发生了什么。 顺便说一句,你的日志说了什么?
Take a look at the file name 'length'; I just had a process fail with a text file cuz the NAME was too long.
Failed:
Succeed:
Also use the command line 'debug' option to see whats going on. What does your log say btw?
参数 -body 需要始终使用。 否则,程序将挂起。
-body“”
问候
Parameter -body needs to be used always. Otherwise, the program hangs.
-body " "
Regards
文件类型本身与 BLAT 无关,但您的电子邮件提供商可能对您尝试发送的 PDF 大小犹豫不决,或者可能完全限制发送 PDF 文件。
我建议您咨询一下邮件提供商,看看他们是否有此类限制。 同时,您可以将 PDF 重命名为文本,并要求收件人将其重命名回 PDF,但这将是一个不稳定且希望是短期的解决方法。
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.
那应该有效。 文件名或目录中有空格吗?
that should work. do you have spaces in the file name or directories?