Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using MAPISendMail to send EMail with VBA

Status
Not open for further replies.

schwarz

Programmer
Sep 9, 2000
4
BE
I am trying to write a function that uses MAPISendmail to generate EMails with HTML attachments.

Problem is that some EMail clients don't recognise the attachment as being a HTML file and won't open it.

So the clue is to tell the client application which type of attachment is being sent and/or which type of encoding (Mime or UUENCODE) has to be used.


The MAPIFileDesc structure has a member FileType which, in all documentation that I found up till now, is allways set to NULL.

However, the FileType can be set to be a pointer to the attachment file type, which can be represented with a MapiFileTagExt structure.

Question : how do I use this MapiFileTagExt structure in VBA (Access 2000) (code sample would help me very much !!)
(OR, if there is another way : how can I get the client EMail programs to read my HTML attachments properly)

Anybody got a clue (or knows where to find one?)

Thanks

Carl

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top