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
 EMAIL NOT WORKING
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Nick Cole
Starting Member

20 Posts

Posted - 02 March 2007 :  19:51:39  Show Profile
Finally got it to work! No help from the ISP though. After trawling around various MSDN and other developer sites, only one thing was misidentified. The help suggests using the smtp service on the website. This couldn't be made to work, but using the smtp server in my ISP's network did! For added security I also added in the CDOSYS field settings section of inc_mail.asp;
..configuration/smtpserverport") = 25
..configuration/smtpusessl") = False
..configuration/smtpserver") = "server name.domain" though this was already entered on the config page.

I created a test script as follows, which was placed in the asp pages directory of the site, and tested by appending the file_name.asp after the site and directory url. Errors reported not connecting to the transport. So I could then test various mail server configurations. And finally a blank page with no errors meant it works!

test_mail.asp
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="ispmailsvr.system.net"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="USER_NAME"
'ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="PASSWORD"
ObjSendMail.Configuration.Fields.Update
'End remote SMTP server configuration section==
ObjSendMail.To = "your_address@system.com"
ObjSendMail.Subject = "this is the subject"
ObjSendMail.From = "someone@someone.net"
ObjSendMail.TextBody = "this is the body"
ObjSendMail.Send
Set ObjSendMail = Nothing
on error goto 0
%>
(Remember line wrapping and uncommenting appropriate lines!)
Hooray!

Thanks for all the pointers.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 02 March 2007 :  20:00:18  Show Profile  Send ruirib a Yahoo! Message
Well glad that you got it working .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous 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.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07