• oavs

    (@oavs)


    Hi,

    I wanted to customize the email sent.
    Basically I want to insert their website URL in the body of the email. I tried but not showing. You can see the URL insert at the end of the message text << . “WP Updates Notifier: Updates Available @ %s” , “wp-updates-notifier”, site_url())); >>

    Any ideas how to. I am not a PHP coder so this is all I can do with it but not much happening.

    Your help is greatly appreciated.

    Here it is:

    public function send_test_email($settings_errors) {
    
                if( isset($settings_errors[0]['type']) && $settings_errors[0]['type'] == "updated" ) {
    
                    //self::send_notification_email(__("This is a test message from WP Updates Notifier.", "wp-updates-notifier"));
    //OAVS Test Notification email sent content begin
    				self::send_notification_email(__(
    "Dear Customer,\n\nThis is a message from xxx regarding your current %s website updates.\nThis is an automatic notification to inform you that you have following updates. These updates are optional and you do not need to take any further action if you wish to do so.\n\nWill my website still work or function without these updates? :\nYour website will work and function as normal and you may continue to use and carry out your regular page updates. We can not be one hundred percent sure that it will be in the future as the internet thecnology is changing all the time. Updates is one way to insure that your website is up-to-date.\n\nWill I have problems later?: \nAgain we cannot be absolutely be sure of this now. Having your websites with up-do-date code and current internet technology will later reduce costly major updates.\n\nOptional updates can be managed by xxxx. Please see fees below.\n\nWebsite 1-10 Plugin updates: $xx.00 per incident.\nWebsite Theme updates: $xx.00 per incident.\nAdditionally we will re-check your site security settings.\n\nIf you would like us to make these upgrade/s as per this email, please click the link below to order this upgrade service.\n\nIf there is anything else we can help you with please let us know.\n\nSite Administrator\n\nxxxxx xxxxxxx\nxxxx xxxxxxx Pty Ltd trading as" . "WP Updates Notifier: Updates Available @ %s" , "wp-updates-notifier",  site_url()));
    //Test Notification email sent content end
                }
            }

    https://www.ads-software.com/plugins/wp-updates-notifier/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oavs

    (@oavs)

    Not to worry . I figured it out

    Thread Starter oavs

    (@oavs)

    Actually this only works if the user is logged in. I need user’s name in the email regardless if /she logged in or not.

    Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom email content help’ is closed to new replies.