Strange error while quitting application

Postby driessen » Fri Dec 05, 2008 12:46 am

James,

My experience is telling me that the error.log file always is written into the default directory.

Thanks for your messages in this topic.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Postby hag » Fri Dec 05, 2008 5:47 pm

Driessen:

The functiion works great. But I have a question.

I have several hundred uers around the world. What are you doing if the user does not use Outlook email?
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby James Bott » Fri Dec 05, 2008 5:52 pm

Harvey,

I suggest that you use the TMail class which uses whatever MAPI client email system the user has--it doesn't have to be Outlook.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby hag » Fri Dec 05, 2008 7:09 pm

James:

Thanks for the quick response. Could you tak a look at Dreissens code on this thread a let me know how to modify it. Appreciated.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby hag » Fri Dec 05, 2008 7:34 pm

James
In samples there is a file called james.prg regarding emails. Is that yours and does it use the tmail class. I'm a novice at using classes.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby James Bott » Fri Dec 05, 2008 7:42 pm

MAPI Mail Syntax:

DEFINE MAIL [ <oMail> ];
[ SUBJECT <cSubject> ];
[ TEXT <cText> ];
[ TYPE <cType> ];
[ DATE <dDate> ];
[ TIME <cTime> ];
[ CONVERSATION <cConversation> ]:
[ RECEIPT ];
[ FROM USER ];
[ FILES <cFilename1> ,<cDescript1>, <cFilenameN>, <cDescriptN> ] ];
[ ORIGIN <cOrigin> [ <cOriginAddress> ] ];
[ TO <cTarget1>, [ <cTargetAddress1> ] [ <cTargetN> [ <cTargetAddressN> ] ] ];

FILES
When specifying an attachment file you must include the path and a description. Use a two dimensonal array, the first element is the filename with path, the second is the description. You can have multiple files by adding more elements.

aFiles:={"c:\my docments\mydoc.doc","mydoc.doc"}

If the attachment file is html (has a .htm or .html extension) and you do not specify any TEXT (a message) then the file will appear in the message area.

For Outlook do it this way:

oMail:HTMLBody = ...

ERRORS
If you specify a TO and the parameter is blank and you are using the FROM USER clause, the message compose box will not appear. Likewise if the filename is invalid or not found. It is best to use an error trap:

Code: Select all  Expand view
   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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby hag » Fri Dec 05, 2008 7:46 pm

Thanks for the help I'll give it a try later today.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby hag » Sat Dec 06, 2008 4:34 pm

James
The tmail class worked perfectlt.
Thanks for the help.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 51 guests