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 ...Using GMail for SMTP Server SettingsUsing GMail for SMTP Server Settings
Previous
 
Next
New Post
6/7/2007 8:39 AM
 

 

I'm not having any luck setting up a GMail account for the SMTP Server Settings in a DNN 4.05.03 installation.  I've allowed POP in the gmail account and tested it from Outlook successfully.  I've tried several configurations in the SMTP setting section (Host > Host Settings tab) without any luck.

For the SMTP Server and Port textbox, I've tried both smtp.gmail.com:465 & smtp.gmail.com:587

I've tried about every combination for the Authentication and Enable SSL selections, and I've copied the username and password exactly.

I've also contacted my host and they say that they don't block these ports.

Has anyone done this successfully and know what the settings are?

Thanks,
David

Here's the error I'm receiving:

<code>
Error: Host Settings is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Net.Mail.SmtpClient.set_Port(Int32 value) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) at DotNetNuke.Modules.Admin.Host.HostSettingsModule.cmdEmail_Click(Object sender, EventArgs e) The action that failed was: Demand The type of the first permission that failed was: System.Net.Mail.SmtpPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---

</code>

 
New Post
6/7/2007 7:14 PM
 

What about putting the SMTP info in the web.config?  Is that kosher with DNN?

David

 
New Post
6/7/2007 7:28 PM
 

afaik DNN will pull the SMTP settings from the database/host settings, not from the web.config file


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
6/7/2007 10:27 PM
 

Well, I tried usnig the web.config and got a slightly different error, stating:

System.Configuration.ConfigurationErrorsException: Insufficient permissions
for setting the configuration property 'port'.

SOLUTION:  I sent this to the host, they escalated the issue, and found out that they were indeed blocking those ports on the firewall.  Before they looked into opening the ports, they wanted me to try the standard port 25...

... and sure enough it worked!

So my settings are
 - SMTP Server and port:  smtp.gmail.com
 - SMTP Authentication:  Basic
 - SMTP Enable SSL:  Checked
 - SMTP Username:  myaddress@gmail.com
 - SMTP Password:  myPassword

 

 
New Post
6/11/2007 2:43 PM
 

UPDATE:  I just setup another DNN installation, same host, same DNN version (4.5.3).  I tried using the GMail address for SMTP settings and now I get the following error:

"The specified string is not in the form required for an e-mail address."

I even copied over the same exact email address from the other (successful installation).  (the address is myname@gmail.com and it includes no punctuation in the name... it's the most basic email address possible.)

Has anyone seen this error before and how it might be resolved?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Using GMail for SMTP Server SettingsUsing GMail for SMTP Server Settings


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