Google Group and Subscription code

天涯浪子 提交于 2019-12-11 10:34:19

问题


I am new to programming in any field. Just started I have a task for adding a subscribe button.

What I have:

  1. A Google group mailing list
  2. A Website
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!