In a thread Hakan posted the following code to be added to functions.php:
wp_mail( 'email@example.com', 'Subject', $body );
to send an email via a phone company SMS gateway.
I need to change the address to "firstname.lastname@example.org" where "phone" is the phone number entered by the client in Appointments+ when they made the appointment.
I have tried changing it to
wp_mail( $email@example.com', 'Subject', $body );
but that does not work. I am not sure if $phone is the right variable. How do I change the code to do this? TIA, Mike