如何向一组具有CDO的收件人发送电子邮件?我使用的是VB6。
发布于 2010-12-14 04:33:16
您可以在.To行上列出多个收件人,用";“分隔,例如:
Set m = Server.CreateObject("CDO.Message")
m.Subject="subject..."
m.From="sender@example.com"
m.To="some@email.com;other@email.com;third@email.com"
m.TextBody="Message"
m.Send发布于 2010-12-13 23:43:47
这在Office 97和当时我们使用的任何Exchange中都有效:
Dim oOApp As Outlook.Application
Dim newMail As Outlook.MailItem
Set oOApp = CreateObject("Outlook.Application")
Set newMail = oOApp.CreateItem(olMailItem)
With newMail
.Display
.Body = whatever
.Subject = whatever
.Attachments.Add whatever
.Recipients.Add (whomever)
.Send
End With
Set newMail = Nothing
Set oOApp = Nothinghttps://stackoverflow.com/questions/4412129
复制相似问题