Sending email in VB6

R

ReidarT

I use Mapi to send emails with attachments.
When I use the
MAPISession1.DownLoadMail = False
MAPISession1.SignOn

With Me.MAPIMessages1
.SessionID = MAPISession1.SessionID
.MsgIndex = -1
.Compose

.MsgSubject = strSubject
'.RecipType = mapToList
.RecipDisplayName = strAddressTo
.RecipAddress = strTo

.AddressEditFieldCount = 4
.MsgNoteText = strMsg
.AttachmentPathName = Maalfil
.Send (True)

When I display the email the receipient is listed with <> example: Reidar
<[email protected]>
This fails when sending.
If I change the receipient to Reidar ([email protected]) it works OK.
And it seenms that I can't change from < >to () by code.
(I know that I could use vb.net, but in this case I want to use VB6)

regards
reidarT
 
C

Chris

ReidarT said:
I use Mapi to send emails with attachments.
When I use the
MAPISession1.DownLoadMail = False
MAPISession1.SignOn

With Me.MAPIMessages1
.SessionID = MAPISession1.SessionID
.MsgIndex = -1
.Compose

.MsgSubject = strSubject
'.RecipType = mapToList
.RecipDisplayName = strAddressTo
.RecipAddress = strTo

.AddressEditFieldCount = 4
.MsgNoteText = strMsg
.AttachmentPathName = Maalfil
.Send (True)

When I display the email the receipient is listed with <> example: Reidar
<[email protected]>
This fails when sending.
If I change the receipient to Reidar ([email protected]) it works OK.
And it seenms that I can't change from < >to () by code.
(I know that I could use vb.net, but in this case I want to use VB6)

regards
reidarT

There is a VB6 newsgroup. You have posted this to a vb.net group.
Probably best to post it in vb6 group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

bulk mailing problem 1

Top