Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Unable to send emails
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unable to send emails

 Post Reply Post Reply
Author
donstar View Drop Down
Newbie
Newbie
Avatar

Joined: 04 January 2004
Location: Scotland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote donstar Quote  Post ReplyReply Direct Link To This Post Topic: Unable to send emails
    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" 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" 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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
donstar View Drop Down
Newbie
Newbie
Avatar

Joined: 04 January 2004
Location: Scotland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote donstar Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
donstar View Drop Down
Newbie
Newbie
Avatar

Joined: 04 January 2004
Location: Scotland
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote donstar Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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'
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.