In a thread Hakan posted the following code to be added to functions.php:
wp_mail( 'firstname.lastname@example.org', 'Subject', $body );
to send an email via a phone company SMS gateway.
I need to change the address to "email@example.com" 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( $firstname.lastname@example.org', '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