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 Domain Issue - IIS 6 - IIS 7 - CDO
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

CptSternn
Starting Member

Ireland
17 Posts

Posted - 23 June 2008 :  11:02:43  Show Profile  Visit CptSternn's Homepage
I'm not sure if anyone addressed this issue - I searched the board for posts on this but haven't found any.

I recently moved my host to a new domain. After the move, the email stopped working and no longer sent any emails. I found that this was being caused by the way the system sends email.

I first had to turn off the On error resume next because the system was originally telling me the email sent without error. After commenting out line 155 I saw this: error '8004020e'.

With CDO mail, some IIS 6 & IIS 7 servers force you to send from the domain you are viewing. That means in the INC_MAIL file that the strSender has to be switched, but there is no option for this.

I fixed this easy enough by changing the following at line 138:

objNewMail.From = "noreply@MyDomain.com"
objNewMail.ReplyTo = strSender

By setting the FROM field to an address at my local domain it fixes the problem. By then adding the REPLYTO field, I still maintain the original functionality so you can hit REPLY once you get the email and it still goes to the original sender.

Dunno if adding support in for this issue is in the works, but thought I'd post this to help out anyone else who might have the same issues.
<

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 23 June 2008 :  11:51:53  Show Profile  Send ruirib a Yahoo! Message
Thanks for posting .<


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

mahvin
Starting Member

48 Posts

Posted - 29 June 2008 :  09:28:23  Show Profile
I recently had a similar problem with profile email links failing to work, so I took CptSternn's advice, created an actual domain email for the forum (I was using a gmail account before) and added it to the

objNewMail.From = "my@MyDomain.com"

in inc_mail and now it works!

Thanks to CptSternn!<
Go to Top of Page

Flashspot
Starting Member

United States
6 Posts

Posted - 10 July 2008 :  09:59:08  Show Profile  Visit Flashspot's Homepage
We had a bear of a time with the Snitz e-mail function in IIS7. I fixed the issue by changing code in inc_mail.asp in the case "cdosys" section:
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/smtpserverport") = 25 ' cdoSMTPServerPort
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'cdoBasic (clear text)
'Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "emailalias@mydomain.com"
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword"

Flds.Update

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

'Format and send message
Err.Clear

Obviously, replace emailalias@mydomain.com with the actual alias or username and mypassword with the actual password applicable.

And now it works.<

Edited by - Flashspot on 10 July 2008 09:59:54
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 July 2008 :  10:37:08  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by Flashspot

We had a bear of a time with the Snitz e-mail function in IIS7. I fixed the issue by changing code in inc_mail.asp in the case "cdosys" section:
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/smtpserverport") = 25 ' cdoSMTPServerPort
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'cdoBasic (clear text)
'Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "emailalias@mydomain.com"
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword"

Flds.Update

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

'Format and send message
Err.Clear

Obviously, replace emailalias@mydomain.com with the actual alias or username and mypassword with the actual password applicable.

And now it works.


you mean you fixed it by un-commenting the optional lines in inc_mail.asp that are there spcefically for that purpose, or did you change something else ?
<
Go to Top of Page

Flashspot
Starting Member

United States
6 Posts

Posted - 12 July 2008 :  11:22:08  Show Profile  Visit Flashspot's Homepage
I think the key here is the serverport.<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 05 August 2008 :  08:13:31  Show Profile
I had nothing but trouble with IIS7, myself, finally got disgusted enough with MS and went back to 2003 Server & IIS6. Everything worked fine again.<
Go to Top of Page

rjb
Starting Member

3 Posts

Posted - 05 January 2009 :  02:55:32  Show Profile  Visit rjb's Homepage
I've tried all these changes and have had no luck. I'm with Godaddy account and was on iis6 using cdonts just
file, and now moved it to iis7 and although the site works well the email is kaput.

