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) »
  • CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
Pages: [1]

Author Topic: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)  (Read 3786 times)

at02

  • Guest
CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
November 06, 2009, 08:35:14 am
Okay, I have seen this in posts on previous versions of CiviCRM, but so far not for CiviCRM 3..

When I set up the mailing function on the global settings and sent a "test" email, it said that all of the settings were correct and the email was sent (I didn't actually get any test email though... is it supposed to send something?)

Now, when I set up a civicontribute form for membership sign up, I noticed that after sign up when it sends the receipt I get an error and a warning.

Error (red background):
Code: [Select]
warning: mktime() expects parameter 6 to be long, string given in /sites/all/modules/civicrm/CRM/Member/BAO/MembershipType.php on line 594Warning (yellow background):
Code: [Select]
.... The mail library returned the following error message: [b]Failed to add recipient: @localhost [SMTP: recipient is not recognized (code 501, response: <@localhost>:no local part)][/b]
On the global settings, I created a "no-reply@" address so that the site can send out emails, since we use a different mail server and @address than our .org, however on the membership sign up page I wanted to BCC a copy of every membership to one of our addresses, so that we can know/review whenever someone signs up as a member on our website.

I am guessing that it is having trouble sending to the BCC address, but I have no idea why (and the wiki link provided on the warning does not help at all), and it must have some error on my global settings for email, but I just can't figure this out!

Any help would be greatly appreciated!!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
November 06, 2009, 05:17:22 pm
You could verify if this is a bug related to the BCC output by removing that for a test-drive and seeing if that gets rid of the error. You could also experiment with using the CC instead of the BCC.
Protect your investment in CiviCRM by  becoming a Member!

Cid.chad

  • Guest
Re: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
November 07, 2009, 02:47:47 am
Although, the issue you are having might be a completely different issue, but, I've had same problem with similar error exactly on a contribution page when the thank you and receipts was supposed to be sent to user.



If you have included a profile in your contribution page, I strongly recommend to read this page, and read it really carefully:
http://wiki.civicrm.org/confluence/display/CRMDOC/How+to+Create+Profiles

Quote
User account registration - Gives anonymous users the option (or requirement) to create a Drupal/Joomla User Account as part of completing the form. In Drupal, this feature requires the 'Email Verification' option to be checked (Drupal User Settings), AND you must include a Primary Email Address field in the profile. In Joomla, you must have user registration enabled in Joomla Global Configuration, and must include a Primary Email Address field in the profile.

As irrelevant as it sounds, I realized that I had not included a Primary Email Address to the profile. I guess this is necessary for CMS.
« Last Edit: November 07, 2009, 02:50:39 am by Cid.chad »

Cid.chad

  • Guest
Re: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
November 07, 2009, 05:11:54 am
This one is a classic one!

Same profile, same settings:

When allowing to register on behalf of an Organisation,  following happens when press "Continue" on the last step of sign up when selecting "Pay Later" option!!!!

Although contact is created, but user sees the following error and does not receive receipt via email ???

But, if user do not opt to register on behalf of organisation on the very same contribution page, this does not happen and user will receive the receipt nice and clean!

Code: [Select]
An error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.

The mail library returned the following error message:
Failed to add recipient: @localhost [SMTP: recipient is not recognized (code: 555, response: 5.5.2 Syntax error. 4sm354517ywg.43)]

This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » Global Settings » Outbound Email), OR the FROM email address specifically configured for your contribution page or event. Possible causes are:
and this is happening on 2.2.8
« Last Edit: November 07, 2009, 05:19:59 am by Cid.chad »

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: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
November 07, 2009, 07:11:59 am

try upgrading to 2.2.9 or 3.0.2

this was an error which was fixed recently (the on behalf of flow was overwriting some other variables)

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

bgthom

  • Guest
Re: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
January 10, 2010, 01:59:17 pm
Hi, I am getting the same error message as the original poster at2, with Drupal 6.14 and CiviCRM 3.0.

The mail library returned the following error message:
Failed to add recipient: @localhost [SMTP: recipient is not recognized (code: 501, response: <@localhost>: no local part)]


The test email works fine from my SMTP settings page, and I don't have any BCC or CC addresses on my Contribution page.

Would upgrading to 3.0.2 address this bug?

Any help most welcome!

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: CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)
January 10, 2010, 07:19:29 pm

most likely yes. please upgrade to the latest version of 3.0.x and let us know if it did fix the issue

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • CiviContribute not able to send mail (CiviCRM 3 + Drupal 6.14)

This forum was archived on 2017-11-26.