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/cdonts/cdosys/exchange
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

loki_wamphyri
Starting Member

8 Posts

Posted - 21 November 2004 :  11:52:07  Show Profile
Hey all... :)

Ok, I'm fairly new to running servers and snitz... and I'm basically not able to use snitz's email function. So I just got a few questions to ask and would GREATLY appreciate any help you lot can give!!

Ok, is there any decent guides out there for setting up the features of Server 2003? I think I've got it all mostly figured out and have got snitz working for me nicely.

My BIGGEST problem is email via ASP though. I have never managed to get it to work and this annoys me lots.

Firslty, Do I have to have exchange? and if so, what does SMTP do? I'm pretty sure I got SMPT set up but it doesn't seem to help any.

Secondly, I've heard people on here saying that CDONTS isn't a good choice for use with 2003. If thats the case, what SHOULD be used? Is there any modifications to be made to Snitz if CDONTS shouldn't be used?

I've tried various other ASP email scripts and never got them to work either.

If someone could provide me with a easy, no frills list of what I need to get ASP email working then I would be eternally in your debt!

Thank you greatly in advance!

loki_wamphyri
Starting Member

8 Posts

Posted - 22 November 2004 :  15:28:29  Show Profile
Ok, so my version of snitz has CDONTS, chilli!mail and CDOSYS...

CDOSYS is best for Server 2003 IIS6 right?

Is there any good SMTP set up guides out there? It seems basic enough, but I've got 3 different domain names which I get confused about.
Go to Top of Page

loki_wamphyri
Starting Member

8 Posts

Posted - 22 November 2004 :  15:41:24  Show Profile
It doesn't even seem to drop into any of the mailbox folders... :(
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 22 November 2004 :  18:47:07  Show Profile  Visit Gremlin's Homepage
CDOSYS would be the best choice on a 2003 Server.

No you don't need exchange, but you do need to have the local SMTP Service instaled you can do this from add/remove programs -> windows components.

Your firewall will need to allow traffic outbound on TCP Port 25

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

loki_wamphyri
Starting Member

8 Posts

Posted - 23 November 2004 :  15:32:55  Show Profile
Yup, I did all that... Firewall is set, SMTP installed and set up ( i think) ... and will set the forums to use CDOSYS.

No joy however... :(

Its been suggested I just use the SMTP service offered by my ISP.... spose it'll do, but would've like to use my own server. :|
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 23 November 2004 :  16:19:53  Show Profile  Visit Gremlin's Homepage
Is IIS and Exchange on the same server? are you sure the Exchange SMTP Service is started correctly? What's in your Exchange Logs? whats in the bad mail Q ?

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

loki_wamphyri
Starting Member

8 Posts

Posted - 23 November 2004 :  16:52:13  Show Profile
I don't have exchange... using regular server2003 iis6 SMTP... nothing in the badmail folder.

I have just noticed this however:

In inc_mail, I have cases for aspmail, aspemail, aspqmail, cdonts, chilicdonts, dkqmail, geocel, iismail, jmail, smtp, ocxmail, ocxqmail, sa-smtp, and smtp.

no mention of cdosys... something to do with that??

the cdonts case looks like this:

case "cdonts"
Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
objNewMail.BodyFormat = 1
objNewMail.MailFormat = 0
on error resume next '## Ignore Errors
objNewMail.Send strSender, strRecipients, strSubject, strMessage
If Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
End if
on error resume next '## Ignore Errors
Go to Top of Page

loki_wamphyri
Starting Member

8 Posts

Posted - 23 November 2004 :  17:14:43  Show Profile
Ahhhhhh..... I've finally got it working!!

Basically, I didn't have the code for sending via CDOSYS, although I had the option in Email Configuration Settings'.

For anyone else having this problem, this is the code you need to add to inc_mail.asp after the last 'End if' and before the 'end select' :



case "cdosys"

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/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = ""
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = ""
Flds.Update

Set objNewMail = Server.CreateObject("CDO.Message")
Set objNewMail.Configuration = iConf

'Format and send message
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 24 November 2004 :  18:45:35  Show Profile  Visit Gremlin's Homepage
That code is already in inc_mail.asp .. did you remove it at some stage? what version of the forum are you running ??

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

jamesson
Starting Member

11 Posts

Posted - 26 November 2004 :  08:11:17  Show Profile
not sure what you want me to add ?
after the end if and before the end case?
what suppose to be there ?
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 28 November 2004 :  23:45:19  Show Profile  Visit Gremlin's Homepage
You shouldn't have to add any code jamesson, CDOSYS is supported by Snitz out of the box so to speak.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

loki_wamphyri
Starting Member

8 Posts

Posted - 05 December 2004 :  11:48:32  Show Profile
I've got the Moded Forum v3.4.03.8 By Serverhacker Gremlin... It didn't have the code for some reason.

I am having problems with the SMTP set up though... after running it for a day or so, the server was spammed into oblivion!

How should I set SMTP up for use with the forums only?

Should I put my IUSER_ info into these lines:

Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = ""
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = ""

??
Go to Top of Page

loki_wamphyri
Starting Member

8 Posts

Posted - 05 December 2004 :  12:29:58  Show Profile
Ok, I've got it sending email again, only allowing mail through from my domains... as far as I can tell anyway.

Although I've still got 'Authentication' set to anonymous... little worried about that. If I set that to anything else, other peoples email addys won't send though the server...

This is helpful guys, take a read:

http://www.iis-resources.com/modules/news/article.php?storyid=5

Edited by - loki_wamphyri on 05 December 2004 12:33:01
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07