M
Michele
Hi,
I need to send the same Email to different people. I'm using Outlook
XP and VB.Net. I tryed with the following code:
Dim oOutL As Outlook.Application
Dim oMail As Outlook._MailItem
oOutL = CreateObject("outlook.application")
For i = 0 To Email.Length - 1
oMail =
oOutL.CreateItem(Outlook.OlItemType.olMailItem)
oMail.UnRead = True
oMail.To = Email(i)
oMail.Subject = "My Subject"
oMail.HTMLBody = True
oMail.Body = "My Body"
oMail.Attachments.Add(FilePath & "attachement.html")
oMail.Send()
Next
but all i got is an Email without my name on it in the "FROM" field,
how can i add it?
another solution that I thought for send those Emails is to manually
create the Email and save it in the local disk and with VB.NET just
open it, paste the mail address in the "TO" field and send it, but I
don't know how open an Email from the code.
Can you help me?
Thanks
Michele
I need to send the same Email to different people. I'm using Outlook
XP and VB.Net. I tryed with the following code:
Dim oOutL As Outlook.Application
Dim oMail As Outlook._MailItem
oOutL = CreateObject("outlook.application")
For i = 0 To Email.Length - 1
oMail =
oOutL.CreateItem(Outlook.OlItemType.olMailItem)
oMail.UnRead = True
oMail.To = Email(i)
oMail.Subject = "My Subject"
oMail.HTMLBody = True
oMail.Body = "My Body"
oMail.Attachments.Add(FilePath & "attachement.html")
oMail.Send()
Next
but all i got is an Email without my name on it in the "FROM" field,
how can i add it?
another solution that I thought for send those Emails is to manually
create the Email and save it in the local disk and with VB.NET just
open it, paste the mail address in the "TO" field and send it, but I
don't know how open an Email from the code.
Can you help me?
Thanks
Michele