Outlook邮件问题 [英] Outlook Mail Problem

查看:80
本文介绍了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 = < span class =code-string> 现在测试邮件
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 = Nothing




Its 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邮件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