|
-
Feb 14th, 2000, 05:30 AM
#1
Thread Starter
Member
I'm trying to write code-using MAPImessages so that under certain conditions in my app. will send an e-mail.
First:
How can I send a message to multiple people? Outlook complains if I assign two names separated by ; and a space. It still sees it as one name/address?
Second:
can anyone tell me why If I use recipAddress the message can not be delivered. However if I assign the address to the RecipDisplayName it works fine.
Third:
If the message is going to someone within our network I can not use an e-mail address but must use his or her full name.
Any Help would be greatly appreciated.
Thanks
Jennifer
------------------
-
Feb 14th, 2000, 07:11 AM
#2
Junior Member
Originally posted by Jennifer_R:
I'm trying to write code-using MAPImessages so that under certain conditions in my app. will send an e-mail.
First:
How can I send a message to multiple people? Outlook complains if I assign two names separated by ; and a space. It still sees it as one name/address?
Second:
can anyone tell me why If I use recipAddress the message can not be delivered. However if I assign the address to the RecipDisplayName it works fine.
Third:
If the message is going to someone within our network I can not use an e-mail address but must use his or her full name.
Any Help would be greatly appreciated.
Thanks
Jennifer
Try this if u have not
with mapmess
.Show False
.ResolveName
.AddressResolveUI = True
end with
Also make sure that you mapi is working correctly go to microsoft word and select send to.
-
Feb 14th, 2000, 11:56 PM
#3
Thread Starter
Member
Thank you for your help. I have finaly found the answer to my first question. How to e-mail multiple people. You must incriment the recipindex then enter another display name. see example.
Private Sub CmdSendMail_Click()
MAPISession1.LogonUI = True
MAPISession1.SignOn
MAPIMessages1.SessionID = Me.MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.MsgSubject = "Testing Auto e-mail"
MAPIMessages1.MsgNoteText = "This is the body of the email"
MAPIMessages1.RecipDisplayName = "First Recipient"
'incriment RecipIndex
MAPIMessages1.RecipIndex = MAPIMessages1.RecipIndex + 1
'add second person
MAPIMessages1.RecipDisplayName = "Secon Recipient"
MAPIMessages1.Send (True)
MAPISession1.SignOff
End Sub
------------------
-
Feb 15th, 2000, 03:23 AM
#4
Junior Member
yes the same applies to multiple attachments.. u must set the attachment index....
Later
The Man
-
Feb 15th, 2000, 09:06 AM
#5
Addicted Member
Hi Jennifer_R.
Check out this post. I think it contains more than what you are looking for!
http://www.planet-source-code.com/vb...txtCodeId=6056
Please let me know your findings. 
Good Luck.
-
Mar 10th, 2003, 05:39 PM
#6
Hyperactive Member
Greetings and Salutations,
Jennifer_R ,
The code worked great.
Thanks!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|