Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup sms api gateway in addition to emails #1538

Closed
xamyp opened this issue May 19, 2024 · 1 comment
Closed

Setup sms api gateway in addition to emails #1538

xamyp opened this issue May 19, 2024 · 1 comment

Comments

@xamyp
Copy link

xamyp commented May 19, 2024

Good morning,

I saw that there were already closed topics for this type of request. I'm new to php and I would like to add my php code to send an SMS when an appointment is booked or modified or deleted. I have already set up SMTP and it works.

For my tests I use this:
curl -X "POST" "https://rest.nexmo.com/sms/json" \ -d "from=Vonage APIs" \ -d "text=My message" \ -d "to=33601020304" \ -d "api_key=123456789" \ -d "api_secret=xxxxxxxxxxxxx"

And I would like to do things well but I don't really know the php programming language.
I retrieved the variables I wanted to put in my message:

  • <?= e($customer['phone_number']) ?>
  • <?= e($appointment_link) ?>
  • <?= format_date_time($appointment['start_datetime']) ?>
  • <?= format_date_time($appointment['end_datetime']) ?>
  • <?= e($service['name']) ?>

For the following result:
Your appointment: From <?= format_date_time($appointment['start_datetime']) ?> to <?= format_date_time($appointment['end_datetime']) ?> for <?= e($service['name']) ?>
To modify your appointment: <?= e($appointment_link) ?>

Thanks a lot for your help.

@alextselegidis
Copy link
Owner

Hello!

Thanks for submitting this.

I trust this might be a helpful feature, but it is offered as part of the Premium Services:

https://easyappointments.org/get-a-free-quote

Will therefore skip (at least for now).

Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants