问题
I am new to programming in any field. Just started I have a task for adding a subscribe button.
What I have:
- A Google group mailing list
- A Website
- I don't have a Google App engine.
Requirement: Very simple - A Subscribe button in the website which can auto subscribe people to the mailing list.
Language: PHP, HTML. Don't ask me about the coding, I suck now but not for long.
回答1:
Emails sent to your-group+subscribe@googlegroups.com will auto-subscribe the sender to the group. So you could simply have a HTML link like:
mailto:your-group+subscribe@googlegroups.com?subject=Subscribe%20to%20Your%20Group
it requires a few extra clicks by the user but it's a fairly automated way of handling the subscribes, it ensures you've got the users true email address (because they're sending the email from it) and it requires no backend programming work on your part.
回答2:
<h3>Subscribe to <?= $group_title ?></h3>
<form action="http://groups.google.com/group/<?= $group_name ?>/boxsubscribe">
<input name="email"/>
<input type="submit" value="Subscribe" name="sub"/>
<a href="http://groups.google.com/group/<?= $group_name ?>">Browse Archives</a>
</form>
With $group_title, and $group_name set accordingly. $group_name can be determined from the url when viewing your group.
来源:https://stackoverflow.com/questions/14669565/google-group-and-subscription-code