Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPISEND

Status
Not open for further replies.

PhilBreau

Technical User
Dec 14, 2001
108
CA
I tried using mapisend to send an email. I get MAPI failure. I'm sure this could be caused by a number of things. I am using a POP3 server to send email. I can use either Outlook 2000 or Outlook Express.



proc main

string To = "georgesmith@home.com", CC = "", BCC = "", Subj = "Mapisend test"
string Message, CurrCapFile, MailError

; determine the name of the current Capture File
fetch capture file CurrCapFile
while $CARRIER ; wait until carrier drops
endwhile
capture OFF ; Turn the Capture File off
strfmt Message "%s" $DATE ; Assign today's date to Message

mapisend "MY_ID" "MY_PASSWORD" To CC BCC Subj FILE "c:\autoexec.bat" CurrCapFile MailError
if SUCCESS
usermsg "Data Sent" ; Report sent mail.
else
errormsg "%s" MailError ; Report Mail error.
endif
endproc



Certain fields have been changed for protection. In my script I use real values


I have tried the sample in Procomm help.


Can anyone please help.

Thank you
 
I have a couple sample scripts at the bottom of this page:


Here is a comment from one script that may be of use:

;A note on the mapisend command:
;If you are using the mapisend command to send an email through Outlook, you
;will need to use the name of the current mail profile as the logon name
;argument. To check this value, select the Tools | Options menu item within
;Outlook. then click on the Mail Services tab. If the Always use this profile
;radiobutton is selected, then the profile you need to use will be in the
;associated edit field.

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top