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
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

herteljp@yahoo.com - April 23, 2009 - 19:07

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

mehmeta - April 23, 2009 - 19:16

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

pharoz - June 25, 2009 - 23:02

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

jessia - August 31, 2009 - 14:43

Having the same problem.

#5

jday - October 13, 2009 - 22:22

any other fix ideas? #2 didn't work for me

#6

iamreavis - October 15, 2009 - 18:38

#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

 
 

Drupal is a registered trademark of Dries Buytaert.