Forums

Subscribe to Google Groups

chrono1 04 May, 2008
My club uses Google Groups as the email list manager. The standard way to subscribe is to send an email from the address the person wishes to subscribe with, to an address :
[email]GROUPNAME-subscribe@googlegroups.com[/email]

Subject doesn't matter, content doesn't matter.

I set the form to Yes to send email, and put this code in the Before Sending Email form code
$_POST['from'] = $_POST['youremail'];
$_POST['recipient'] = $_POST['groupname']."-subscribe@googlegroups.com";


I played around with this line too, but I think if I use this, I need to turn off email:
mosMail($from, $fromname, $recipient, $subject, $html_message, true, NULL, NULL, NULL, NULL, NULL );


Reason I'm asking is I'm lazy, I'm not a programmer, and I hope someone can shortcut this whole thing for me. I'm not exactly sure how the mosMail thing works, nor the $_POST. Thanks in advance.

PS - I actually had it work one time, but Google delayed the confirmation email, I made changes thinking it didn't work, and never knew which changes I made actually worked!
Max_admin 04 May, 2008
Hi,

Make a hidden filed in ur form code and fill it with the group email, and then add this field name to the "email field" in the "special fields" tab, in the "from field" at the same tab, write the field name where the user will write his email address, you must have a valid from name too!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
chrono1 05 May, 2008
Sorry. I didn't include one other requirement. I have a pulldown to pick the group, so it's not that easy.
<input type="hidden" name="recipient" value="" />
<input type="hidden" name="from" value="" />
<input type="hidden" name="html_message" value="" />

  <label>SUBSCRIBE:<br />
  Your Email
  <input name="youremail" type="text" id="youremail" class="required validate-email"/>
  </label>
<br />
    <label>Group
    <select name="groupname" id="groupname">
      <option value="hbc-general">General</option>
      <option value="hbc-tandem">Tandem</option>
      <option value="hbc-ultra">Ultra</option>
    </select>
    </label>
<br />
Type the characters:{imageverification}
<br />
<input type="submit" name="Submit" value="Submit" />


The destination email address needs to be "hbc-general-subscribe@googlegroups.com" with the source address of the subscriber. I need to append the value from the pulldown to "-subscribe@googlegroups.com"
Max_admin 05 May, 2008
Then use a small JS to write this value to the hidden field based on the dropdown choice!😉

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.