2
A
回答
1
我可以看到3个选项供您:
的底线是有批量没有内置的方式,但也有第三方的工具,如BLAT等,可以从批处理文件中调用。
您可以启用已安装的Windows的SMTP服务器。然后运行Powershell脚本:
$smtpServer = "system.abc.com" $smtpFrom = "[email protected]" $smtpTo = "[email protected]" $messageSubject = "Put your subject here" $message = New-Object System.Net.Mail.MailMessage $smtpfrom, $smtpto $message.Subject = $messageSubject $message.IsBodyHTML = $true $message.Body = Get-Content debug.txt $smtp = New-Object Net.Mail.SmtpClient($smtpServer) $smtp.Send($message)
您可以启用安装的Windows的SMTP服务器。然后运行一个VBScript:
Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 Const FileToBeUsed = "debug.txt" Dim objCDO1 Dim fso, f Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.OpenTextFile(FileToBeUsed, ForReading) Set objCDO1 = CreateObject("CDO.Message") objCDO1.Textbody = f.ReadAll f.Close objCDO1.TO ="[email protected]" objCDO1.From = "[email protected]" objCDO1.Subject = "Put your subject here" objCDO1.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration /sendusing") = 2 objCDO1.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration /smtpserver") = "system.abc.com" objCDO1.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration /smtpserverport") = 25 objCDO1.Configuration.Fields.Update objCDO1.Send Set f = Nothing Set fso = Nothing
任君选择。
+0
非常感谢您 –
相关问题
- 1. 发送电子邮件没有Outlook帮助(批处理文件)
- 2. 如何从批处理文件发送电子邮件?
- 3. 如何使用Spring批处理发送多个电子邮件
- 4. 电子邮件批处理
- 5. 如何让批处理文件使用PHP发送电子邮件?
- 6. Java Jar文件从批处理文件运行时不发送电子邮件?
- 7. 发送电子邮件处理跳动
- 8. 发送电子邮件作为“批处理执行作业”
- 9. 批量发送电子邮件,如何处理?
- 10. 如何从批处理程序或java发送电子邮件
- 11. 如何从DOS批处理命令发送电子邮件?
- 12. 批处理文件:Blat发送2封电子邮件不是1
- 13. 从批处理文件发送电子邮件的最佳方式是什么?
- 14. 如果文件存在,发送电子邮件并运行批处理脚本
- 15. 如何从Windows批处理文件发送简单电子邮件?
- 16. 批量电子邮件发送回复
- 17. 发送多个电子邮件批次
- 18. 以PHP发送批量电子邮件
- 19. 以C#发送批量电子邮件#
- 20. 批量发送大量电子邮件
- 21. WinRT的批量发送电子邮件
- 22. C#发送批量电子邮件
- 23. 批量发送电子邮件
- 24. 批量发送电子邮件与SwiftMailer
- 25. 发送批量电子邮件
- 26. PHP发送批量电子邮件
- 27. 如何在heroku上使用delayed_job发送批量处理的电子邮件?
- 28. Html电子邮件正文使用批处理和Blat.exe
- 29. 用Global.asax文件发送电子邮件
- 30. 处理使用SMTP-JAVA发送失败的电子邮件
如果您可以使用外部工具检查blat - > http://www.blat.net/examples/batch.html – npocmaka