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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to send an ATTACHED HTML file

Status
Not open for further replies.

marcon

Programmer
Aug 30, 2001
21
0
0
US
I am tasked with specifically sending an html attachment and not an HTML email or text file or anything else.

I can cannot seem to send an HTML
file attached to an email. I get an "unspecified error".
Is it possible to send an HTML attachment?

the method below works fine with a text file but not an html file.

MyCDONTSMail3.AttachFile ("C:\inetpub\
Really appreciate your help!
 
try assigning the path of the file to a variable and using that in your AttachFile call.

Code:
strFile = "C:\inetpub\[URL unfurl="true"]wwwroot\somedirectory\bla.html"[/URL]

MyCDONTSMail3.AttachFile strFile
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top