Print Page | Close Window

Help with email out...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8535
Printed Date: 07 April 2026 at 9:38am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help with email out...
Posted By: user-error
Subject: Help with email out...
Date Posted: 03 January 2004 at 7:27pm

Ok, I've looked for an answer but I'm failing to find it.

I have a W2k3 DC which is running IIS for my website, my second machine is w2k3 and is running exchange 2k3 and SQL 2k.

I've tried the various types of email (CDONT etc...) and I can't get this to work. I've also pointed the smtp server to both internal and external names/addresses and none of that has worked.

About a month ago I ran into a problem (at work) where a Winxp machine was not able to use cdonts to send email.  The fix was to run the script at the bottom of the page and all worked well.  I've tried this and this hasn't worked.

Anyone have a solution?

thanks,

 

Here's the script I ran to fix the problem at work:

 

 

Create a vbs file called mbaadd.vbs.

 

Copy and Paste the following code into it.

 

       Option explicit

       Dim objSMTP, objInst, objSD, objACL, objACE, objNew

       Dim sAccount

 

       sAccount = wscript.arguments(0)

       wscript.echo "Updating SMTP service instances..."

       Set objSMTP = GetObject("IIS://LOCALHOST/SMTPSVC")

 

       For Each objInst In objSMTP

          If objInst.class = "IIsSmtpServer" Then

              wscript.echo objInst.ADSPath

              set objSD = objInst.AdminACL

             set objACL = objSD.DiscretionaryACL

              set objNew = CreateObject("AccessControlEntry")

              objNew.AccessMask = 9 ' read + enumerate

              objNew.AceType = 0 ' ADS_ACETYPE_ACCESS_ALLOWED

              objNew.AceFlags = 2 ' ADS_ACEFLAG_INHERIT_ACE

              objNew.Trustee = sAccount

 

              objACL.AddAce objNew

              objSD.DiscretionaryACL = objACL

              objInst.Put "adminACL", Array(objSD)

              objInst.SetInfo

          End If

       Next

 

 

If the machine is a DC then run the following from a command prompt

cscript mbaadd.vbs domain\IUSR_Machinename

' IUSR_Machinename = the IUSR account with the customers machinename appended to

it.

 

If the




Replies:
Posted By: WebWiz-Bruce
Date Posted: 04 January 2004 at 5:23am
On win2003 it doesn't have CDONTS so either isntall CDONTS (serach google to find it) or use CDOSYS and make sure that you give a working SMTP server.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: user-error
Date Posted: 04 January 2004 at 9:19pm

I tried using CDOSYS and I do have a working smtp server (exchange 2k3), I pointed the smtp to be the servers name: "Wizardskeep" and I also tried the external name mail.<domain>.com; mail still own't go out.

 

I'll try downloading cdonts and installing that.

Do you know if there are any plans for straight SMTP support?



Posted By: user-error
Date Posted: 06 January 2004 at 12:39am

ok, so continuation...

 

I've tried cdonts and cdosys.  I found an article and got this working (internally).  The \Inetpub\mailroot\Queue folder needed everyone write privs.  I added this and now when I sign up with an internally hosted domain name I get the confirmation email etc..., when I use my isp email address (road runner) it never makes it.

Am I missing something here?  I can send mail fine from server to my road runner account just fine.  Is there some port I'm failing to open?

thanks,

 



Posted By: user-error
Date Posted: 07 January 2004 at 10:09pm
Anyone?


Posted By: dpyers
Date Posted: 08 January 2004 at 1:02am

I got a little lost here. What ae you using as the mail server at this point in your process - exchange or localhost?

I have a feeling that when you send mail to your isp, you're using Exchange, but the forum is set up to use local host for the confirmation emails and you are getting stopped by the firewall/proxy.

You may also want to look at the system management tools in your control panel and check out the performance logs and alerts.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: user-error
Date Posted: 08 January 2004 at 8:34pm

Here is what I'm doing:

Machine 1:

W2k3 DC, hosts IIS for the website, FTP, and the message board

 

Machine 2:

w2k3 member server, Exchange 2k3, SQL2000 and file/print server

 

I've used the various methods to get the email functionality working for the message board.  Since the boar dapparently doesn't use SMTP, I'm forced to use CDONT, CDOSYS etc...

I found an article on the boards that talked about sending mail using CDOSYS or CDONTS and I gave permission to the folder specificed in the article and mail from teh message board.

