dim C Set C=CreateObject("MailConverter.MailConverterX") C.Convert "c:\test\source.eml", "c:\test\dest.pdf", "-cPDF -log c:\mail.log" Response.Write C.ErrorMessage set C = nothing
dim C Set C=CreateObject("MailConverter.MailConverterX") Response.Clear Response.AddHeader "Content-Type", "binary/octet-stream" Rresponse.AddHeader "Content-Disposition", "attachment; filename=test.pdf" Response.BinaryWrite c.ConvertToStream("C:\www\ASP\Source.eml", "C:\www\ASP", "-cpdf -log c:\html.log") set C = nothing
Note that ActiveX is 32-bit only. If you are trying to use activeX under 64-bit internet information server (IIS) activeX will not work. Use command line version instead (it works with both 32- and 64-bit servers).
Related Topics
Add Mail Converter Into Solution© 2019. All rights reserved. CoolUtils File Converters