Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SMTP is driving me mad....SMTP is driving me mad....
Previous
 
Next
New Post
12/13/2006 4:14 AM
 

Hi,
I'm also hosting my DNN at 1und1.
In most of the cases Portal can send email notification. Where it fails for example is in Events (Calender) module notification, or in Forum (when I try to use Moderation - email is not send to Moderator).
In the host SMTP settings I have something like:

SMTP Server:
  smtp.1und1.de
SMTP Authentication: mxxxxxx-1
SMTP Password: yyyyyy

Also Host Email, host user and admin user email is set to the same email (portal-admin@domain.de) which is actually  mxxxxxx-1

I also have a problem with 1und1 when I try to install DNN in the root (not able to set the permitions to the root folder). Did anyone has similar issue?

Best regards
Goran



 

 
New Post
12/13/2006 4:17 AM
 

Hi All.

As the first test with an ASP worked fine with my local SMTP-Service i've tried ASPX (ASP2), too.

Boom!

Here the sourcecode with which i tried

<% @Page Language="VB" %>
<% System.Net.Mail.SmtpClient %>
<% System.Net.Mail.Mailmessage %>

<%
Dim SmtpObj As New System.Net.Mail.SmtpClient
Dim MailMessage As New System.Net.Mail.MailMessage()

SmtpObj.Host = "localhost"
SmtpObj.Port = 25
MailMessage.From = New System.Net.Mail.MailAddress("kai@kaijoussen.de")
MailMessage.To.Add("kai@kaijoussen.de")
MailMessage.Subject = "Testmail"
MailMessage.IsBodyHtml = False
MailMessage.Body = "Testmail"
SmtpObj.Send(MailMessage)

Response.Write("Email was queued to disk")
%>

 In smtpobj.Send() comes the error. So, it looks like a problem with ASP2, not only when trying to send to a SMTP which requires authentication but also with anonymous access!

The error i receive in the browser:

An established connection was aborted by the software in your host machine

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine

Source Error:

Line 14: MailMessage.IsBodyHtml = True
Line 15: MailMessage.Body = "Testmail"
Line 16: SmtpObj.Send(MailMessage) 
Line 17: 
Line 18: Response.Write("Email was queued to disk")


Source File: D:\Temp\default.aspx    Line: 16

Stack Trace:

[SocketException (0x2745): An established connection was aborted by the software in your host machine]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +1002178
   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) +431

[WebException: Unable to connect to the remote server]
   System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +1447768
   System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +190
   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: Failure sending mail.]
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2074
   ASP.default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\Temp\default.aspx:16
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2068251
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896


As DNN is written in ASP2 ....hm....

I'm not the programming guru, but wouldn't it be possible to use the ASP1 modules for mail?

 
New Post
12/13/2006 9:42 AM
 
I had this problem as well. It turned out that a setting in McAfee to stop mass mailing worms was preventing the emails from going out. If you have McAfee running on the DNN server you may have this problem. The setting is under Access Protection in the VirusScan console.
 
New Post
12/13/2006 2:36 PM
 

That's unbelievable!

Here am i, the little administrator, banging his head against the wall.

You are dealing with a Firewall, setting all permissions correctly on your server, removing everyone from the Share-permissions, inventing horrable passwords for the administrator and of course, installing McAfee on your server. And? What is happening? This thing is killing my nights.

I thought about everything, even made an uninstallation and new installation of Net-Framework and other stuff....but i never imagined that in McAfee could be a setting which could cause probs like that.

However, long text, no sense: THANK YOU! It's working! This damn mail-thing is working!

Maybe in the next version of the Installation Document this information could be inserted.

 
New Post
12/15/2006 8:58 AM
 

Hmm, I've had MacAfee installed for a couple of years now and never had this problem.

But now trying to use DNN4 the troubles start. I used localhost as SMTP server or even leaving it empty worked fine (local machine).

Anyone else experienced this error message after moving to DNN4 Mailbox unavailable. The server response was: 5.7.1 Unable to relay for me@mymail.com

Thanks in advance

Leif

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SMTP is driving me mad....SMTP is driving me mad....


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out