本文介绍了Outlook邮件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我写了以下代码来发送邮件...... Dim OL As Outlook.Application Dim olMail As Outlook.MailItem Dim myattachments As Outlook。附件 设置 OL = CreateObject( Outlook .Application) 设置 olMail = OL.CreateItem(olMailItem) 设置 myattachments = olMail.Attachments olMail。 = mymaild olMail.CC = mymaild olMail.Body = 现在测试邮件 olMail.Subject = 现在测试邮件 olMail.Send 设置 \\ tolMail = 无 设置 OL = Nothing 仅工作我的Outlook邮件已打开...否则邮件没发送..我想发送邮件前景已关闭。谢谢提前... by Subbu 解决方案 从这里开始:发送在C#中使用SMTP发送电子邮件 [ ^ ] Hi,I wrote the following code for send a mail...Dim OL As Outlook.Application Dim olMail As Outlook.MailItem Dim myattachments As Outlook.Attachments Set OL = CreateObject("Outlook.Application") Set olMail = OL.CreateItem(olMailItem) Set myattachments = olMail.Attachments olMail.To = "mymaild" olMail.CC = "mymaild" olMail.Body = "TEST MAIL NOW" olMail.Subject = "TEST MAIL NOW" olMail.Send Set olMail = Nothing Set OL = NothingIts working only my outlook mail is opened...otherwise the mail didn't send..i want to send a mail the outlook was closed.Thanks in advance...by Subbu 解决方案 Start here : Send Email using SMTP in C#[^] 这篇关于Outlook邮件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-27 10:23