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 );
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.