Author |
Topic  |
|
mende006
Starting Member
10 Posts |
Posted - 10 November 2005 : 00:26:37
|
I have an exchange 2003 server that I want to use to send mail with from my forum. Is there a guide on how to do this or can someone please help me out with this?
Thanks in advance.
p.s. I'm completely new to Snitz and even newer to ASP |
http://www.theboingo.com http://www.thedomainspa.com |
Edited by - mende006 on 21 November 2005 22:19:37 |
|
mende006
Starting Member
10 Posts |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
mende006
Starting Member
10 Posts |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 22 November 2005 : 03:35:47
|
you still need to use CDONTS or another mail component (ASPMail, ASPEmail, etc) which will create an SMTP mail, then you feed that component the details of the upstream mail server, so it can pass the mail along to the Exchange server which will then pass the mail out to the open internet.
Exchange configuration isn't for the fainthearted, and has many many factors involved, despite what the point-and-click folks tell you, so you may want to check MSDN/Technet for advice too. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
mende006
Starting Member
10 Posts |
Posted - 23 November 2005 : 22:11:47
|
Thanks for the tip on using an alternative. My Exchange server works fine as far as using it to send and receive e-mails from my domain. It just doesn't wend emails from my forum. I realize that there is some need to configure the inc_mail.asp file but there is also an email administration page within the forum itself. I don't know where I went wrong. I configured CDOSYS with this information: 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") = 3 'cdoSendUsingExchange Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "192.168.1.10" 'Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 cdoBasic 'Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "mydomain\administrator" '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 = 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
CDONTS is exactly how it comes from a default install. 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
The reason that I am using CDOSYS is because the only option that is available in "E-mail Server Configuration" under admin option is CDOSYS. Does anyone see what I may have done wrong? |
http://www.theboingo.com http://www.thedomainspa.com |
Edited by - mende006 on 23 November 2005 22:12:30 |
 |
|
|
Topic  |
|