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 Profiles (Moderator: Dave Greenberg) »
  • Using Profiles for Subscription to Group, but No Confirmation Email Sent
Pages: [1]

Author Topic: Using Profiles for Subscription to Group, but No Confirmation Email Sent  (Read 4735 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Using Profiles for Subscription to Group, but No Confirmation Email Sent
December 21, 2009, 02:35:23 pm
This one Drupal site + CiviCRM is giving me a problem when a user subscribes to a mailing list.  It says that a email has been sent successfully upon submission of form.   Contact is added to the group, but the confirmation email never shows up.

Here is what I have tried:
1. SMTP email configured properly, test email sent and received
2. confirmed that Cron running successfully every 5 minutes
3. Junk mail folder checked and rechecked, it never arrived, multiple different emails attempted, none arrive
4. The same system/setup works fine on other sites
5. No errors in the server error log
6. CiviCRM debugging on, shows no errors

Is there some other kind of configuration I am missing here, to get this to work... Any ideas?

How do I debug something that doesn't work but doesn't show any errors?

Here have a try yourself, this is the live URL:   Did you get the confirmation email?
http://www.nscss.org/civicrm/profile/create?reset=1&gid=39
or
http://www.nscss.org/civicrm/profile/create?reset=1&gid=38
« Last Edit: December 21, 2009, 02:39:39 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: Using Profiles for Subscription to Group, but No Confirmation Email Sent
December 21, 2009, 05:45:47 pm

1. enable mail logging and check if civicrm does try to send it, check:

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Debugging

for details on how to do so

2. if civicrm does then enable smtp debug logging and check there

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

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Using Profiles for Subscription to Group, but No Confirmation Email Sent
December 21, 2009, 10:09:55 pm
Hi,

Looking at the profile
1. There is no Group Field in the Profile.
 
2. Profile Advanced Settings =>
    i.  Add new contacts to a Group? (Group is selected Here )
    ii. Notify when profile form is submitted?  Notification email is given

The above combination only send notification email and contact is added to Group. (email not sent to end user )

For Sending the Subscription email to End User, You have to add Group Field in the Profile.
[
Group must be of Mailing type , When user select group, an email sent to the user for confirmation. once user confirm the group Subscription by clicking the link present in the email. Contact is added to that group.

 
If it's not of mailing type, contact is directly added to group. (email not sent to end user for confirmation )

]

Hth
Sunil




« Last Edit: December 21, 2009, 10:17:28 pm by Sunil »
The community around a product more important than the product itself?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Using Profiles for Subscription to Group, but No Confirmation Email Sent
December 28, 2009, 11:33:16 am
Sunil,

Thank you for your response.  However, I believe that you are incorrect.  Group doesn't have to be included as a field in the profile for a confirmation email to be sent.  Here is proof, another site of mine

https://www.upstreampublichealth.org/help/network

As you can see, the confirmation email is sent perfectly, with no group in the profile fields.

As a comparison, both sites run CiviCRM 3.0.3 and are actually run on the same hosting service as well.

With the previous example that is not working (nscss.org) CiviCRM claims that it IS sending a confirmation email when in fact it is not.  I will use Lobo's method to find out why, and let you know the result.  Thanks!

Try CiviTeacher: the online video tutorial CiviCRM learning library.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Using Profiles for Subscription to Group, but No Confirmation Email Sent
December 29, 2009, 05:13:34 pm
Thanks for your help Lobo and Sunil.  I used the debug methods.  There were no errors, yet confirmations were not sent when SMTP was the selected mail method for CiviCRM.   Other email actions such as "Save SMTP settings and Send Test" as well as CiviMail mass mailings worked with SMTP.

When sendmail was selected as the email send method, confirmations emails started working.  CiviMail and "Save and Test SMTP Settings" also work, so sendmail could be our work around.  

Interestingly, I found no errors ever in CiviCRM backtrace or civicrm mail log or in Apache logs in any of these circumstances.  

With the help of our sysadmin, we narrowed the culprit to SMTP and the return-path of the email header.

Compare these two emails.  The most noticeable differences that i see are:

1. the use of double quotes in the From: line with the confirmation email
2. the "confirmation" email has a return path of do-not-reply@

ROOT CAUSE:
We had a mailbox for do-not-reply setup on our server but it was set to "bounce" instead of "ignore".  Setting to "ignore" got SMTP working for confirmation emails.  Not sure if anyone has had this problem, but its worth noting in documentation if it is not already?

Added to the Documentation for 3.1 here

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Header%2C+Footer%2C+Automated+Messages

Works with SMTP on our server:
Code: [Select]
To: xxxxx@korlon.com
From: "Philip Small, NSCSS Secretary" <xxxxx@nscss.org>
To: "NSCSS Website Admin"<xxxxxx@korlon.com>
Subject: Test for SMTP settings

SMTP settings are correct.

Doesn't work with SMTP on our server:
Code: [Select]
To: xxxxx@gmail.com
MIME-Version: 1.0
Subject: Subscription Confirmation Request
From: "\"Philip Small, NSCSS Secretary\"" <xxxxx@nscss.org>
To: xxxxx@gmail.com
Reply-To: civimail+c.xxxxx@nscss.org
Return-Path: do-not-reply@nscss.org
Content-Type: multipart/alternative;
        boundary="=_ff7f642fdcc6fdcc0be49f3503f84f44"

--=_ff7f642fdcc6fdcc0be49f3503f84f44
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"

You have a pending subscription to the Test Mailing List mailing list. To confirm this subscription$
--=_ff7f642fdcc6fdcc0be49f3503f84f44
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"

« Last Edit: December 30, 2009, 02:55:05 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

tgoorden

  • Guest
Re: Using Profiles for Subscription to Group, but No Confirmation Email Sent
January 02, 2010, 09:34:29 am
I'm having a very similar problem, most likely the same issue (CiviCRM 3.0.1+drupal).

When using a profile form (in Drupal), the submission only works partly:
- A record is created, in the group as specified by the profile.
- A notification mail is sent correctly (if specified in the profile, it actually doesn't impact the issue at all if you leave it out)
- The user however does not get a confirmation mail, instead he/she gets the following error message:
"We had a problem processing your subscription request. You have tried to subscribe to a private group and/or we encountered a database error. Please contact the site administrator"
This error traces back to Subscribe.php, including the missing ".", but it seems like a very generic way of handling errors. Enabling debugging and stacktraces give nothing new.

Other observations:
- I'm using sendmail instead of smtp. This would seem to rule out an smtp problem.
- Entering the form while logged in as admin does not generate a message (or a confirmation mail).

Looking at the code itself, it seems that this error message would show up whenever the subscribe(group_id, email) function returns null. Weirdly enough all the 4 "return null;" statements in that function occur before the actual save() call, so I don't understand how a record even gets created.  ??? The code just doesn't make sense.


tgoorden

  • Guest
Re: Using Profiles for Subscription to Group, but No Confirmation Email Sent
January 02, 2010, 09:41:09 am
OK, setting the group to "Public" helps apparently and seems to be the requirement to check for (in my case).

ryanpitt

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Using Profiles for Subscription to Group, but No Confirmation Email Sent
January 30, 2010, 04:19:35 am
Thank you all for this discussion. It has helped me get the email notifications working!

I have a couple questions about the process though.

1. Is there a way to simply notify the subscriber that they have been added to the group without them having to confirm?
2. Is there also a way to add a confirmation link to the email instead of having to reply to the email to confirm? Currently, when I reply to the email, it gets returned as undeliverable.

I have just upgraded to CiviCRM 3.1.1 and running on Drupal 6.6

Thanks in advance.
Ryan

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: Using Profiles for Subscription to Group, but No Confirmation Email Sent
January 30, 2010, 05:23:47 pm

1. currently no. This is possible by implementing a hook

2. this should be a fairly simple addition. Would be great if you could add the code (or hire a developer) needed to do so, quite a few users would appreciate this

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 Profiles (Moderator: Dave Greenberg) »
  • Using Profiles for Subscription to Group, but No Confirmation Email Sent

This forum was archived on 2017-11-26.