Support

Account

Home Forums General Issues Email sent when connect button pressed Reply To: Email sent when connect button pressed

  • Just added this and am now waiting for my email to come through.. Fingers crossed:

    $to = $profile_user->user_email;
    			$subject = 'Design4Health User Connection';
    			$body = 'Hi '.$profile_user->nice_name.',<br/><br>you have just been connected by '.$current_user->nice_name.' on Design4Health.<br/><br>Please log in to see your connections.<br/><br>If you would like this connection to be removed. Please contact [email protected] for further assistance.<br/><br>Kind Regards<br/><br>Design4Health' ;
    			$headers = array('Content-Type: text/html; charset=UTF-8','From: My Site Name <[email protected]>');
    			wp_mail( $to, $subject, $body, $headers );