¿ªÔÆÌåÓý

Re: Question


 

On Wed, May 22, 2019 at 04:38 PM, Marcia Hudspeth wrote:
We have the following form on our website.? I THINK this is where the notice from groups.io comes from.? Maybe not???
I cannot speculate as to what "notice from groups.io" you might be talking about here.

All that is on the post from groups.io is the person's email address.
?
Where does all the other info GO?
Based on the appearance of the form, it seems you are trying to collect new member information. Some thoughts:

1) You cannot put a web form in your groups.io wiki or on your group's home page and have it work. In most cases the form html constructs will be stripped entirely upon save; and even if it wasn't, there is no underlying server-side scripting functionality.

2) If this form resides on a different web host and you want it to send formmail to your group, the best way to do that is to set up an email integration, and send the formmail to the integration address. See?/g/GroupManagersForum/topic/29915856#15009?for more details.

3) Once your web server collects the form information (via the submit button), you have to build a message body and fill out the from/to/subject line using a server-side script before it is mailed. I'm appending a brief PHP script that I recently set up on our site to show you how this might be done.

4) For testing purposes, I suggest having PHP mail (or whatever you're using) send the formmail message to your private address until you get it looking right; and only then switch it over to the email integration address.

If you're trying to do something else, please explain.?

Regards,
Bruce

? ? ? ? ? ? //Email recipient information
? ? ? ? ? ? $recipients = array(
? ? ? ? ? ? ? ? "treasurer@...",
? ? ? ? ? ? ? ? "membership@..."
? ? ? ? ? ? );
? ? ? ? ? ? $email = $_REQUEST['email'];
? ? ? ? ? ? $msg_body = $_REQUEST['name'] . PHP_EOL . $_REQUEST['address'] . PHP_EOL . $_REQUEST['city'] . ", " . $_REQUEST['state'] . " " . $_REQUEST['zip'] . PHP_EOL;
? ? ? ? ? ? $msg_body .= $email . PHP_EOL . "Home: " . $_REQUEST['phone'] . "? ?Cell: " . $_REQUEST['cell'] . PHP_EOL . "Type: " . $_REQUEST['new'] . PHP_EOL;
? ? ? ? ? ? $msg_body .= "Astronomical League: " . $_REQUEST['league'] . PHP_EOL . "Spouse: " . $_REQUEST['spouse'] . PHP_EOL . "Comments: " . $_REQUEST['message'];
? ? ? ? ? ? //send email
? ? ? ? ? ? foreach($recipients as $to) {
? ? ? ? ? ? ? ? mail($to, "New Member Information", $msg_body, "From: webmaster@...");
? ? ? ? ? ? }
--?
The system Help is your friend.??/static/help

Join [email protected] to automatically receive all group messages.