FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DEFINE MAIL... MULTIPLE ATTACHMENTS
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
DEFINE MAIL... MULTIPLE ATTACHMENTS
Posted: Thu Aug 18, 2011 09:50 PM

Hello,

I would like send multiple attachments via DEFINE MAIL, is that possible? If so, can someone provide an example?

Thank you,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: DEFINE MAIL... MULTIPLE ATTACHMENTS
Posted: Fri Aug 19, 2011 12:18 AM

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

I think you can leave the description blank, but you still need to account for it. So you can do:

DEFINE MAIL...FILES cFilename1,,cFilename2,,Filename3

And note that each filename must include the full path.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Re: DEFINE MAIL... MULTIPLE ATTACHMENTS
Posted: Fri Aug 19, 2011 12:44 AM

Hi James,

That worked, but HTML document is an attachment and not part of the body of the e-mail.

Sincerely,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Re: DEFINE MAIL... MULTIPLE ATTACHMENTS
Posted: Fri Aug 19, 2011 12:48 AM

Hi James,

By any chance do you know the values of [ TYPE <cType> ];

Sincerely,

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: DEFINE MAIL... MULTIPLE ATTACHMENTS
Posted: Fri Aug 19, 2011 06:18 AM

I came across a reference to TYPE:='text/html'

You might try that and assign the HTML string to the TEXT command.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 708
Joined: Fri Oct 28, 2005 09:53 AM
Re: DEFINE MAIL... MULTIPLE ATTACHMENTS
Posted: Fri Aug 19, 2011 03:48 PM

Thanks James, I will try that

*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com

Continue the discussion