|
Jumping in rather "after the fact" here, but had a couple observations I thought would still be valuable for folks who stumble upon this later.
@chrishirst is right, CDONTS is mostly out of the picture now as MS ditched it starting with Win2K3 servers (and while you could still get it installed on later servers, why bother?). Frankly, CDONTS ain't great -- though, yeah, @bizcredit, it was easy.
Frankly, CDOSYS is the way to go in my opinion and knowledge of it will be equally valuable to classic ASP programming as to ASP.NET. It's an extremely robust method.
To get back to the original question here, it's best to actually authenticate against an SMTP server before sending out the mail. This will give you a much better chance of not landing your email into a spam folder as the authentication will provide headers that will make the email look a bit less like script generated email.
What's more, any host that allows email to be simply relayed via script is not really keeping there eye on the security issues; that is, perhaps assume that your windows host has an eye on security and doesn't allow relaying and requires authentication. You can never go wrong by authenticating.
I've a nice script detailing just about anyting one might ever want to do with CDOSYS. PM me if you are interested.
|