Menu

Email: can the user pick multiple recipients?

Help
Steve
2009-02-08
2013-06-03
  • Steve

    Steve - 2009-02-08

    Hi;

    I'm new to phpFormGenerator.   I installed it into a linux box on my web host through fantastico.

    Where do I specify my hosts outgoing email server?   Do I need to?   I generated an email form, get no error messages, but no email either.

    Lastly, is it possible to generate an email form where the user can specify who gets the email and send that email to multiple addresses?

    Thanks in advance for this information

     
    • Jay

      Jay - 2009-02-09

      "Lastly, is it possible to generate an email form where the user can specify who gets the email and send that email to multiple addresses?"

      I am interested in finding out how to do that part ;) Been trying for days now and no go. Any tips on how to do this from you PHP gurus =P

       
      • TNTEverett

        TNTEverett - 2009-02-09

        It is possible but not recommended. 

        The first field in the mail function takes the "send to" address.  Something like this works:

        mail($_POST['field_3'],"phpFormGenerator - Form submission","Form data:
        Name: " . $_POST['field_1'] . "
        Phone Number: " . $_POST['field_2'] . "
        E-Mail Address: " . $_POST['field_3'] . "
        I am Interested in: $field_4_opts
        powered by phpFormGenerator.
        ");

         
    • TNTEverett

      TNTEverett - 2009-02-09

      You do not have to specify the mail server. 
      Not getting the email should not be an issue.  Have your host send you a copy of the server error, and mail logs. 
      It is possible to do anything you want but adding the ability for a form user to specify email destination addresses will open your form to major abuse.  I don't recommend it but it is your form. 

       

Log in to post a comment.