• Resolved sl_shah

    (@sl_shah)


    Hi,

    Its a great tool, thanks for sharing.

    I have written a customized PHP code that I want to run after data is submitted to database. Basically, based on user data submission I want to create some rtf file and send to user as attachment on welcome mail. How can I achieve this.

    https://ww.wp.xz.cn/plugins/form-maker/

Viewing 1 replies (of 1 total)
  • Plugin Contributor webdorado

    (@webdorado)

    Dear sl_shah,

    Please be informed, that in form-maker\frontend\models\FMModelForm_maker.php file, around 1975 line there’s this code:

    $send = wp_mail(str_replace(‘ ‘, ”, $recipient), $subject, stripslashes($body), $headers, $attachment_user);

    where $attachment_user are the files, which are being sent to the user. It is an array, so you can push the necessary data to it.

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Add PHP Code after Submit’ is closed to new replies.