All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #205 (closed task: fixed)

Opened 9 years ago

Last modified 9 years ago

Rollback commit 1512, commit for the Newsletter module

Reported by: oyvind@… Owned by: steve@…
Priority: critical Component: Newsletter
Keywords: Cc:

Description (last modified by steve@…) (diff)

Take a rollback to the commit 1512. There are issues with the code and scheduled tasks. Here is a possible workaround:

In the class BVNetwork.EPiSendMail.Configuration.NewsLetterConfiguration change the code of the ServerUrl property:

public static string ServerUrl
                if ( HttpContext.Current != null)
                    HttpContext context = HttpContext.Current;
                    string port = context.Request.ServerVariables["SERVER_PORT"];
                    if (port == null || port == "80" || port == "443")
                        port = "";
                        port = ":" + port;

                    string protocol = context.Request.ServerVariables["SERVER_PORT_SECURE"];
                    if (protocol == null || protocol == "0")
                        protocol = "http://";
                        protocol = "https://";

                    string servername = context.Request.ServerVariables["SERVER_NAME"];

                    return protocol + servername + port;

                return EPiServer.Configuration.Settings.Instance.SiteUrl.OriginalString.TrimEnd('/');

Change History

comment:1 Changed 9 years ago by steve@…

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

changeset:1512 was rolled back in changeset:1534. Closing ticket.

Note: See HelpUser/Tickets for help on using tickets.