[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] subscribe to mailing list web form question



"Chris Womack" <Chris.Womack@xxxxxxxxxx> wrote:
> Has anyone setup a web form to add users to the majordomo mailing list
> program on the RaQ4?

Yes.  And it's fairly trivial using an HTML form and PHP (or Perl) to send
an email to majordomo.  Here's some partial code from a page I wrote using
PHP in the long long ago.

// $majordomo set in form to email address of mj.
//
if ( ( $action == 'subscribe' || $action == 'unsubscribe') &&
$valid_address )
{
   // Next line not needed.
   $to_name = 'Majordomo';
   $to_address = $majordomo;
   // Next line not needed, but existed for testing before sending to actual
mj address.
   $subject = "Online Request Made From IP Address $REMOTE_ADDR";
   $message_body = "$action $list";
   mail( $to_name. " <" . $to_address . ">", $subject, $message_body, "From:
$email_address" );
   $confirmation = "Thanks for letting us know you're interested!  Your
address has been added to our list.";
}

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/