Posted on 2004-10-16
Is anyone aware whether or not you can use the Active Server Component ASPMAIL (SMTPsvg.dll) from ASP.NET/VB.NET? This is my webhost's emailing component.
The documentation says I need to use:
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
I also read that I need to use the page directive: aspcompat="true" if using ASPX rather an ASP. But this gives me the error:
Parser Error Message: The current trust level does not allow use of the 'AspCompat' attribute
My ISP tell me to 'rename the aspx to asp', and that's as much help as they will give. Have tried creating a reference to smtpsvg.dll, but this hasn't solved the problem.
I will do it in ASP if I have to, but would rather keep all code in ASPX.VB (as I'm passing a password for email).
Any help gratefully received!