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) »
  • Mailings not sending
Pages: [1] 2

Author Topic: Mailings not sending  (Read 10443 times)

dkandl

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla! 2.5.4 Stable
  • MySQL version: idk
  • PHP version: 5.3.5
Mailings not sending
April 11, 2012, 10:30:39 pm
First off I am able to test outbound e-mail and it works but when I try to send out mailings it shows a completed status but they do not go through... Any ideas?

Masked Marauder

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • \__^..^
  • CiviCRM version: 4.5.5
  • CMS version: drupal-6.34
  • MySQL version: 5.5.40-36
  • PHP version: 5.4.34
Re: Mailings not sending
April 14, 2012, 01:14:54 pm
I'm running CiviCRM 4.1.1 under drupal 6 on a hostmonster account and my out-going SMTP (also on hostmonster) works OK.

Civimail mailings, test & actual, both fail.  A typical error message is shown below.

Note the account name in the SMTP block, 'b.57.63.f459e3359a08f375'.  That is not the correct name.  The outgoing email host field is correct, but the account name value used looks random, or maybe a deformed ip number.  The gibberish field varies from one attempt to another, but everything else remains the same.

Note also the "Verification failed for <@YYY.org>" where the account name is blank.  In the SMTP test the specified account name is correct.

I've reset the SMTP account, changed passwords, & etc, several times and the test still works while the mailings test continues to fail.

At approximately which line in which file does the SMTP info come into the mailings processing flow?

Quote
Error Details
Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
[cod e] => 10005
    [message] => Failed to add recipient: edstrom@XXX.com [SMTP: Invalid response code received from SMTP server while sending email.  This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 550, response: Verification failed for <@YYY.org>
No Such User Here
Sender verify failed)]
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="Failed to add recipient: edstrom@XXX.com [SMTP: Invalid response code received from SMTP server while sending email.  This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 550, response: Verification failed for <b.57.63.f459e3359a08f375@YYY.org>
No Such User Here
Sender verify failed)]" code=10005 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

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: Mailings not sending
April 14, 2012, 05:27:11 pm

the gibberish email is the verp address which is used to track bounces et al.

You'll need to get your host to allow wildcard addresses of a specific format to send email from your account

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

Masked Marauder

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • \__^..^
  • CiviCRM version: 4.5.5
  • CMS version: drupal-6.34
  • MySQL version: 5.5.40-36
  • PHP version: 5.4.34
Re: Mailings not sending
April 15, 2012, 08:47:47 am
Thanks!  This helped me sort the problem out.

I don't know how common this situation is among various hosting sites, but on hostmonster the email account username IS the  the email address (name@domain) for the purpose of authentication. 

In civicrm/packages/Mail/smtp.php a non-empty reply-to field is substituted into the FROM email field (around line 275).  Somehow the VERPed address in the modified FROM field leaks into the authentication process somewhere downstream and that was causing the hostmonster email service to reject the mail since there is no r.97.99.9cdcd363a0726acb@firebare.org account to log in to.

I commented out that block and everything seems to be working properly now.

bluenosejr

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Mailings not sending
May 30, 2012, 08:10:18 am
I ended up commenting out the same block to get outgoing mailings to work.  What is the final solution to this?

cwyant

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.65-cll
  • PHP version: 5.3.18
Re: Mailings not sending
July 27, 2012, 01:05:38 pm
Commenting out the block worked for me. Thanks!

irebout

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Mailings not sending
July 27, 2012, 10:02:55 pm
I changed Verp to ";" in Godaddy's settings this seemed to work for me. 

gsoundsgood

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Wordpress
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.16
Re: Mailings not sending
August 13, 2012, 10:48:05 am
Hi!
I am on bluehost and I also commented out that bloc in the smtp.php around line 275.

Everything is working fine now. Thanks!
« Last Edit: August 13, 2012, 11:29:48 am by gsoundsgood »

kc6ape

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.15
Re: Mailings not sending
December 16, 2012, 01:04:00 pm
gsoundsgood, could you post exactly what you commented out in thr smtp.php file? I am using bluehost and have the same problem.

