Welcome Guest Search | Active Topics | Log In | Register

adding email verification preventing registering of new users Options · View
ronen
#1 Posted : Wednesday, November 26, 2008 10:36:52 PM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
I lost about 20 new users that wanted to register and couldn't do it. It happened since i checked the email verification in the host settings.
I saw about 20 entries like this in the event manager :
Code:

System      26/11/2008 14:16:50      user_register in DB.cs       Hide  | Delete

System.Net.Mail.SmtpException: Failure sending mail. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
   --- End of inner exception stack trace ---
   at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
   at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
   at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
   at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.GetConnection()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   --- End of inner exception stack trace ---
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at yaf.Utils.SendMail(ForumPage basePage, MailAddress fromAddress, MailAddress toAddress, String subject, String body)
   at yaf.DB.user_register(ForumPage page, Object boardID, Object userName, Object password, Object email, Object location, Object homePage, Object timeZone, Boolean emailVerification)


Did i lost all their information?
What is the cause of this error?

in the meantime i disabled email verification, and i tried to test sending mail from yaf, it gives me the next page:
Code:

There has been a serious error loading the forum. No futher information is available.

Please contact the administrator if this message persists.

and in the event log i get:
Code:
26/11/2008 14:41 in System
Failure sending mail.
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at yaf.Utils.SendMail(ForumPage basePage, MailAddress fromAddress, MailAddress toAddress, String subject, String body)
   at yaf.pages.admin.mail.Send_Click(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-----------------------------
26/11/2008 14:41 in System
Unable to connect to the remote server
   at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
   at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
   at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
   at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
   at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)
   at System.Net.Mail.SmtpClient.GetConnection()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
-----------------------------
26/11/2008 14:41 in System
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 64.202.165.58:25
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)


how do i repair that?
Thank you.
TommyB
#2 Posted : Thursday, November 27, 2008 10:40:06 AM

Rank: YAF Commander



Joined: 7/6/2005
Posts: 92
Location: Germany
The information shouldn't be lost. The user accounts should appear in the administration where you can manually approve them.

But it seems you have a problem with your email configuration. Please see web.config, or mail.config (dependend on which version of yaf you use) and verify the email settings in there.
- Sry for my english Wink

BattCursor.Net - Official homepage of that tool for vista laptops!
ronen
#3 Posted : Thursday, November 27, 2008 11:49:28 AM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
i think it's lost i have no new users on the user list.
That's the code in the web.config:
Code:
<?xml version="1.0"?>
<configuration>
    <configSections>
        <section name="yafnet" type="yaf.SectionHandler,yaf"/>
    <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
    </configSections>

    <yafnet configSource="yafnet.config"/>
    <rewriter configSource="urlrewriter.config"/>

    <system.web>
    <httpModules>
      <add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
    </httpModules>   
        <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
        <compilation defaultLanguage="c#" debug="false"/>
        <pages enableEventValidation="false" validateRequest="false" smartNavigation="false"/>
        <authentication mode="Forms">
            <forms name=".YAFNET_Authentication" timeout="525600" />
        </authentication>
        <customErrors defaultRedirect="error.aspx" mode="RemoteOnly"/>
        <!--trace enabled="true" pageOutput="true"/-->
        <xhtmlConformance mode="Legacy"/></system.web>
</configuration>

I don't see any mail settings there, can you help me please?
right now mail verification is disabled by me, but even sending mail from the forum doesn't work.
TommyB
#4 Posted : Thursday, November 27, 2008 12:00:24 PM

Rank: YAF Commander



Joined: 7/6/2005
Posts: 92
Location: Germany
I dont know if they will appear in the user list, but you should see them in the administration - admin index - Unverified Users.
Here you can approve them, if there are any.

Anyways, very small web.config file... What version of yaf do you use?
- Sry for my english Wink

BattCursor.Net - Official homepage of that tool for vista laptops!
ronen
#5 Posted : Thursday, November 27, 2008 12:20:30 PM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
thanks, but the list of unverified users is empty, anyway the yaf version is 1.9.1.8.
It wasn't installed by me but it was installed by the hosting company Cheapdomainnames and secureserver.net.
my access to the files is through ftp client.
is there a way for me to upgrade? how can i run a file on the server through ftp client?
TommyB
#6 Posted : Thursday, November 27, 2008 1:09:25 PM

Rank: YAF Commander



Joined: 7/6/2005
Posts: 92
Location: Germany
ok, then the information seems to be lost.

