Moises,
Try this:
"mailto:{0}?Subject={1}&Body={2}&Attach={3}"
Replace {n} with the values
Moises,
Try this:
"mailto:{0}?Subject={1}&Body={2}&Attach={3}"
Replace {n} with the values
DEFINE MAIL...
ACTIVATE MAIL...
IF oMail:nRetCode!=0
MsgAlert("The message could not be sent due to an error."+CRLF+;
"MAPI error code: "+ltrim(str(oMail:nRetCode)),"Alert")
ENDIF/*
Purpose: Test using MapiSend.exe from inside FW
*/
#include "fivewin.ch"
function main()
local cParams:=""
cParams:= [ /E /A whoever@hotmail.com /S "Invoice" /B "See attached." /F c:\documents and settings\james\my documents\temp\test.html]
// You can use shellexecute()
//SHELLEXECUTE( 0, 0, "mapisend", cParams, 0, 1 )
// You may use waitRun() instead. You will need to if you are mailing a temp file
// and you want to delete it after mailing.
waitRun( "mapisend "+ cParams)
sysrefresh()
msgInfo("")
return nilAntonio,
I am afraid your code does not work. It shows OK the destination, subject and body, but not the ATTACHMEND. Did you try it?.
Thank you
Moises,
You must provide the full path to the attachment. Did you do this?
Also, if it has spaces in it, you probably have to use quotes around it.
James
James:
You were right!!!. I must provide the full path, with letter.
But surprilingly, at the second time with wrong path it works!!!.
Thank you James for your help!!!.
Best regards,
Moises,
Glad to hear you got it working. MAPI is a great tool, but it can be a pain.
James