Email Function on Somee Hosting

Post here to discuss topics relate to the 4.x version for the ASP Football Pool software program. All support topics should go here.
Post Reply
pigskin9798
Posts: 9
Joined: Mon Dec 08, 2014 8:18 am

Email Function on Somee Hosting

Post by pigskin9798 »

I am a novice when it comes to ASP and I am trying to get the email function working.
Is anyone using Somee to host your site and were you able to get email working?

I am getting the following the error so I'm not exactly sure what I need to change in email.asp

Email send failed with 'The transport failed to connect to the server. ' Please contact scott@gmail.com for help.

So far I have tried using the generic code that was provided and also tried changing this line that I saw work for GoDaddy hosting
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... smtpserver") = "relay-hosting.secureserver.net"

Any help would be appreciated.

Regards,
Scott
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Email Function on Somee Hosting

Post by Stutgrtguy »

I use somee for my hosting and I could never get it to work. I sent several support tickets to them and came back with no help at all. I use my google address to email players using the code below that was posted here.

set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... /sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... smtpserver") = "smtp.gmail.com"
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/config ... smtpusessl") = True
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/config ... smtpserver") = "smtp.gmail.com"
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/config ... serverport") = 465
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/config ... thenticate") = 1
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/config ... ndusername") = "your address@gmail.com"
cdoConfig.Fields.Item("http://schemas.microsoft.com/cdo/config ... ndpassword") = "password"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Email Function on Somee Hosting

Post by Stutgrtguy »

Anyone else use somee and gmail notice it isnt working lately?
kingmullet
Posts: 59
Joined: Thu Sep 05, 2013 3:21 pm

Re: Email Function on Somee Hosting

Post by kingmullet »

Hi, you might want to go into security settings for google. They have modified their security and block certain apps from running. Log into google, go to my account and there should be an option to enable called allow less secure apps. I enabled this and email starting working for me.
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Email Function on Somee Hosting

Post by Stutgrtguy »

Thank you very much!! works now :)
holgar
Posts: 32
Joined: Fri Aug 22, 2014 5:30 pm

Re: Email Function on Somee Hosting

Post by holgar »

For some reason, my email stopped working today. Gives me the 'The transport failed to connect to the server. ' error! There have been no changes and I'm using the email server provided by my hosting provider (HostGator). I've tested the email address, and it works fine (sent emails to it and from it with no issue). There were no code changes on my end, so what could the hosting provider change? Maybe the smtpserverport?

Code: Select all

'Configure the message.
		set cdoMessage = Server.CreateObject("CDO.Message")
  		set cdoConfig = Server.CreateObject("CDO.Configuration")
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")  = 2
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = false
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") ="admin@MYSITENAMEHERE.com"
  		cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="Password"   
  		cdoConfig.Fields.Update
  		set cdoMessage.Configuration = cdoConfig
holgar
Posts: 32
Joined: Fri Aug 22, 2014 5:30 pm

Re: Email Function on Somee Hosting

Post by holgar »

NO IDEA why... but changing the smtpserverport from 25 to 26 makes it work! Hopefully it's a fix and not a fluke.
User avatar
Stutgrtguy
Posts: 167
Joined: Sun Oct 20, 2013 3:54 pm
Location: Colorado

Re: Email Function on Somee Hosting

Post by Stutgrtguy »

kingmullet wrote: Mon Aug 17, 2015 8:45 am Hi, you might want to go into security settings for google. They have modified their security and block certain apps from running. Log into google, go to my account and there should be an option to enable called allow less secure apps. I enabled this and email starting working for me.
Post Reply