Print Page | Close Window

Unable to send emails

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=21076
Printed Date: 09 April 2026 at 6:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Unable to send emails
Posted By: donstar
Subject: Unable to send emails
Date Posted: 19 August 2006 at 9:04am
I have recently noticied that since moving to mySQL v8.03 that the Forum has NOT been sending any emails, despite getting no error messages through the Forum. (I got the message saying "your email has been sent to..." but the message was not delivered)
 
I checked all my email settings in admin and they are all correct. I'm using CDOSYS and localhost, no username or password are required.
 
I contacted my host (netpivotal) and they said that the CDOSYS component is working fine and they set up a testmail.asp page which worked fine using their settings.
 
After studying the code in functions_send_mail.asp I noticed that this is set to use Port 1 for localhost as follows
 
 
 
**************************************************
   'Calculate the port we are sendusing (1=localhost 2=network)
   If LCase(strMailServer) = "localhost" OR strMailServer = " http://127.0.0.1 - http://127.0.0.1 " OR strMailServer = "127.0.0.1" Then
    intSendUsing = 1
   Else
    intSendUsing = 2
   End If
**************************************************
 
 
The testmail.asp file however uses Port 2 so I changed the code in functions_send_mail.asp to
 
 
 
**************************************************
  'Calculate the port we are sendusing (1=localhost 2=network)
   If LCase(strMailServer) = "localhost" OR strMailServer = " http://127.0.0.1/ - http://127.0.0.1 " OR strMailServer = "127.0.0.1" Then
    intSendUsing = 2
   Else
    intSendUsing = 2
   End If
**************************************************
 
 
and the Forum is now sending out emails.
 
 
Is this a fault in the forum code or is my hosts CDOSYS set up unusual?


-------------
I still miss my ex, but my aim's much better now.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 August 2006 at 12:20pm
This hasn't changed for version 8.03, so seems strange it started after your upgrade.

When using locahost SMTP server CDOSYS requires that you use a local port and not a network port. Your web host must have some usual setting to have coursed this and they are routing to a network SMTP server rather than a localhost 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: donstar
Date Posted: 19 August 2006 at 1:51pm
Sorry -boRg- This didn't start after I upgraded but rather after I moved to netpivotal. I have the same problem with Access version running on their server.
 
After further consultation with them, I'm fairly sure they don't have a local SMTP server as they don't want people sending out spam through their servers. So it would appear that they are routing to a network SMTP server.
 
If this is the case could the admin_email_notify_configure.asp page be edited for future versions to allow novices like me to change from Port 1 to Port 2 without having to edit your code?
 
e.g. By adding to the Email Component Setup section an option to select the Outgoing Mail Server Port as 'Port 1' or 'Port 2' from a drop down list
 
I'm sure I'm not the only person running WWF on netpivotal's servers (or servers set up the same way) and I've just spent the last 2 days trying to figure out what was causing this problem and figuring out how to fix it.


-------------
I still miss my ex, but my aim's much better now.


Posted By: WebWiz-Bruce
Date Posted: 19 August 2006 at 4:07pm
So far you are the only person to ever have this issue.

If other hosts start doing the same thing then an option will be made in the admin area, but any option in the admin area requires more database fields and for performance reasons database fields are kept to a minimum.

I'm fiarly sure though that other hosts won't do this, as if you need to use a non local SMTP server you would specify the IP address or URI, and telling you to use 'localhost' then having that routed to a non local SMTP server is certainly a very strange way of doing things.


-------------
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: donstar
Date Posted: 19 August 2006 at 6:09pm
Thanks again -boRg-
 
I asked netpivotal why Port 1 does not work and have just had this reply.
 
"Port 1 will not work with CDOSYS on your server because we do not allow relaying through SMTP."
 
Thought I'd let you know.


-------------
I still miss my ex, but my aim's much better now.


Posted By: WebWiz-Bruce
Date Posted: 19 August 2006 at 7:45pm
This is the same with most hosts these days, but usually they implement authentication whereby you specify and username and password.

Whatever way you look at it, it is a very unusual setup and not what would be considered 'best practice'


-------------
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



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