ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 25th, 2003, 07:16 PM
hotmustangkid hotmustangkid is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: Florida
Posts: 3 hotmustangkid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to hotmustangkid Send a message via Yahoo to hotmustangkid
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
-----------------------------------------------------------------------------------

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Trouble getting Mapi Components to send e-mail to multiple users


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway