The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
adding email to sms function - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: adding email to sms function (/showthread.php?tid=2006) |
adding email to sms function - kmielcz - May 9th, 2012 Hi Guys I signed up with sms gateway provider who allows me to send a text message to any mobile number from my email account I simply send it to any number by making up an email address like this: anynumber@my_gateway_provider.com So, is there a way of using placeholder in the email recipient's area? for example: {$ANSWER_telephone}@my_gateway_provider.com That way I could create an email template to be sent via swift mailer to an email address that is actually a phone number pulled from submitted form with "@my_gateway_provider.com" added at the end. Option 2: How about inserting php code via hooks? Gateway provider has an API for developers so that any website can send email to sms. Any ideas on how I can integrate it with formools so that it reads the number from my submitted form same as swift mailer does with emails? here is the code: PHP Code: <?php and here is an example of form I'm submitting: Code: <form method="post" action="send_sms.php"> Any suggestions would be very appreciated. Thanks Kris |