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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumnew post notification emailnew post notification email
Previous
 
Next
New Post
8/20/2007 3:23 PM
 

 

Public Shared Function SendPMMail...  In ForumUtils.vb

 

'If Not Len(_portalSettings.HostSettings("SMTPServer")) = 0 Then
                '    SmtpMail.SmtpServer = CType(_portalSettings.HostSettings("SMTPServer"), String)
                'End If


                forumMail.To = PMRecipientUser.Email
                'SmtpMail.Send(forumMail)

                Dim smtpServer As String = Convert.ToString(_portalSettings.HostSettings("SMTPServer"))
                Dim smtpAuthentication As String = Convert.ToString(_portalSettings.HostSettings("SMTPAuthentication"))
                Dim smtpUserName As String = Convert.ToString(_portalSettings.HostSettings("SMTPUsername"))
                Dim smtpUserPassword As String = Convert.ToString(_portalSettings.HostSettings("SMTPPassword"))

               

                'Dim nfo As UserInfo = UserController.GetCurrentUserInfo()
                'forumMail.To = nfo.Email


                DotNetNuke.Services.Mail.Mail.SendMail(forumMail.From, "noreply@yourdomain.com", forumMail.Bcc, forumMail.Subject, _
                            forumMail.Body, "", forumMail.BodyFormat.ToString(), smtpServer, smtpAuthentication, _
                            smtpUserName, smtpUserPassword)

 

Public Shared Function SendForumMail...  In ForumUtils.vb

'If Not Len(_portalSettings.HostSettings("SMTPServer")) = 0 Then
            '    SmtpMail.SmtpServer = CType(_portalSettings.HostSettings("SMTPServer"), String)
            'End If


            Dim distributionlist As Object
            For Each distributionlist In forumMail.DistributionLists
                Dim strDistribution As String = CType(distributionlist, String)
                forumMail.Bcc = strDistribution
                Try
                    'CP - COMEBACK - Change to per user email preferences
                    forumMail.BodyEncoding = System.Text.Encoding.UTF8


                    'SmtpMail.Send(forumMail)

                    Dim smtpServer As String = Convert.ToString(_portalSettings.HostSettings("SMTPServer"))
                    Dim smtpAuthentication As String = Convert.ToString(_portalSettings.HostSettings("SMTPAuthentication"))
                    Dim smtpUserName As String = Convert.ToString(_portalSettings.HostSettings("SMTPUsername"))
                    Dim smtpUserPassword As String = Convert.ToString(_portalSettings.HostSettings("SMTPPassword"))


                    Dim nfo As UserInfo = UserController.GetCurrentUserInfo()
                    forumMail.To = nfo.Email


                    DotNetNuke.Services.Mail.Mail.SendMail(forumMail.From, forumMail.To, forumMail.Bcc, forumMail.Subject, _
                        forumMail.Body, "", forumMail.BodyFormat.ToString(), _
                        smtpServer, smtpAuthentication, smtpUserName, smtpUserPassword)


                Catch exc As System.Exception
                    LogException(exc)
                End Try
            Next

 
New Post
8/21/2007 3:37 AM
 

jspurlin wrote

If you have a way to test those changes for development purposes, give it a shot.

Hi, thanks for your posting. Unfortunately I didn't managed to get the forum module compiled completely and currently I do not have time to invest on this :-(

So my hope was for a quick fix by replacing the dll someeone else has compiled ;-)

But it's no problem for me to wait for the release of the new forum version. Allthough it is sort of overdue I am still in good hope for it, and most important I want to see a 100% quality assured forum instead something that has been released in a hurry. So it's totally ok for me to wait even longer for it!

Tom.

 
New Post
8/26/2007 4:39 PM
 

Has anyone recompiled the DLL with the workaround?  I also don't have the compile environment setup and was hoping to just get the notifications runnings.  Any help would be appreciated.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumnew post notification emailnew post notification email


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