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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss..."Send Notification" should be disabled..."Send Notification" should be disabled...
Previous
 
Next
New Post
6/23/2006 2:52 PM
 

Hi,

I'm running DNN 4.3 in an environment where e-mail through SMTP is not allowed. We are a post-secondary school, and our Information Systems department just refuses to allow any SMTP support in internal websites; all mail is to be run through Exchange Server. Therefore, we cannot do any Host level settings to set meaningful SMTP values.

This causes problems in every day administrative tasks in the DNN portal for any part that supports DNN mail services.

For example, every time we work with users (adding to roles, for example), the "Send Notification" check box is always set. If we don't have SMTP available in our environment, then we always have to manually un-check the box before we do anything with adding/removing roles for a user. It would be better if the DNN portal could tell that SMTP is not "available", and uncheck/disable the checkbox for us.

In this particular example, the check could be done on line 175 of the BindData() method of the SecurityRoles class (Namespace DotNetNuke.Modules.Admin.Security) to ensure that SMTP is indeed available (or used). If e-mailing is not supported in the host configuration, then the chkNotify checkbox should be set to un-checked and disabled.

 

I admit that I've only been diving into the whole DotNetNuke.Services.Mail for a *very* short time (only this morning, in fact), and from the little I've read in the code, there seems to be an assumption that *some* kind of e-mail settings will be present:

In lines 224 to 238 of the class DotNetNuke.Services.Mail.Mail, there is a check to see if the SMTP server string is empty, in order to set the smtpClient host, port, and credentials to meaningful values. But from there it just dives right into attempting to send the e-mail.

From what I read about the SmtpClient class in the .NET framework, the default constructor (which is used in line 222 to create the smtpClient object) will try to fill the Host, Credentials, and Port information from the web.config or the machine.config files. But if this information is not present (the mailSettings element in the .config), then the attempt to send the e-mail is definately set up for failure (resulting in the exception being caught in lines 243ff of the SendMail method of the Mail class).

Perhaps there should be a Host Setting that allows SMTP to be disabled. Other parts of the DNN framework could check this setting before even attempting any mail activities.

 

Just a thought. I know I could implement this myself by changing the core, but I loathe to do such a thing. It would be nicer if it was already built into the core. Thoughts, anyone?

 
New Post
6/23/2006 3:00 PM
 

I can understand the usecase, and it shouldn't be too difficult to build a host/admin level setting in that is checked in the Mail sending code. Please record this on the public issuelog http://support.dotnetnuke.com/project/Project.aspx?PROJID=23

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/23/2006 3:14 PM
 

Thank you cathal. This is now in the public issue log at
http://support.dotnetnuke.com/Default.aspx?p=23&i=3278 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss..."Send Notification" should be disabled..."Send Notification" should be disabled...


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