This is what I have in the file starting at line 273 and ending at line 276

if (!isset($from)) {
            $this->_smtp->rset();
            return PEAR::raiseError('No From: address has been provided',
                                    PEAR_MAIL_SMTP_ERROR_FROM);

Thanks for your help

liyaqat

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Joomla
  • MySQL version: Not Sure
  • PHP version: Not Sure
Re: Mailings not sending
December 17, 2012, 10:04:12 am
Hi All,

Thank you to everyone at CiviCRM for all the hard work  :) I am experiencing the same problem.
I have a Joomla site using CiviCRM that is hosted by BlueHost. I updated the smtp.php (in the civicrm folder) and commented out:

if (!empty($headers['Return-Path'])) {
            $from = $headers['Return-Path'];
        }
      


Before this I could not send test mails during the mailing process. Now I can send the test mail but the mailing never goes through.

It just says Scheduled but never sends. Any help would be much appreciated.

Kind regards,

kc6ape

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.15
Re: Mailings not sending
December 17, 2012, 05:04:22 pm
liyaqat,
Thanks so much that did the trick I can now send my group mailings on Bluehost.

fouad

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: WordPress 3.5
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Mailings not sending
December 18, 2012, 12:41:43 pm
Yep,

I still got this problem too..
I can send the test mail but the mailing never goes through.
It just says Scheduled but never sends.

The mailings are only able to be kicked off manually from within the scheduled job menu.

I have correctly setup cron jobs for this too and the log shows that cron is kicking it off but as said, the mailing status remains "scheduled" ??

Also  the 2 users ( civimail and bounce ) are known in CiviCRM/Mail too, with even admin rights ( Inwordpress this is the only option, no ACL possible).

Cron config (/etc/cron.d/civimail) :

# This must be set to the directory where civicrm is installed.
CIVI_ROOT=/var/www/virtual/******/wp-content/plugins/civicrm/civicrm

# Location of the PHP Command Line Interface binary.
# nice -19 forces to run at a lower priority than the web server
PHP=nice -n19 /usr/bin/php

# line to be modified according to the informations below
# like this: PARAMS= -j -s<default or domain> -u<user> -p<password> -e Job -a process_mailing
# Sample data here below.
# Create a Drupal user named "mailprocess" or the like with proper permissions to send mailings
# and put here its credentials (-u and -p options).
# Blankspaces matter.
PARAMS= -j -sdefault -u civimail -p *****  -e Job -a process_mailing
PARAMSBOUNCE= -j -sdefault -u bounce -p ******  -e Job -a fetch_bounces

# cronjob send
# m h dom mon dow command
*/5 * * * * apache cd $CIVI_ROOT; $PHP bin/cli.php $PARAMS
*/15 * * * * apache cd $CIVI_ROOT; $PHP bin/cli.php $PARAMSBOUNCE



Log:

CROND[18287]: (apache) CMD (cd $CIVI_ROOT; $PHP bin/cli.php $PARAMS)


Please help...

 
 

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: Mailings not sending
December 18, 2012, 02:31:19 pm

before putting in cron, i would try and get it working from the command line

check your logs etc to see if there are any error messages once the command line job finishes

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

fouad

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: WordPress 3.5
  • MySQL version: 5.1.66
  • PHP version: 5.3.3
Re: Mailings not sending
December 19, 2012, 12:38:40 pm
Did that before too, and again just now, nothing in any log is to be seen, also command finished without problems because no error was thrown..

---
civicrm]# php bin/cli.php  -j -sdefault -u civimail -p ****  -e Job -a process_mailing
civicrm]#

---


liyaqat

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Joomla
  • MySQL version: Not Sure
  • PHP version: Not Sure
Re: Mailings not sending
December 20, 2012, 02:46:40 pm
Any help guys? I really need to get this working :-(

I commented out the piece of code, got the test mail to send but mailing does not send, stays on scheduiling.

Any ideas on how I can debug this?

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Mailings not sending

This forum was archived on 2017-11-26.