My porblem: When I sign up with an account that is apart of my FQDN (i.e. http://www.mydomain.com - www.mydomain.com ) it sends it, but that is becuase it is internal and DNS resolves it locally versus having to go out of the friewall.  If I use a hotmail, yahoo, socal.rr.com etc... address, it never makes it.

I know mail routing is not an issue becuase if I log into Outlook and send an email from @mydomain.com it reaches my socal.rr.com account etc... just fine. 

 

How about this.  Given my setup, what method is reccomended to use to allow mail out?

What should I look at needing to ensure is set correctly.

 

 

 



Posted By: dpyers
Date Posted: 08 January 2004 at 10:03pm

I have a feeling that outlook is using your Exchange server while the board is trying to use smtp on the machine it's installed on - not the exchange server. CDONT'S, CDOSYS, etc are all just interfaces/front ends to SMTP - not separate mail facilities.

We need to sectionalize the problem - local WWF machine - firewall - Exchange.

Start with ensuring that smtp is functional on the machine that wwf is installed on by copying the following 4 lines into a .txt file:

From: mailto:emailaddress@someplace.com - To: mailto:emailaddress@someplace.com - Subject: testing

This is the test message body.

Change the email addresses to something you can check, first an internal address, then for a second test, to an external address.

copy the text file (not a shortcut) to the smtp pickup directory. On my XP machine, it's C:\Inetpub\mailroot\Pickup

If it doesn't disappear from the pickup directory in a few seconds, Then smtp services are not running on that machine. Go to Settings|Control Panel|Admin Tools|IIS and fire it up.

If it does disappear, Check the other directories under C:\Inetpub\mailroot to see if it wound up in one of those. In the Queue or Badmail Directory is a pretty good indication that it's not getting past the fire wall. Look at any headers in there to possibly see why.

If it's totally gone, then go to your email client and check the account specified by the "To" line. It should be there. If it's not, check your firewall and possibly the Exchange logs for stuff bounced back to you.

Note that many email servers are rejecting mail that doesn't resolve a reverse dns lookup. If the mail is coming from a machine within your firewall that isn't exposed by dns, it may be rejected by some servers. AOl, Hotmail, and Yahoo and mant ISP's try reverse dns lookups. If everything looks ok, but you still are not getting the email, try an account that's elsewhere on the outside.

 



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: user-error
Date Posted: 09 January 2004 at 8:57pm

Ok, so here's the problem.  My smtp server is not the same machine where the message board is.

I did what you suggested (mainly just to do it) and it DID fail, however it's tryign to resolve as it self instead of forwarding the sMTP traffic to my mailserver

Again, mail comming in or going out from my domain works fine (it's on a different server).

 

any more ideas?



Posted By: user-error
Date Posted: 09 January 2004 at 8:59pm

Here's the error message I recieve:

 

Unable to deliver this message because the follow error was encountered: "Error is processing file in pickup directory.".

The specific error code was 0xC00402CE.


The message sender was mailto:Administrator@knightstemplars.net - Administrator@knightstemplars.net .

 

And

 

 

???????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????? ????????????????????:~›`ÉѪ^ ÀO£[‚C:\Inetpub\mailroot\Queue\NTFS_f0caa36001c3d71c00000015 .EML mailto:Lå??Administrator@knightstemplars.net - Lå??Administrator@knightstemplars.net ??smtp:Administrator@knightstemplars.net ?    mailto:Administrator@knightstemplars.net - Administrator@knightstemplars.net ??dhara.knightstemplars.net ??127.0.0.1 ??127.0.0.1 ??DHARA ??Version: 6.0.3790.0 Fri, 9 Jan 2004 17:56:19 -0800 ???????????????????????????????????????????????????????????? ?????????????????

 

 



Posted By: user-error
Date Posted: 10 January 2004 at 2:59pm

Ok, I'm just not getting why this isn't working.  My SMTP Mail Server (which is not on the same server as the website) sends/recieves mail 100% internally/externally etc...from hotmail, yahoo etc... ... ...

I get the above error when mail is sent FROM the webserver (which does NOT have excahnge installed but DOES have SMTP).  I know SMTP is failing but I also can't seem to have it forward the SMTP traffic to my mailserver to route to the internet. 

My firewall is setup to relay smtp traffic to the mail server but that's for incomming traffic. 

 

Any more ideas?  At all? help please!! <losing mind ont his "simple problem">



Posted By: thekiwi
Date Posted: 10 January 2004 at 3:11pm

Verify this
E-mail Messages Generated by CDONTS Go Directly to Badmail Folder
http://support.microsoft.com/?id=319285 - http://support.microsoft.com/?id=319285

and check the permission base on this
Runtime Error '800a0046' Using the Send Method of CDONTS.NewMail
http://support.microsoft.com/?id=197619 - http://support.microsoft.com/?id=197619

or
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q265621 - http://support.microsoft.com/default.aspx?scid=kb;en-us;Q265 621

If you this kb to test
http://support.microsoft.com/?id=297700 - http://support.microsoft.com/?id=297700



-------------
Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting


Posted By: thekiwi
Date Posted: 10 January 2004 at 3:30pm

PS make sure your FROM Email address in the forum is valid

Also check:

http://www.aspfaq.com/show.asp?id=2372 - http://www.aspfaq.com/show.asp?id=2372



-------------
Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net