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 CiviContribute (Moderator: Donald Lobo) »
  • insert joomla user's username and password into receipt email
Pages: [1]

Author Topic: insert joomla user's username and password into receipt email  (Read 2120 times)

brotherhutch

  • Guest
insert joomla user's username and password into receipt email
December 01, 2009, 07:08:43 pm
(joomla 1.5, civi 2.1) I use a contribution page to handle new joomla user registrations while setting up new civiCRM memberships, and, in the process, I would like to send an email to a new user containing their username and password, along with the "thank you for joining" message. I can easily set up the thank you email during contrib page configuration, but how would I include username/password variables? It would also be nice if the thank you email began with "Hello, first_name". If this is not possible, how are others handling this as I'm sure I'm not the only one using civiCRM to sign up new users/members.

Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: insert joomla user's username and password into receipt email
December 02, 2009, 11:20:53 am
The upcoming 3.1 release includes the ability to modify system templates used for contribution and membership receipts (along with most other system-generated emails) within the Administration user interface. Contact tokens are available and can be easily inserted in the templates to handle the "Dear {contact.first_name}" case.

I think including the Joomla user name and pw in the receipts will require custom coding - probably implementing the "token hook" to add these as tokens:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification
Protect your investment in CiviCRM by  becoming a Member!

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Re: insert joomla user's username and password into receipt email
January 25, 2010, 03:12:19 pm
Dave,

Can you point to where this customization is available?  I am running civi3.1.beta6 on drupal.  I am not seeing these options.  I tried an option in the email text of the specific contribution page, but it simply came through as: {contact.first_name}. 

I would like to add tokens to the receipt emailed when a member renews their membership.

thanks,
maria

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: insert joomla user's username and password into receipt email
January 27, 2010, 09:08:50 pm
System Workflow Message Templates - from Administer >> Configure >> Message Templates

... on the public demo, these are at:
http://drupal.demo.civicrm.org/civicrm/admin/messageTemplates?selectedChild=workflow&reset=1

UPDATE: I just found out that my post above from Dec 2 was INCORRECT. Tokens are NOT supported for System Workflow Templates - so you would have to use the postProcess hook to expose those values as Smarty Variables to the message template and then add them / reference them through the above admin UI.

« Last Edit: January 27, 2010, 09:22:33 pm by Dave Greenberg »
Protect your investment in CiviCRM by  becoming a Member!

mariagwyn

  • I post frequently
  • ***
  • Posts: 149
  • Karma: 4
  • CiviCRM version: CiviCRM 3.3.3
  • CMS version: Drupal 6.20
  • MySQL version: 5.2.14
  • PHP version: 5.0.91-50-log
Re: insert joomla user's username and password into receipt email
January 27, 2010, 09:32:55 pm
Dave,

I did find these, but when I modified I received errors.  Doesn't like civicrm tokens.  ah well.  not a priority right now but I may return to this.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • insert joomla user's username and password into receipt email

This forum was archived on 2017-11-26.