Well, I have tried everything I can think of to no avail. So over to you guys to see if someone else has clearer brain cells!
I can't get any mail out of Snitz. CDOSYS does work because I have a test script which looks the same as the code in the inc_mail.asp file - see below - and the test script works fine.
Snitz Mailserver setup parameters are: Component = CDOSYS Mode = on Server address = mail.xyz.co.uk admin email = post@xyz.co.uk unique mail = on mail validation = on restrict reg = on require logon = on
Any ideas greatfully received.
Code here:
Set iConf = Server.CreateObject ("CDO.Configuration") Set Flds = iConf.Fields
Set objNewMail = Server.CreateObject("CDO.Message") Set objNewMail.Configuration = iConf
Err.Clear
objNewMail.To = strRecipients objNewMail.From = strSender objNewMail.Subject = strSubject objNewMail.TextBody = strMessage On Error Resume Next objNewMail.Send If Err <> 0 Then Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>" End if
Set objNewMail = Server.CreateObject("CDO.Message") Set objNewMail.Configuration = iConf
'Format and send message Err.Clear
objNewMail.To = "jcrick@abc.co.uk" objNewMail.From = "post@xyz.co.uk" objNewMail.Subject = "test" objNewMail.TextBody = "testing @ " & now() On Error Resume Next objNewMail.Send If Err <> 0 Then Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>" End if
Well, at one time it was, but maybe not recently so perhaps I will do that as the next step. Unfortunately I can't do that until tomorrow. I'll post back after that.
Changed to localhost on email config. Registered a new user. Activated the new user. No email I'm afraid. Immediately after I tried my test script and it worked immediately and a test mail arrived within about 30 seconds.