I've tried the following, maybe someone might be able to see somthing i've missed. Thanks for your time.

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/smtpserverport") = 80 ' cdoSMTPServerPort
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'cdoBasic (clear text)
'Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "ehs****@beams.us"
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "miss****"

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.From = "ehs****@beams.us"
objNewMail.ReplyTo = 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

on the smtp.. i tried 25 1st, and then 80.. I use port 80 for godaddy smtp on my outlook and it work fine.
the emails and pass words are changed for obvious reasons..

The control panel for email set looks like this

Select E-mail Component: CDOSYS(IIS 5/5.1/6)
Email mode: On
E-mail Server Address: mail.beams.us
Administrator E-mail Address: ehs****@beams.us
All the rest the options are on..


Any help would be nice.

Thanks

Rob

<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 January 2009 :  03:02:52  Show Profile  Visit HuwR's Homepage
have you tried the changes in this post
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=66471#374854<
Go to Top of Page

rjb
Starting Member

3 Posts

Posted - 05 January 2009 :  04:15:15  Show Profile  Visit rjb's Homepage
Tried that code .. cut and paste and change username and password. no go. my email i'm using is the same as the domain i'm running it on.
i also added a line to it after i checked what you had adding serverport and still no go..

It takes a bit to come back after send is clicked to say it's sent. I'm thinking the auth portion is faling for some reason.

what would it take to find this out? Is there a way to manually test it.. or give more echo or feedback in the code as it buils the FLD items? or is it send with all the info and the server deals with it? I really dont have access to the email logs.. i could call but i dont think i do, i know that can help out a great deal.

Thanks for your response.

Rob

hmmm<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 05 January 2009 :  04:35:15  Show Profile  Visit HuwR's Homepage
are you sure that your host actually has cdosys set up correctly ? just because Snitz says it is installed does not mean that it is working

you could try removing the Err.Clear line to see if it is throwing an error.<
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 05 January 2009 :  04:54:12  Show Profile
Well, I tried the first obvious thing - checked to see if your mail server was responding. Pinging mail.beams.us reroutes to pop.where.secureserver.net which times out, so your mail server might be down or they may have changed it.

<
Go to Top of Page

rjb
Starting Member

3 Posts

Posted - 05 January 2009 :  22:54:24  Show Profile  Visit rjb's Homepage
Thanks for the info. The mail server works fine, i can send and receive email though it ok. Alot of hosts are shutting off pings to most servers.. for example i used to ping apple.com to check my connection and a few months back it stopped taking ping requests. At any Rate HuwR
your code worked after i read a little bit on godaddy about after a search on google with "godaddy iis7 cdonts" and it gave my a .net code example and I just added a relay server that godaddy had in the .net code and it works great, had to have the username and pass... no port required.. here's the code I used for any future godaddy peeps.

case "cdosys"
                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") = "relay-hosting.secureserver.net" 'strMailServer
		.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
		.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "emailaccountusernamehere"
		.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "emailpasswordpasswordhere"
		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


Edit: Added code tags.<

Edited by - Podge on 06 January 2009 09:27:05
Go to Top of Page

sikandar
Junior Member

Pakistan
135 Posts

Posted - 27 August 2009 :  09:30:17  Show Profile
Hi I am trying to configure google email and tried to followed what ever mentioned here in different posts but getting error,

Sending E-Mail

CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/inc_mail.asp, line 149

Here is my updated code,

'Set and update fields properties
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer << smtp.gmail.com
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
Flds("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 600
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "myemailid@domain.com" <<
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "thisid password" <<
Flds.Update

Thanks in advance.
Go to Top of Page

sikandar
Junior Member

Pakistan
135 Posts

Posted - 27 August 2009 :  10:27:56  Show Profile
I changed the port to 465 and then following error,

Send an E-MAIL Message

error '8004020e'
/inc_mail.asp, line 149
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 27 August 2009 :  11:45:42  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Is this your own server ? Is there a firewall on the server blocking port 587 or 465?

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
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.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07