• Resolved spikelms

    (@spikelms)


    Hello,
    I am having an issue when the notification emails are sent out from my site. We currently have our multisite website hosted with Azure who makes us have our site live at mysite.azurewebsites.net and use WP domain mapping to forward to http://www.mysite.com.

    The issue is that when our Subscribe2 email template sends out a notification the {PERMALINK} and {BLOGLINK} settings show the links as mysite.azurewebsites.net and not http://www.mysite.com

    Is it possible to update the plugin someplace to fix this?

    https://wordpress.org/plugins/subscribe2/

Viewing 1 replies (of 1 total)
  • @spikelms,

    I’m not sure there is a way in PHP to detect if domain mapping is being used so any fix would rely on a user knowing that a entering some configuration data. Perhaps a quicker fix is to filter the content of the email using the existing Subscribe2 API.

    You’ll need to create a plugin with some code something like this:

    function s2_link_filter($message) {
        $message = str_replace('mysite.azurewebsites.net', 'mysites.com', $message);
        return $message;
    }
    add_filter('s2_html_email', 's2_link_filter');
    add_filter('s2_plain_email', 's2_link_filter');
    add_filter('s2_digest_email', 's2_link_filter');

Viewing 1 replies (of 1 total)
  • The topic ‘Azure hosting and domain mapping’ is closed to new replies.