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) »
  • Mail won't send using SMTP mailer module
Pages: [1]

Author Topic: Mail won't send using SMTP mailer module  (Read 3088 times)

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Mail won't send using SMTP mailer module
December 15, 2010, 02:07:19 pm
I am using Drupal and the SMTP Authentication Support module. Drupal is able to send emails but I cannot get CiviCRM to send via CiviMail. I am getting this error:
Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] =>
    [message] => mail() returned failure
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="mail() returned failure" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

I tried to send this by creating a new bulk mailing and that is the error that I got when trying to send out a test send. I set up a Mail Account in CiviMail > Mail Accounts. I really have no idea what the above error is trying to tell me. Any help is appreciated.

Thanks.
[/code]

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Mail won't send using SMTP mailer module
December 16, 2010, 12:04:26 am
Looks like an issue that has been fixed.

Upgrade, should solve your problem

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Mail won't send using SMTP mailer module
December 20, 2010, 12:02:45 pm
I just did a clean installation of Drupal 6.20 and the latest CiviCRM 3.3.1 and I am getting a slightly different message now:

Code: [Select]
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] =>
    [message] => recipient is not recognized
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="recipient is not recognized" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

Still working on it...[/code]
« Last Edit: December 20, 2010, 12:18:31 pm by leupi »

leupi

  • I post frequently
  • ***
  • Posts: 192
  • Karma: 2
Re: Mail won't send using SMTP mailer module
December 20, 2010, 12:26:49 pm
Just to update...

I can send mail via "Send mail to contacts" and I can send mail from the "Save and send test email" from Global Settings > Outbound Email. It's just when trying to send a bulk email via CiviMail that I'm having the problem.

Thanks.

boftx

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Mail won't send using SMTP mailer module
February 13, 2011, 03:05:55 pm
I am having the same problem on CiviCRM 3.3.5 after upgrading from a 2.x version.

Individual emails work fine, but nothing sent from CiviMail as a bulk email works, including the test email.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Mail won't send using SMTP mailer module
February 13, 2011, 10:18:18 pm
Hi,

It means that your civicrm configuration isn't correct, in that case likely your host that has disabled that mail() function somehow. Try configuring using smtp

http://forum.civicrm.org/index.php/topic,16430.0.html

Word of warning: often means a cheap hosting, check with them they don't put limitations on how many emails you can send.

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

boftx

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6.20
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Mail won't send using SMTP mailer module
April 07, 2011, 10:31:45 pm
Quote from: xavier on February 13, 2011, 10:18:18 pm
Hi,

It means that your civicrm configuration isn't correct, in that case likely your host that has disabled that mail() function somehow. Try configuring using smtp

http://forum.civicrm.org/index.php/topic,16430.0.html

Word of warning: often means a cheap hosting, check with them they don't put limitations on how many emails you can send.

X+

I'm sorry, but it isn't really all that hard to cofigure outbound mail. The test mail works for both mail() and SMTP configs. But CiviMail fails on the test mail. It is frustrating because ALL other mail functions work just fine. CiviMail is one of the primary reasons we want to use CiviCRM. All of the Drupal email modules work fine, too. It is only CiviMail that has the problem.

Bluehost.com is inexpensive, but I doubt anyone would class them as a "cheap" hosting service given their level of service.

Can you offer any more adivice on this? There are no errors being logged anywhere that expand beyond the error message posted above.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Mail won't send using SMTP mailer module
April 07, 2011, 11:30:23 pm
Can you follow the installation guide in the book and start a new thread with your configuration?

check on your mail server log, it will give the error probably

Good luck

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Mail won't send using SMTP mailer module
June 13, 2011, 12:59:26 pm
I think this is a valid issue. we're getting the same behavior on random, but valid, emails -- only when using the civimail test send functionality. in our case, some gmail accounts will be sent to, and others will not. there's no clear reason why.

the issue is happening on the civi side of things -- i.e. the email is not bounced by the receiving server, but by civi before or as it hits the sending server (which in our case is a commercial smtp delivery service provider)
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Mail won't send using SMTP mailer module
June 13, 2011, 01:26:40 pm
Hi,

Sorry not sure I got you. That's while sending the test emails that you got these errors ? Does it work ok when sending normally ?

My experience of that random behaviour is that it's liked to the config, eg SPF, or what email you send to.

Do you have had a one gmail works the other doesn't ? Can you make one fail all the time and another never on the same domain name ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: Mail won't send using SMTP mailer module
June 13, 2011, 07:55:39 pm
looks like its a general problem with sending, not just test.
the email is sent when using email activity. but bounces when using civimail.
and it's a gmail account, which is odd -- as other gmail addresses send with no issues.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Mail won't send using SMTP mailer module
June 13, 2011, 11:42:00 pm
The sender is different.

Check the mail account. If you use exchange, probably it doesn't t like the + notation
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

crayon

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Mail won't send using SMTP mailer module
June 21, 2011, 07:19:42 pm
I've have had this same error below and have a work around.  I get this error if my subject title is too long.  I also get it if I do not begin my email html source without <p> </p> at the top.

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=>
    [message] => mail() returned failure
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="mail() returned failure" code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

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: Mail won't send using SMTP mailer module
June 22, 2011, 06:40:46 am
that error is a bit different from what I was getting.

FWIW, my issue turned out to be improper construction of the TO value in the header. this client is running 3.3.5, and the code in question has been restructured in 3.4/4.0; I haven't tested the issue in that version yet.

basically, the TO email was constructed as:
Code: [Select]
Display Name <email@email.com>
when it should have been:
Code: [Select]
"Display Name" <email@email.com>
If the display name contained commas (e.g. John Doe, Jr.) it screwed things up down the line. so within 3.3.x I just corrected the TO value construction to have the contact encased in quotes and it fixed the issue.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Patricia43

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Mail won't send using SMTP mailer module
April 19, 2013, 09:31:22 am
Although this topic is closed, in case it helps others, I am posting this info.

I got this error after I Cancelled a mailing. I was able to circumvent it by deleting the Cancelled mailing.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mail won't send using SMTP mailer module

This forum was archived on 2017-11-26.