warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent
herteljp@yahoo.com - April 23, 2009 - 18:55
| Project: | Mime Mail |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I am getting a similar issue as others but at a different line location:
warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/b/o/i/boisegunclub/html/drupal6/sites/all/modules/mimemail/mimemail.module on line 231
My newsletter issue title is fairly short: 2009 Spring 5 Stand League
product versions:
Simplenews 6.x-1.0-rc6
Mime Mail 6.x-1.x-dev (2009-Apr-14)
Drupal 6.8

#1
Watchdog log shows the following:
Outgoing email failed. Message type: test
Subject: [Boise Gun Club newsletter] 2009 Spring 5 Stand League
Recipient: administrator@boisegunclub.com Sent via Mime Mail
#2
It's probably related to the fact that php's mail function does not play well with the way mimemail presents the recipient. Try replacing the lines:
return addslashes(mime_header_encode($address['name'])) .' <'. $address['mail'] .'>';
in mimemail.inc with
return '<'. $address['mail'] .'>';
Fixed my problem.
#3
I'm also getting simiar error message.
mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/.../drupal6/sites/all/modules/mimemail-6.x-1.x-dev/mimemail/mimemail.module on line 231.
Drupal 6.12
Mime Mail 6.x-1.x-dev
Simplenews 6.x-1.0-rc6
#4
Having the same problem.
#5
any other fix ideas? #2 didn't work for me
#6
#2 seems to have fixed my problem as well, although I've thought it fixed twice now only to have it break again after a few days. I'll keep my fingers crossed.
Drupal 6.14
Simplenews 6.x-1.0-rc6
MimeMail 6.x-1.x-dev