Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Mail Configuration
 Mail problem
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  12:07:42  Show Profile  Visit jcrick's Homepage
Hi

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 and update fields properties
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 26
Flds.Update

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



Many thanks

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 August 2007 :  12:13:15  Show Profile  Send ruirib a Yahoo! Message
If the port is 26, have you changed that in inc_mail.asp, in the CDOSYS related section?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  12:43:29  Show Profile  Visit jcrick's Homepage
Absolutely - see the Flds statement...

Jerry
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 August 2007 :  12:50:36  Show Profile  Send ruirib a Yahoo! Message
I thought that was the host script. What are the differences between the Snitz code and the host script?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  13:38:43  Show Profile  Visit jcrick's Homepage
Just the hard coded from/to/subject/body items.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 August 2007 :  14:13:57  Show Profile  Send ruirib a Yahoo! Message
Maybe you can post the host recommended script here, as a text file.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  14:21:41  Show Profile  Visit jcrick's Homepage
Here we go. BTW - this is my code not a host recommended snippet.

However, I did spot a difference - the smtpserver is set to localhost:


<% language=vbscript %>
<HTML><HEAD><TITLE>test</TITLE></HEAD><BODY>email test<br>

<%
Set iConf = Server.CreateObject ("CDO.Configuration")
Set Flds = iConf.Fields

'Set and update fields properties

Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 26
'Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\inetpub\mailroot\Pickup"
'Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
'Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username"
'Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"

Flds.Update

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

response.write now() & "<br>"
%>

</BODY></HTML>
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  14:22:43  Show Profile  Visit jcrick's Homepage
Also, thanks for the help.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 August 2007 :  14:38:21  Show Profile  Send ruirib a Yahoo! Message
Did you add the authentication fields to inc_mail.asp?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  14:45:35  Show Profile  Visit jcrick's Homepage
Err sorry, they are not set there are 4 redundant lines in the code which are commented out - I should have taken them out b4 posting. My mistake.

Thanks
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 August 2007 :  15:02:03  Show Profile  Send ruirib a Yahoo! Message
Did you try to set the email server as localhost, in Admin Options?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 15 August 2007 :  15:29:55  Show Profile  Visit jcrick's Homepage
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.

Many thanks

Jerry
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 August 2007 :  15:42:23  Show Profile  Send ruirib a Yahoo! Message
It seems a worthy try to me.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 16 August 2007 :  03:42:47  Show Profile  Visit jcrick's Homepage
ruirib

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.

Thanks

Jerry
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 August 2007 :  03:53:53  Show Profile  Send ruirib a Yahoo! Message
I see no differences in the Snitz script. Are you using post@xyz.co.uk as the admin email address, in Email Server Configuration?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jcrick
Starting Member

United Kingdom
12 Posts

Posted - 16 August 2007 :  04:23:18  Show Profile  Visit jcrick's Homepage
Yes, with xyz being the real domain name.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.7 seconds. Powered By: Snitz Forums 2000 Version 3.4.07