no mail will be send when i register

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/15/2008 4:04:48 AM
Gravatar
Total Posts 4

no mail will be send when i register

Hi

 

i set up the following in web.config:

<system.net>
<mailSettings>
<smtp from="andreas@klaeser-andreas.de">
<network
host="smtp.klaeser-holzbearbeitung.de "
port="25"
password="MyPassword"
userName="MyUserName"
/>
</smtp>
</mailSettings>
</system.net>

 

<add key="SMTPServer" value="smtp.klaeser-holzbearbeitung.de " />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPUseSsl" value="false" />
<add key="SMTPPort" value="25" />
<add key="SMTPUser" value="MyUsername" />
<add key="SMTPPassword" value="MyPassword" />
<add key="SMTPTimeoutInMilliseconds" value="15000" />
<!-- leave this blank for ascii encoding -->
<add key="SmtpPreferredEncoding" value="" />

 

 

But when I register a testuser, no email will be send to my address.

Any ideas to solve the problem?

 

Greats

Andreas

10/15/2008 5:28:52 AM
Gravatar
Total Posts 4

Re: no mail will be send when i register

This error I get now

 

[SocketException (0x274d): Es konnte keine Verbindung hergestellt werden, da der Zielcomputer die Verbindung verweigerte 127.0.0.1:25]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1073657
System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +33
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +217

[WebException: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.]
System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +1490784
System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +191
System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +318
System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +227
System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316
System.Net.Mail.SmtpClient.GetConnection() +42
System.Net.Mail.SmtpClient.Send(MailMessage message) +1485

[SmtpException: Fehler beim Senden von Mail.]
System.Net.Mail.SmtpClient.Send(MailMessage message) +2074
mojoPortal.Net.Email.SendEmailNormal(SmtpSettings smtpSettings, String from, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority) +710
mojoPortal.Net.Email.SendEmail(SmtpSettings smtpSettings, String from, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority) +176
mojoPortal.Net.Notification.SendRegistrationConfirmationLink(SmtpSettings smtpSettings, String messageTemplate, String fromEmail, String userEmail, String siteName, String confirmationLink) +192
mojoPortal.Web.mojoMembershipProvider.CreateUser(String userName, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +901
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


Whats should I do?

10/15/2008 4:06:03 PM
Gravatar
Total Posts 18439

Re: no mail will be send when i register

Hi,

When I translate the error with google translate, it says "It could not be contacted because the destination computer refused to connect", so the smtp server refused the connection. Maybe it only allows connections from specific hosts, or maybe the configuration is not correct. Also, many ISPs (like most cable companies in the US, Comcast, Time Warner for example) block port 25 to prevent spam on their networks so often you can't relay from a local test machine to an smtp server on the internet using port 25. I can't on my dev machine. Thats why many email services like yahoo and google use alternate ports like 587 these days for smtp. I don't know if they do that in Germany but thought its worth mentioning in case they do.

I can tell you that the settings used by the Create User Wizard and the Password Recovery and Registration Email confirmation is all using these settings:

<system.net>
<mailSettings>
<smtp from="andreas@klaeser-andreas.de">
<network
host="smtp.klaeser-holzbearbeitung.de "
port="25"
password="MyPassword"
userName="MyUserName"
/>
</smtp>
</mailSettings>
</system.net>

The other settings in the appSettings section are used by the contact form, blog comment notification, forumpost notification, etc.

Hope it helps,

Joe

10/16/2008 3:35:47 PM
Gravatar
Total Posts 4

Re: no mail will be send when i register

 ok

thanks

 

now i know that me isp doesn' support this feature, it uses jmail.

is it possible to use jmail?

Or what could i do?

 

 

You must sign in to post in the forums. This thread is closed to new posts.