|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Trouble getting Mapi Components to send e-mail to multiple users
I've finally gotten a program to work and send automated messages to users who have checked out equipment that has not been turned back in but need the program to also send a copy of the e-mail to management. I'm not sure how to manipulate the mapi components to send mail to multiple addresses used in the program. I've double checked making the code list e-mail addresses exactly as they appear in our companies MS Outlook but still not working for multiple e-mails. Can anyone offer an idea from the following code
This Line MAPIMessages1.RecipDisplayName = lblUser.Caption & " 8243" currently works properly and sends an e-mail to the one person whose name is logged on to the program and their name is listed in the lbluser.caption label. ------------------------------------------------------------------------------------ sFileName = "f:\comproom\RFDepot\LateGuns.txt" IFreeFile = FreeFile Open sFileName For Input As IFreeFile sFileBody = Input$(LOF(IFreeFile), IFreeFile) Close IFreeFile If sFileBody <> "" Then MAPIMessages1.Compose MAPIMessages1.RecipDisplayName = lblUser.Caption & " 8243" MAPIMessages1.MsgSubject = "IMPORTANT - We are in search of these guns" 'subject line MAPIMessages1.MsgNoteText = "The following units have not been turned in. This message is generated from all guns that were not checked out after midnight on today's date" & vbNewLine & vbNewLine & sFileBody MAPIMessages1.ResolveName MAPIMessages1.Send MAPISession1.SignOff End If End Sub ----------------------------------------------------------------------------------- |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Trouble getting Mapi Components to send e-mail to multiple users |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|