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 Server Settings: PortSMTP Server Settings: Port
Previous
 
Next
New Post
4/15/2007 12:05 AM
 

Pardon me if this is an obvious posting, but the Search functinality for these forums isn't returning any hits.  I'm trying to setup my Host Settings/SMTP Server Settings to send mail.  I'm entering the exact same Server, Username and passord as I use on my current custom ASP.NET web site.  My site works, my test DNN site doesn't.  I'm getting a very generic (and hardly helpful) "Failure sending mail." message.

Is there anywhere I need to hack into to set the port which is not the default 25?

Thanks,

Brian

 
New Post
4/15/2007 11:17 PM
 

Set it on the end of the SMTP server name with a colon followed by your alternate port.

smtp.gmail.com:567


DotNetNuke Modules from Snapsis.com
 
New Post
5/4/2007 2:16 PM
 

beaudetious,

There is a possibility that your local windows firewall, local policy or group policy is blocking your ability to send emails.  If you have installed your "test" version on a Windows XP machine and trying to shoot it to ANY smtp server (local or remote) this policy might be blocking it.

I created a simple C# application to test each machine if I could send an email from that machine.  From our company servers, we could do this just fine.  However, if we did this from a test instance (a developer's machine), it failed every time.  We traced this back to the group policy in place that blocked all port 25 traffic.

Hope this helps.  The C# application code and the Directions to allow test emails from desktops are below.

-Ryan

Directions:

 Control Panel → Windows Firewall → Advanced → Network Connection Settings → Settings → Internet Mail Server

 Control Panel → Windows Firewall → Exceptions → Add Port → Type: SMTP → Port: 25

C# Test Application (Windows Application)

using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Text;
using
System.Windows.Forms;
using
namespace
{
 
SendMailTest publicpartialclass Form1 : Form
{
 
{
InitializeComponent();
}
 
{
 
public Form1() privatevoid button1_Click(object sender, EventArgs e) // SmtpClient is used to send the e-mail
 
mailClient.Send(
}
}
}
SmtpClient mailClient = newSmtpClient("[SMTP SERVER ADDRESS]");"[FROM EMAIL]", "[TO EMAIL]", "[SUBJECT]", "[BODY]");
 
System.Net.Mail;
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...SMTP Server Settings: PortSMTP Server Settings: Port


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