如何将 .pdf 文件作为 blat 附件发送?

发布于 2024-07-27 15:18:46 字数 284 浏览 6 评论 0原文

我尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

吻泪 2024-08-03 15:18:47

看一下文件名‘length’; 我刚刚遇到一个文本文件的进程失败,因为名称太长。

失败:

ar_snP_shot.txt

成功:

ar_snP.txt

还可以使用命令行“调试”选项来查看发生了什么。 顺便说一句,你的日志说了什么?

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:

ar_snP_shot.txt

Succeed:

ar_snP.txt

Also use the command line 'debug' option to see whats going on. What does your log say btw?

世界和平 2024-08-03 15:18:47

参数 -body 需要始终使用。 否则,程序将挂起。
-body“”

问候

Parameter -body needs to be used always. Otherwise, the program hangs.
-body " "

Regards

筱果果 2024-08-03 15:18:46

文件类型本身与 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.

冷月断魂刀 2024-08-03 15:18:46

那应该有效。 文件名或目录中有空格吗?

c:\test\my file.pdf

that should work. do you have spaces in the file name or directories?

c:\test\my file.pdf
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文