简体   繁体   English

使用VBA在不使用Outlook的情况下通过电子邮件发送文件

[英]Using VBA to email a file without using outlook

If outlook is not installed on a computer, is there anyway of using another mail client to send emails eg "Windows live 2012", "Thunderbird" or another? 如果未在计算机上安装Outlook,是否仍然可以使用其他邮件客户端发送电子邮件,例如“ Windows live 2012”,“ Thunderbird”或其他?

If outlook is needed, then is there a free version that can be used ( can it be used on windows 10 and 7?) 如果需要Outlook,那么是否有可以使用的免费版本(可以在Windows 10和Windows 7上使用吗?)

Also related, is that when I use word on window 10, the default windows 10 mail client will not let me mail merge from word to an email. 同样相关的是,当我在窗口10上使用Word时,默认的Windows 10邮件客户端不会让我将邮件从Word合并到电子邮件。 I installed Windows live 2012 to get around this. 我安装了Windows live 2012来解决此问题。 I though this was a bit rubbish that windows 10 behaved in this way by default. 尽管Windows 10默认情况下以这种方式表现,但我还是有些垃圾。

The best way to do this is to use an SMTP (Simple Mail Transfer Protocol) Server. 最好的方法是使用SMTP(简单邮件传输协议)服务器。 Luckily Gmail is set up to do this easily. 幸运的是,设置Gmail可以轻松做到这一点。 There is a tutorial here that will walk you through step-by-step. 这里有一个教程,将逐步指导您。 I have used this method many times and it works very well. 我已经使用了很多次这种方法,并且效果很好。

VBA Email with Gmail 带Gmail的VBA电子邮件

Edit to add link on File Attachment: 编辑以在文件附件上添加链接:

File Attachment using CDO 使用CDO的文件附件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM