CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Newsletter signup
Pages: [1]

Author Topic: Newsletter signup  (Read 1052 times)

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Newsletter signup
August 28, 2009, 04:44:18 am
I am looking for some advice on how to setup the following.  Currently contacts in the 'newsletter' group receive a paper newsletter in the mail.  We want to have a page available on the site where people can opt for a newsletter by email instead of by snail mail.  So it seems like I need to do this:

Accurately identify the current contact record
Remove from group 'newsletter'
Add to group 'enewsletter'

I am not sure how to accomplish the first item because in general individuals are assigned to households, and the household receives the newsletter.  The person visiting might be Jim Jones, but Jim Jones is not a member of the 'newsletter' group, the 'Jones Household' is.  If I can't remove the snail mail subscription then they will get both and we have not saved any postage which is the point of the exercise.

The only thing I can think of involves triggering an email to the admin who will have to manually sort it out, but I would rather find an automatic solution if possible.

How would you do this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Newsletter signup
August 28, 2009, 09:02:35 am

you can potentially do this by implementing a postProcess hook (note php and potentially SQL experience needed)

Since the person jim jones is not signed up for newsletter directly, you will probably need to introduce your own form element (checkbox) that allows him to sign the household for an email subscription?

will all members of the household get the email? Seems like a fair amount of this can be automated custom profile code. Ping us on irc if u wanna chat about potential choices

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Newsletter signup

This forum was archived on 2017-11-26.