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
 How to get mail from host to member?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gkopp
Starting Member

21 Posts

Posted - 14 February 2008 :  07:33:41  Show Profile
With the help of this forum's members and my web host, I finally see e-pmail going from my forum to my web host mailbox, but they just sit there with the address of the person to whom they are supposed to be sent. Can anyone tell me the code that controls the re-routing to final destination? Thanks!

Edited by - gkopp on 14 February 2008 07:33:59

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 14 February 2008 :  07:50:57  Show Profile  Visit HuwR's Homepage
there is no code that does that, are you sure you are sending them to the correct address ?, email CAN NOT just sit on a server unless that is where it belongs.

what do you mean by "from my forum to my web host mailbox" to me that sounds like you are sending all the email to yourself not to the correct members.

Have you edited any of the files for the forum that deal with registration or emailing ?
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 14 February 2008 :  09:12:14  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Its not at all clear what the setup is, even from the previous thread and some emails which I have received.

I think you should just create a mailbox through your control panel as described here - http://knowledge.3essentials.com/web-hosting/article/78/How-to-create-a-mailbox.html

Once you have that done, you can use it to authenticate with the hosts mail server and send email with it. I will need to know what this email address is.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 14 February 2008 :  09:14:18  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Can you post some example code from this page (its not available to the public) - http://knowledge.3essentials.com/admin/view.asp?kb_id=27

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

gkopp
Starting Member

21 Posts

Posted - 14 February 2008 :  20:12:45  Show Profile
I already have created a mailbox on my host - greg@indyecho.net. After rewiewing the creation process, I noticed a "Redirect" switch that can be on or off. But this is the e-mail I received from the host after inquiring about it:

"Once you logged into webmail.indyecho.net you can see the forwarding option under "settings" tab. But regarding inc_mail.asp each time the recipients will be different depending on the data filled on "send mail" option. Please modify the code such that it'll email to the recipient address."

So I am befuddled as to how e-mail is supposesed to work via the forum. Were does the routing actually take place? I guess I've assumed it was going to go to greg@indyecho.net, since this is set up as the administrator e-mail address in the e-mail configuration of the forum, then be redirected. What IS the path that an e-mail is supposed to take when one member sends it to another? The e-mail is currently going to my mailbox on the webhost.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 February 2008 :  01:47:33  Show Profile  Visit HuwR's Homepage
the routing takes place at whatever mail server you assign the forum to use, it then uses an account on that server as the sender to send out emails. one one person sends an email to another it should NEVER go to your mailbox it should go directly to the recipient
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 15 February 2008 :  05:40:33  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
This line of code sets the receiver of the email
objNewMail.To = strRecipients


Can you post the CDOSYS part of your inc_mail.asp with your password xxxx'd out of it?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

gkopp
Starting Member

21 Posts

Posted - 15 February 2008 :  17:36:07  Show Profile
Gladly:

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") = "mail.indyecho.net"
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "<my username>"
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "<my 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
Go to Top of Page

gkopp
Starting Member

21 Posts

Posted - 20 February 2008 :  09:24:29  Show Profile
Follow Up

Podge/HuwR: Anything you see wrong with the code I posted?

This is the response I have gotten from my web host regarding authentication:

"We have tested sending mails from your forum and there is an issue with sending mails to external domains as authentication is not working correctly eventhough you have given the username/password
in inc_mail.asp. On checking the mailserver logs "no such user here error is obtained"; which implies that authentication is not working correctly using CDOSYS function implemented within your forum.

We have tested the CDOSYS functionality on the server using the same user credentials given in the inc_mail.asp. A test mail send using the above url was delivered successfully.

We would recommend contacting the program vendor to find out why smtp authentication is not working with the CDOSYS plugin in your application."

Also, is inc_mail.asp the ONLY file that needs to be edited?

Thanks.


Edited by - gkopp on 20 February 2008 09:34:43
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 20 February 2008 :  10:35:35  Show Profile  Visit AnonJr's Homepage
Not sure why CDOSYS isn't working as everything looks right. Did they send you the code they used so we can compare it and see what they are doing differently?

Also, inc_mail.asp is the only place this particular information is used, so its the only place that needs to be edited.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2008 :  10:43:38  Show Profile  Visit HuwR's Homepage
did you uncomment the authentication lines as by default they are commented out using a '

The code works fine for everyone else, so I doubt very much that it is the code that is wrong (it has not changed in a very long time), so it sounds more like a server setting that is different, maybe you could ask your host for a copy of the cdosys code that worked for them so we can see what the difference is.
Go to Top of Page

gkopp
Starting Member

21 Posts

Posted - 20 February 2008 :  13:37:02  Show Profile
This is the "mail.asp" file they refer to:

<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.indyecho.net"
.Item(cdoSMTPAuthenticate) = 1
.Item(cdoSendUsername) = "<user@indyecho.net>"
.Item(cdoSendPassword) = "<password>"
.Update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "greg@indyecho.net"
.To = "wecares2@gmail.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

Apparently works if one enters the exact address here.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2008 :  13:56:35  Show Profile  Visit HuwR's Homepage
mmm, interesting.

try replacing the case "cdosys" code in inc_mail.asp with the code below


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

	        'Set and update fields properties
		With Flds
        	.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
	        .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer
		.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
		.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username"
		.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
		End With
        	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
		Set Flds = nothing
		Set iConf = nothing
		Set objNewMail = nothing
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 20 February 2008 :  13:57:20  Show Profile  Visit HuwR's Homepage
you will need to change "username" and "password" to your mail login details
Go to Top of Page

gkopp
Starting Member

21 Posts

Posted - 21 February 2008 :  20:31:07  Show Profile
IT WORKS! It actually works! It took a couple of hours from time sent to arrival, but I finally got an e-mail through! Thanks a million, HuwR! Thanks to Podge and Anon as well for all your help throughout my pestering posts and e-mails! (Next step: stopping the spam.)
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 22 February 2008 :  05:50:52  Show Profile  Visit AnonJr's Homepage
To that end, there are some tips here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=65057
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07