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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Send email to contact using template
Pages: [1]

Author Topic: Send email to contact using template  (Read 2731 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Send email to contact using template
May 07, 2008, 10:41:38 am
I just tried sending an email to a contact and selected a predefined template for the content. It populated the "Message" box with source code from what looks like the current webpage -- not with the template content.

I can copy the template content to the Message field (including tokens) and it works correctly. But you're not able to simply select the template from the dropdown.

I can't test it on the Sandbox as email functions are disabled. Can anyone else confirm this behavior?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Send email to contact using template
May 07, 2008, 11:21:41 am
Hi,
   I created a new message template with title/subject and a simple text message. Then, I located my record, selected the template and sent an email to myself. I did not experience the behavior you describe. Everything worked fine. We are running CiviCRM 2.0.2 (13874).

Cynthia

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Send email to contact using template
May 07, 2008, 11:52:45 am
Hmmm... I just tried this on another install and got the same behavior.

Are you running Civi on Drupal or Joomla?
I'm on Joomla -- maybe it's a CMS-specific issue.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Send email to contact using template
May 07, 2008, 12:00:17 pm
Hi Brian,
   We are running Drupal 5.6. Let me know if you want me to try anything else.

Cynthia

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Send email to contact using template
May 07, 2008, 02:30:47 pm
e-mail templates haven't been working for me either.

- Drupal 5.6 or 5.7 (can't quite remember). Civi 2.0.1

Here's what I get instead of the template in the message body


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <base href="http://classes.org.nz/sites/all/modules/civicrm/" />
  <style type="text/css" media="screen">@import url(http://classes.org.nz/sites/all/modules/civicrm/css/civicrm.css);</style>
</head>

<body>

<div id="crm-container" lang="en" xml:lang="en">

<div class="messages status">
  <dl>
  <dt><img src="http://classes.org.nz/sites/all/modules/civicrm/i/Error.gif" alt="unrecoverable error" /></dt>
  <dd>
      Sorry. A non-recoverable error has occurred.      <p> is not of the type Integer</p>
      <p><a href="http://classes.org.nz/" title="Main Menu">Return to home page.</a></p>
  </dd>
  </dl>
</div>

</div>
</body>
</html>
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Send email to contact using template
May 07, 2008, 03:13:31 pm
Yes --- that is what I'm getting.

The templates are working correctly from the UpdateMembershipRecord.php script, including token value replacements (a fix from 1.9).

I'm getting the behavior in both the Send Email from contact(s) and also in CiviMail.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Send email to contact using template
May 07, 2008, 04:11:54 pm
I was able to reproduce this on the Joomla sandbox. I thought it was an issue unique to Joomla, but I just noticed that you (Eileen) are using Drupal. I'll try to reproduce on Drupal sandbox too.

I've filed an issue: http://issues.civicrm.org/jira/browse/CRM-3089

I thought the issue was with CRM/Mailing/Form/Upload.php (at least on the CiviMail side of things), but I tried gradually rolling back to the 1.9 version and the issue repeats (and I'm pretty confident it was working correctly in 1.9). Maybe a dojo issue -- looks like that's what is used to populate the text area field.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Send email to contact using template
May 08, 2008, 03:37:58 am

this is now fixed (along with a few other ajax thingees that were broken in joomla)

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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Send email to contact using template
May 08, 2008, 10:20:07 am
Great. Will the changes be included in 2.0.4+ or for 2.1?

Thanks,
Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

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: Send email to contact using template
May 08, 2008, 11:54:47 am

they will be part of 2.0.4. the fix is fairly easy, so u can check and patch your install here:

http://fisheye.civicrm.org/changelog/CiviCRM/branches/v2.0?cs=14387

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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Send email to contact using template
May 09, 2008, 05:39:42 am
Excellent. Just plugged them in and it seems to work perfectly.
Thanks!
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Send email to contact using template

This forum was archived on 2017-11-26.