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) »
  • [SOLVED] CiviMail failing on particular email addresses
Pages: [1]

Author Topic: [SOLVED] CiviMail failing on particular email addresses  (Read 850 times)

mcternan

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.58
  • PHP version: 5.3
[SOLVED] CiviMail failing on particular email addresses
October 10, 2012, 11:04:39 pm
I've just come across a very odd issue and I'm having problems trying to debug this.

Whenever I am constructing a new mailout and when I attempt to send a test mail, I am unable to send mails to one mail address in particular. the scenario has been very confusing and took me a while to diagnose, but here is what I have been observing.

1) After composing the test mail I will attempt to send a test mail to x@domain.com and y@domain.com. Only x@domain.com will receive the mail
2) If I attempt to send the test mail to just y@domain.com, after clicking on 'send test mail', the page will time out and return a HTTP 500 error

This is very confusing and I do not really know where to start in regards to debugging.

I have checked my Apache logs and so far have not found anything of much use in either the error or access logs.

I have enabled debugging in CiviCRM but have been unable to return any data.

Has anyone come across this before. There are no special characters in this persons email address, and I have checked it's mailing preferences within the system (it is not blocked and has not opted out of any mailings).

Any pointers are appreciated.
« Last Edit: October 18, 2012, 11:00:56 pm by mcternan »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail failing on particular email addresses
October 11, 2012, 01:04:53 am
Sounds weird, before digging, I'd suggest you upgrade to the latest version (4.2.2) if you are lucky the problem has already been fixed.

Otherwise, could you try to create a normal email to y@domain.com from civi see if it works?

And 500 means you are running php on fastcgi, right? tend to be less verbose on errors indeed. double check your php config to be sure it displays all errors, might give more info.

doe your y@domain email contain "out of the ordinary" chars? eg + or ; or ...?
X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviMail failing on particular email addresses
October 11, 2012, 10:44:09 am
mcternan, I saw this precise issue just yesterday in a 4.1.2 site. The "offending" emails had numerals in the name (not the domain name) and one user even reported a 500 error for a gmail address with no numerals.

However other emailed worked fine and, oddly, that same gmail worked when I tried it.

Also nothing useful in the Apache logs.

xavier, a 500 Internal Server Error is an HTTP Status Code, not actually related to the scripting language nor the method of its implementation. The level of detail reported differs, but a "500" in and of itself is standard for HTTP.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

mcternan

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.58
  • PHP version: 5.3
Re: CiviMail failing on particular email addresses
October 11, 2012, 06:19:30 pm
Xavier, there's no odd chars in the email address, only alphabet characters.

I don't think we're running fastcgi, but I do need to check the php error messages, it may have been turned off.

I am able to send emails from the host, but I have not tried a regular email from Civi just yet.

What is interesting is that I took the entire site from the production site and replicated it on another host (copied the source code, replicated the database) and the problem persisted. It seems to be either bad data in the db, or a bug with the current version.

I'll also try upgrading after turning on my php errors.

mcternan

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.58
  • PHP version: 5.3
Re: CiviMail failing on particular email addresses
October 11, 2012, 07:06:38 pm
I turned on error reporting in PHP and got the following error:

"Fatal error: Maximum execution time of 30 seconds exceeded in /home/www/civicrm/sites/all/modules/civicrm/packages/DB/common.php on line 1220"

I doubt raising the max execution time will do anything, since it will send the mail with not timeouts if I'm using another address.

Conor

mcternan

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.58
  • PHP version: 5.3
Re: CiviMail failing on particular email addresses
October 11, 2012, 08:19:57 pm
Have updated to the newest release (4.2.2) and I'm still seeing the same problem.

Any tips on how to troubleshoot this? The only PHP error I'm seeing is the timeout from the previous message.


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail failing on particular email addresses
October 11, 2012, 11:17:28 pm
Quote from: Hershel on October 11, 2012, 10:44:09 am
xavier, a 500 Internal Server Error is an HTTP Status Code, not actually related to the scripting language nor the method of its implementation. The level of detail reported differs, but a "500" in and of itself is standard for HTTP.

I'm quite familiar with the 500 error code, a bit too much intimate even, if you ask me ;)

The reason I was asking is that when php is a module it tends to be more verbose and display more error/debug messages, but when it's fastcgi, it's a separate process that runs php and communicate with the webserver. In this latest case, it tend to display an empty 500 message, because the only thing the webserver knows it that it lost contact with the php process.

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

mcternan

  • I’m new here
  • *
  • Posts: 27
  • Karma: 0
  • CiviCRM version: 4.4.11
  • CMS version: Drupal 7.10
  • MySQL version: 5.1.58
  • PHP version: 5.3
Re: CiviMail failing on particular email addresses
October 18, 2012, 10:55:13 pm
Well, I managed to solve this, but it does not make a lot of sense.

I thought there may have been some invalid characters or corrupted characters in the email address in question, so I removed it from the Civi profile of the user. This still did not resolve anything until I remembered this person also had a Drupal account. I edited their Drupal account, deleting the email address, re-entering it and then saving.

Once I done this I was able to mail the user.

Very odd issue and I guess somewhere the users mail address was 'broken'.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • [SOLVED] CiviMail failing on particular email addresses

This forum was archived on 2017-11-26.