I haven't found any email settings in this yaf version, but you can try this:
Add this to your web.config file before </configuration>
Code:
<system.net>
<mailSettings>
<smtp>
<network host="127.0.0.1" port="25" defaultCredentials="false" userName="xxxxx" password="xxxxxx"/>
</smtp>
</mailSettings>
</system.net>

Replace the network host, username and password with this one you shoud get from your hosting provider.
After that upload the file (make a backup of the original file first) and try it Smile

Well, of course you can upgrade to the current version, except you are restricted by your hosting provider, but it's still a beta version, even it runs fine on my web.
What do you mean with run a file? Using ftp you can only upload and download files, renaming, ... but not execute.
- Sry for my english Wink

BattCursor.Net - Official homepage of that tool for vista laptops!
ronen
#7 Posted : Friday, November 28, 2008 1:39:08 AM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
i thank you for your efforts, however i did what you said and it didn't help, should i use ip address or dns name is ok to use in the web.config settings? i still can't use the mail functionallity of YAF. same errors happen.
is it possible to upgrade yaf through ftp client?
is my version the latest stable version?

thanks again.
logan
#8 Posted : Friday, November 28, 2008 7:26:40 AM
Rank: Advanced Member



Joined: 3/16/2008
Posts: 72
Location: Las Vegas, NV USA
The Email SMTP Settings for Ver.1.9.1.8 are in the admin section

Log in as admin
Click admin at the top
Click Host Settings on the left
5th Section down is SMTP Server Settings


You need the SMTP Server name from your hosting company

http://www.cheapdomainna...lp/SettingMXRecords.asp

from the looks of the Faq on your hosting co.

Try smtp."yourdomainname.com" in the smtp settings field.

you may need to setup the MX records as described at the link

Good Luck
ronen
#9 Posted : Friday, November 28, 2008 10:47:02 AM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
hi, actually, i'm on another cheapdomainames company (seems there are many companies with that name?)

their site is this : https://www.securepaynet.net/gdshop

and the smtp server ( the same i use at outlook2003, there it works) is :
smtpout.secureserver.net
i surely entered the settings in the admin pain on yaf forum, but i get the same errors, the forum can't send emails.
i also tried my isp smtp server , and same error.
TommyB
#10 Posted : Friday, November 28, 2008 10:56:08 AM

Rank: YAF Commander



Joined: 7/6/2005
Posts: 92
Location: Germany
logan wrote:
The Email SMTP Settings for Ver.1.9.1.8 are in the admin section

Whoops, I don't know that. Rolling Eyes

In my case I have to set the mail server address to "127.0.0.1" (or "localhost" which is the same), specially if I can't enter username and password for the mail account. I can't look for your case, because the link to your hosting provider seems to be wrong?!

But yes, you should be able to upgrade using ftp, but that version you are using is the latest stable version. But if you want to give the 1.9.3 RC2 a try, be sure to make a complete backup first (file system and database) to be on the safe side Smile
- Sry for my english Wink

BattCursor.Net - Official homepage of that tool for vista laptops!
ronen
#11 Posted : Friday, November 28, 2008 11:03:36 AM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
TommyB
#12 Posted : Friday, November 28, 2008 11:14:57 AM

Rank: YAF Commander



Joined: 7/6/2005
Posts: 92
Location: Germany
Try this as smtp server, if 127.0.0.1 won't work:
Code:
relay-hosting.secureserver.net

This one should be the correct one Smile
- Sry for my english Wink

BattCursor.Net - Official homepage of that tool for vista laptops!
ronen
#13 Posted : Friday, November 28, 2008 11:31:23 AM

Rank: YAF Forumling


Joined: 11/25/2008
Posts: 8
WOW!!!

Razz Razz Razz

you are amazing , relay-hosting.secureserver.net worked.



and i just talked before to their technical support and the man there told me to use the same smtp server as in my email settings : smtpout.secureserver.net and i told him it's not working, but he couldn't help me.
they don't know much there.

thank you very muchSmile
TommyB
#14 Posted : Friday, November 28, 2008 11:33:58 AM

Rank: YAF Commander



Joined: 7/6/2005
Posts: 92
Location: Germany
hehe
nice to hear that it's working now Smile
- Sry for my english Wink

BattCursor.Net - Official homepage of that tool for vista laptops!
logan
#15 Posted : Friday, November 28, 2008 12:26:39 PM
Rank: Advanced Member



Joined: 3/16/2008
Posts: 72
Location: Las Vegas, NV USA
They must be a Godaddy reseller.

They use the smtpout.secureserver.net and relay-hosting.secureserver.net.

Good Luck with your forum.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.116 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET