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
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