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 CiviMail (Moderator: Piotr Szotkowski) »
  • Automatically send emails to users who are added to a group
Pages: [1]

Author Topic: Automatically send emails to users who are added to a group  (Read 2153 times)

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Automatically send emails to users who are added to a group
March 31, 2008, 05:44:18 am
We would like to enroll users into an email upon signup.  we have 2 different newsletters and assign them to groups.  We would like to welcome them to the list by automatically sending them an email when they sign-up.  We would prefer to use the built in subscription mechanism because we also need unsubscribe, etc.  double opt-in is preferable but not necessary.

Is it possible to automatically trigger a welcome email when signed up to a group that has "mailing list" enabled?  Can we use the newsletter tokens to allow the user to self-manage subsciptions (ie opt-out)

thanks for any suggestions / insights.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Automatically send emails to users who are added to a group
March 31, 2008, 03:47:20 pm
You can do this using CiviMail's built-in subscribe form.... You can see an example of this (and also see the URL which displays it) on the demo. To list all Public Mailing List groups:
http://drupal.demo.civicrm.org/civicrm/mailing/subscribe?reset=1

OR, for a specific mailing list, add the group ID as in this example:
http://drupal.demo.civicrm.org/civicrm/mailing/subscribe?reset=1&gid=2

The "Subscription Confirmation Request" and the "Welcome Message" which users will receive is configure from CiviMail >> Headers, Footers, and Automated Messages. The "default" copy of each is used - so you can edit that to modify text or "tokens". On the demo, this page is at http://drupal.demo.civicrm.org/civicrm/admin/component?reset=1
Protect your investment in CiviCRM by  becoming a Member!

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Automatically send emails to users who are added to a group
March 31, 2008, 06:57:38 pm
David:

thanks for the prompt reply.  Actually we are working with Claudian on this but do not yet have a solution.

It seems that subscriptions will only support an email field, but we really need to use a profile for signup and do not want to have the user fill out a profile and then have to fill out a subscription.  Also, the custom fields we use are different depending on the newsletter they sign up for.

For example, we have 2 newsletters - weekly event emails (which are for 20-30 year olds.) and bi-annual newsletters that are for anyone.  For the weekly events we have a mandatory birthdate field, but for the other folks we also ask their mailing address so we can send them an invitation.

Perhaps, we could add to the group member options a "subscription" checkbox. It could silently call the subscription url with the email as an argument after they sign up for to a group - basically a hook to enroll them in a subscription.

Unfortunately, we are under some pressure for an immediate solution - ideally it will be contributed back.

Thanks again,

S.

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: Automatically send emails to users who are added to a group
March 31, 2008, 07:05:40 pm

This is scheduled to be fixed in 2.1, http://issues.civicrm.org/jira/browse/CRM-2861. We need to tweak and clean up the issue a bit. The basic idea is to piggyback on what we have already implemented for profiles (i.e let an user choose what groups they want to be added to)

You can get claudian and team to do this for you in 2.1 and backport it to 2.0

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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Automatically send emails to users who are added to a group
March 31, 2008, 07:13:20 pm
yes - this looks like what we need.  we are almost there ... the only question is: can civi-mail have a unique message for the group or support conditional logic in the message (ie If <group=xxx> "Welcome to weekly events" EndIF)?  The welcome message for each group is a call to action that is different depending on the group.

Will talk to Claudian - thanks!

S

BTW - would be great if you could think of an immediate work around :).
« Last Edit: March 31, 2008, 08:00:36 pm by sonicthoughts »

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: Automatically send emails to users who are added to a group
March 31, 2008, 09:56:04 pm

Sorry, there is no simple immediate workaround. this came up at the most recent training session too (and hence became an issue for 2.1)

Currently the messages dont support conditional logic. There is no plan to implement this in the short term. However the subscription form does have a token for the group name, which should be descriptive

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 CiviMail (Moderator: Piotr Szotkowski) »
  • Automatically send emails to users who are added to a group

This forum was archived on 2017-11-26.