using MAPISendMail to send EMail with VBA

  • Thread starter Thread starter schwarz
  • Start date Start date
S

schwarz

Guest
Threadminder®
= activity since last visit
Click to remove forum from list

Programmers
VBA Visual Basic for Applications (Microsoft)
Desktop Software
E-Mail issues


Get Your Message to Our Members

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
 

Users who are viewing this thread

Back
Top Bottom