Appnitro Software Forums » MachForm 2

Passing the recipient address with the URL


  1. zero
    Member

    I want to use a form to send it to variable recipients (only one per form). Is there an easy way to overwrite the default recipient by one passed with an URL parameter (e.g. machform.php?id=1&recipient=foo@bar)? Or do I have to change the PHP scripting in order to pass my own recipient and to overwrite the one I choose during form setup?

    Posted 2 years ago #
  2. Not clear as to what you want. You want to send an email to an address based on what the user selects, or do you want to just send an email to someone when a user fills in a form?

    You can enter an email recipient in each form. With each form you just enter the email address you want it to go to. You can send it just to yourself (or whomever) and/or you can send a "response" to the person that sent the email.

    Machform is setup to send an email to the form owner and to whomever filled out the form as a response. You could also use the "response" form to send an email to an employee or group of employees.

    Hope this helps.

    Saghalie

    Posted 2 years ago #
  3. zero
    Member

    Thanks Saghalie. I'll try to be more detailed with what I need. The company I want to use the form for has approx. 100 employees. Each of them is the contact adress for one or more pages on the corporate website. Thus every page on the site contains a section with the name, phone number an email adress of one of those workmates. I want those email adresses to be passed to a contact form (the contact form is always the same), so that the link at the page where foo1@bar is in charge with calls the form with foo1@bar as recipient adress the form output shall be sent to, the page where foo2@bar is in charge with calls the form with foo2@bar as recipient adress the form output shall be sent to etc.

    There is one more thing I would like to do, but I guess I can do this by modifying the PHP coding: I'd like to pass the recipient adress as 'machform.php?id=1@recipient=foo1' and add the recipients domain (always the same) during script processing so that the email adress is cloacked at the website in order to prevent adress harvesting. If no $GET['recipient'] is passed at all, the form will stop proceeding as it obviously was not called the way it should have been.

    Hope this was somewhat more understandable.

    Posted 2 years ago #
  4. Hmm.. how about this:
    http://www.appnitro.com/forums/topic/email-from-a-drop-downlist?replies=9


    MachForm Founder

    Posted 2 years ago #

RSS feed for this topic

Reply