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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Scheduler Improvement on DNN 4.3.4Scheduler Improvement on DNN 4.3.4
Previous
 
Next
New Post
8/9/2006 4:26 PM
 

Does anyone now is there any improvement for the schdeuler on DNN433, 434 over DNN 4.02?

 

In particular I would like to know:

1) Is the scheduler no longer dependent on httpcontect when accessing the User and Portal Info? (This may be belonging to improvement on security modules.)

2) Is the Time-mode (Not the request mode) exdecute correctly? That means, it does not depends on any new request to the web site. Previous version of DNN just does not execute this mode correctly?

3) Any other improvement?

 

 
New Post
8/9/2006 7:11 PM
 

Joe was working on the httpcontext issue (see http://dotnetnuke.com/Community/Blogs/tabid/825/EntryID/436/Default.aspx and http://dotnetnuke.com/Community/Blogs/tabid/825/EntryID/441/Default.aspx ), in haven't checked to see if those changes are in 3.3.4/4.3.4, but they should be.

As for (2) it does work, but many ISP's forceably recycle app domains which cleans up the seperate threads, which causes problems.

3) not that I know of

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/28/2006 4:04 PM
 
Cathal - I don't suppose you know if there was a change made in the Mail sending class in 4.3.3+?

I used to send mail from the Scheduler but now the Mail method fails because it tries to do a GetCurrentPortalSettings() and there are no Portal Settings because I am in the scheduler?

Is this a new change? TIA


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
8/28/2006 6:04 PM
 

Rodney, I've had a look through the source and all I can see is a change that looks specific to user registration verified emails in the components/mail/mail.vb that was checked in on 4th July - the new lines are in red below, they don't look like they would effect any non veritication mails. I dont have the 4.3.3 source handy, but I can't see any GetCurrentPortalSettings() reference in 4.3.4

                Case MessageType.UserRegistrationVerified
                    subject = "EMAIL_USER_REGISTRATION_VERIFIED_SUBJECT"
                    body = "EMAIL_USER_REGISTRATION_VERIFIED_BODY"
                    If Not HttpContext.Current Is Nothing Then
                        custom = New ArrayList
                        custom.Add(HttpContext.Current.Server.UrlEncode(user.Username))
                    End If

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/28/2006 6:31 PM
 
Cheers Cathal - it's in the overloaded SendMail(). Interesting, I am using the 4.3.3 source and I don't see that new code...

        Public Shared Function SendMail(ByVal MailFrom As String, ByVal MailTo As String, _
            ByVal Cc As String, ByVal Bcc As String, ByVal Priority As MailPriority, _
            ByVal Subject As String, ByVal BodyFormat As MailFormat, _
            ByVal BodyEncoding As System.Text.Encoding, ByVal Body As String, _
            ByVal Attachment As String, ByVal SMTPServer As String, ByVal SMTPAuthentication As String, _
            ByVal SMTPUsername As String, ByVal SMTPPassword As String) As String

            If MailFrom = PortalController.GetCurrentPortalSettings().Email Or MailFrom = CStr(Common.Globals.HostSettings("HostEmail")) Then
                MailFrom = """" & PortalController.GetCurrentPortalSettings().PortalName & """  <" & MailFrom & ">"
            End If


This line is always null as I am not in a portal in the sheduler. OMG.... I just downloaded 4.3.4 and that line has been removed...

     Public Shared Function SendMail(ByVal MailFrom As String, ByVal MailTo As String, _
            ByVal Cc As String, ByVal Bcc As String, ByVal Priority As MailPriority, _
            ByVal Subject As String, ByVal BodyFormat As MailFormat, _
            ByVal BodyEncoding As System.Text.Encoding, ByVal Body As String, _
            ByVal Attachment As String, ByVal SMTPServer As String, ByVal SMTPAuthentication As String, _
            ByVal SMTPUsername As String, ByVal SMTPPassword As String) As String

            Dim objMail As New System.Net.Mail.MailMessage(MailFrom, MailTo)
            If Cc <> "" Then

                objMail.CC.Add(Cc)
            End If
            If Bcc <> "" Then
                objMail.Bcc.Add(Bcc)
            End If
            objMail.Priority = CType(Priority, Net.Mail.MailPriority)
            objMail.IsBodyHtml = CBool(IIf(BodyFormat = MailFormat.Html, True, False))

            If Attachment <> "" Then
                objMail.Attachments.Add(New Net.Mail.Attachment(Attachment))
            End If

Wow - that's cost me about 5 days in dev time!

Ok - thanks for that Cathal - I didn't think the 4.3.4 SendMail method had changed... that means it should work after I upgrade!

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Scheduler Improvement on DNN 4.3.4Scheduler Improvement on DNN 4.3.4


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