• Resolved hasingha

    (@hasingha)


    Hi, I want to send SMS to the user when the user enters a mobile number in phone field of Gravity forms.

    I searched and found

    add_action( 'gform_after_submission_5', 'after_submission', 10, 2 );
    global $sms;
    $sms->to = field[id] //phone no. field for form id 5
    $sms->msg = "Hello World!";
    $sms->SendSMS();

    I tried to run the above code. But failed.
    Can you help please.

    https://ww.wp.xz.cn/plugins/wp-sms/

Viewing 1 replies (of 1 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hi, I’m sorry for delay reply to you.
    First of all, you should get all input parameter with $_REQUEST and use on the function.

Viewing 1 replies (of 1 total)

The topic ‘Send SMS to End User using Gravity Forms’ is closed to new replies.