Just to confirm exactly what I've done..
1. Installed the cdonts.dll into the system32 directory
2. registered the dll
3. set permissions on the file to everyone read / execute
4. Set permissions on the inetpub/mailroot folder to full control for all plesk IUSER accounts (would be nice to have an ALL IUSERS group generated and maintained by plesk)
5. Ran a test script from a domain.
The result is a 500 error - log says permission denied.
The test script I'm using is as follows...
<%@ language= "VBscript" %>
<% Option Explicit
'declare your variables
Dim NewMail, Body
'create an instance of the NewMail Object
Set NewMail = Server.CreateObject("CDONTS.NewMail")
NewMail.To= "
[email protected]" ' the email address it will be sent to
NewMail.From= "
[email protected]" ' the email address it was sent from
Body= "Hi there, just testing codefixer's email tutorial out!"
NewMail.Subject = "Hello"
NewMail.Body = Body
NewMail.Bodyformat=0
NewMail.Mailformat=0
NewMail.Send
Set NewMail=Nothing
%>
If you would like to send it as plain text rather than HTML just remove the 2 lines
NewMail.Bodyformat=0
NewMail.Mailformat=0