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) »
  • Mailer without tokens
Pages: [1]

Author Topic: Mailer without tokens  (Read 2100 times)

mac

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
Mailer without tokens
September 21, 2009, 07:08:54 am
I'm trying to create a mailer and I'm getting this message:

Quote
The following errors were detected in text message:
    * This message is missing a required token - {domain.address}: Displays your organization's postal address.
    * This message is missing a required token - {action.optOut}: Creates a link for recipients to opt out of receiving emails from your organization.

It's not a newsletter, but a "first contact" email, so our marketing guy is confident that we don't need an opt out etc.

How can I send a mailer without the opt out and address?

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: Mailer without tokens
September 21, 2009, 08:19:18 am

Those are required by the CiviMail process. You will need to modify the code to remove that rule

CRM/Utils/Token.php, function requiredTokens

does not hurt to allow the user to decide if they dont want to receive such mail from your org.

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

mac

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
Re: Mailer without tokens
September 21, 2009, 08:27:31 am
I'll try to take a look. Thank you.

Our marketing guy says that opt outs are only necessary if you are sending email on a regular basis. If you send an email, it's not necessary.

We (as every company I guess) don't want people to skip out. Especially not on the first contact. Regular newsletters of course are another thing.

dharmatech

  • I post frequently
  • ***
  • Posts: 280
  • Karma: 53
    • dharmatech.org
Re: Mailer without tokens
September 21, 2009, 08:30:15 am
Hi Mac. Instead of using CiviMail for these first contacts, you can use the regular "send email to contacts" feature which does not require those tokens. This feature is intended for the casual contact not for regular newsletters so should work fine for you.

It doesn't report on your mailings but you can still use other tokens for contact info.

Hope this helps
tony

p.s. this feature exists in the "more actions" menu after you run a search.
http://dharmatech.org
oss@dharmatech.org
801.541.8671

mac

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
Re: Mailer without tokens
September 21, 2009, 08:58:20 am
Hi Tony,

Thanks for the hint. That's exactly what I have been looking for! :)

The down-side of this is unfortunately the handling of bouncing emails. They come to from: email address. Is there a descent way to collect these emails and bulk delete them from the database? Is there some kind of import functionality that actually deletes contacts? Or would you combine this somehow into a process of importing, tagging & deleting?


mac

  • I post occasionally
  • **
  • Posts: 71
  • Karma: 0
Re: Mailer without tokens
September 25, 2009, 09:10:14 am
I'm trying to use the "Send mail" functionality to send emails to a selected members of a group. The result is a white screen with the URL http://mydomain.com/civicrm/group/search and I see no indication that any emails were sent:

-) The CiviCRM.log does not contain any entries
-) The server error log files do not contain any entries
-) The table "civicrm_activity" contains two (!) entries
-) The table "civicrm_activity_target" does not contain any entries

How to figure out what is going wrong?!

EDIT: Please also note that CiviCRM creates two activities (with an approx. difference of 1min) each time I click the "send" button.
« Last Edit: September 25, 2009, 09:44:17 am by mac »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Mailer without tokens
September 29, 2009, 06:45:56 am
Quote from: mac on September 25, 2009, 09:10:14 am
How to figure out what is going wrong?!

Enable debugging and backtrace in Administer CiviCRM → Global Settings. Also, check the webserver’s logs, as this is where PHP errors land if they’re not output to the screen.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mailer without tokens

This forum was archived on 2017-11-26.