DEFINE MAIL... MULTIPLE ATTACHMENTS

DEFINE MAIL... MULTIPLE ATTACHMENTS

Postby cdmmaui » Thu Aug 18, 2011 9: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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: DEFINE MAIL... MULTIPLE ATTACHMENTS

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

Re: DEFINE MAIL... MULTIPLE ATTACHMENTS

Postby cdmmaui » 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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: DEFINE MAIL... MULTIPLE ATTACHMENTS

Postby cdmmaui » 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
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong

Re: DEFINE MAIL... MULTIPLE ATTACHMENTS

Postby James Bott » Fri Aug 19, 2011 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: DEFINE MAIL... MULTIPLE ATTACHMENTS

Postby cdmmaui » Fri Aug 19, 2011 3:48 pm

Thanks James, I will try that
*~*~*~*~*~*~*~*~*~*
Darrell Ortiz
CDM Software Solutions, Inc.
https://www.cdmsoft.com
User avatar
cdmmaui
 
Posts: 689
Joined: Fri Oct 28, 2005 9:53 am
Location: Houston ∙ Chicago ∙ Los Angeles ∙ Miami ∙ London ∙ Hong Kong


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests