Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Scheduler Improvement on DNN 4.3.4
Previous Previous
 
Next Next
New Post 8/9/2006 2:26 PM
User is offline Clement Wong
4 posts
10th Ranked


Scheduler Improvement on DNN 4.3.4 

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 5:11 PM
User is offline cathal connolly
2757 posts
www.cathal.co.uk
5th Ranked










Re: Scheduler Improvement on DNN 4.3.4 

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

 
New Post 8/28/2006 2:04 PM
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Re: Scheduler Improvement on DNN 4.3.4 
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


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 8/28/2006 4:04 PM
User is offline cathal connolly
2757 posts
www.cathal.co.uk
5th Ranked










Re: Scheduler Improvement on DNN 4.3.4 

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

 
New Post 8/28/2006 4:31 PM
User is offline Rodney Joyce
1664 posts
www.smart-thinker.com
5th Ranked




Re: Scheduler Improvement on DNN 4.3.4 
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!

Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Scheduler Improvement on DNN 4.3.4
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP