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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Everything except action.forward token working. Putting mails on hold, odd...
Pages: [1]

Author Topic: Everything except action.forward token working. Putting mails on hold, odd...  (Read 2969 times)

ngingras

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Everything except action.forward token working. Putting mails on hold, odd...
January 25, 2010, 07:48:14 am
Hi,

I have CiviMail configured and working absolutely BEAUTIFULLY.

However, I have a problem with the {action.forward} token. When a mailing recipient clicks this link, he or she is prompted to enter up to 5 addresses. If the user enters "foo@bar.com" and clicks submit, a contact record is created for "foo@bar.com" but no mail is sent. The address is put on hold, and the mail report registers this as a bounce.

I was monitoring the logs (/var/log/mail.log) during a few tests and there is no evidence that Civi is even trying to send mail to foo@bar.com.

The only way the action.forward token actually works is if the target address is already a contact in CiviCRM AND did not already receive the mailing.

Help!


Cheerio,

-n8

ngingras

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Everything except action.forward token working. Putting mails on hold, odd...
January 26, 2010, 08:17:01 am
I forgot to mention that my CiviCRM version is 3.0.4, and Drupal is 6.15. I'm using an external server for SMTP which is working for everything else just fine.

-n8

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: Everything except action.forward token working. Putting mails on hold, odd...
January 26, 2010, 09:12:35 am

i tried this locally and it worked.

I suspect this has something to do with the SMTP connection and the SMTP server rejecting the email because of a bad FROM/Reply-To that it does not recognize / accept

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

ngingras

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: Everything except action.forward token working. Putting mails on hold, odd...
January 26, 2010, 09:17:30 am
The SMTP server would log this error if that were the case. You would see something indicating that the message was dropped or deferred because of an unknown sender. However the sender address never shows in the mail server's logs (regardless of whether sendmail or external SMTP is used.)

Furthermore, while CiviMail indicates a bounce, no meaningful reason is given. There is nothing to suggest this is the SMTP server's fault.

Besides it does send forwards correctly ONLY if the intended forward recipient is already in CiviCRM, and not a member of the group that received the mailing in the first place.

-n8

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: Everything except action.forward token working. Putting mails on hold, odd...
January 26, 2010, 09:24:26 am

your best bet would be to add some debugging code to:

CRM/Mailing/Event/BAO/Forward.php, function forward, approx line 174 is where the mailing is sent.

u'll need to be familiar with php to add some debug statements to track down what is happening and why. please do let us know what was happening when u figure it out

thanx

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

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Everything except action.forward token working. Putting mails on hold, odd...
March 05, 2010, 04:24:48 pm
See issue CRM-5917, which appears to be related to this post. I've added comments there about the behaviour I am seeing, and how to reproduce the problem.

jubex

  • Guest
Re: Everything except action.forward token working. Putting mails on hold, odd...
March 05, 2010, 08:53:31 pm
I can't seem to get the forward function to send any emails. If the function needs to create a new contact, it does so and the email always bounces.

I thought it might have something to do with missing data about the contact record, but ... if a user enters an email address into one of the forward email fields that is already a contact in the database, the email always bounces (even when the email sends to that particular email just fine on the initial send).

For clarity, here was the scenario. I sent one email to a group of four emails (foo1@bar.com, foo2@bar.com, foo3@bar.com, and foo4@bar.com), and they all delivered just fine. I then deleted the fourth email address (foo4@bar.com) from the CiviCRM database. Next, I sent another email to just the first of the original four (foo1@bar.com). That user then attempted to forward to the remaining three (foo2@bar.com, foo3@bar.com, foo4@bar.com). The fourth email address was reentered into the database as a contact. Reporting on the email only registered foo4@bar.com as an attempted forward (i.e., the report says there was 1 forward). Also reports this as a bounce, every time. The other two emails (foo2@bar.com and foo3@bar.com) aren't sent to, nor are they put on hold. They just seem to be ignored.

Could this possibly have something to do with a drupal multi-site installation? CiviCRM is installed on only one of the domains and the codebase is stored in the sub-site's modules folder. Or is this related to something else entirely?

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Everything except action.forward token working. Putting mails on hold, odd...
March 08, 2010, 03:48:13 am
My guess is that (a) the forward function does not forward to addresses who already received that mailing and (b) we have an issue with sending to contacts that have no name (only email address). The former seems like a sane design choice, the latter is being worked on and we hope to fix it for the upcoming CiviCRM 3.1.4 release.
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.

sanook

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 1
Re: Everything except action.forward token working. Putting mails on hold, odd...
February 22, 2011, 07:52:24 am
Did anyone ever figure this out?

I am having the same issues running 3.3.5  (contact being created, address ending up on hold)

I wish I would have known this was not working as I have been using it for a long time to try to build awareness about a conservation campaign.

Can anyone provide any insight?  Please help!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Everything except action.forward token working. Putting mails on hold, odd...

This forum was archived on 2017-11-26.