warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/j/r/i/jrivelli10/html/sites/all/modules/backup_migrate/includes/destinations.email.inc on line 139.

Cron ran successfully.

That is the error I got when sending mail, however some of the mail has gone through. How come the problem is in back_migrate as well?

Thanks!

Comments

sutharsan’s picture

Project: Simplenews » Backup and Migrate

This problem occurs in Backup and Migrate module. Changing module.

jrivelli’s picture

Thanks. Any suggestions then for backup_migrate issue with this?

ronan’s picture

Do you have any special characters in the name of your site or the filename you're saving the files as?

ronan’s picture

Version: 6.x-1.0 » 6.x-2.2
Status: Active » Closed (duplicate)

This sounds like it might be the same as #759654: Mail MIME format passed to mail() seems to be invalid so I'm going to redirect this over there, where Todd Zebert has done some research on this.

jrivelli’s picture

Status: Closed (duplicate) » Closed (won't fix)

It's be nice if Tobb would've done research and not made a duplicated of my topic.

ontech’s picture

I too am using Godaddy linux hosting. I have solved the problem through removing some \n's.

1) open destinations.email.inc
2) line 121 should be this:

return "Content-Type: ". $part["ctype"] . ($part["name"] ? "; name = \"". $part["name"] ."\"" : "") ."\nContent-Transfer-Encoding: $encoding\n$disposition$message";

3) line 126 should be this:

$multipart = "Content-Type: multipart/mixed; boundary = $boundary\nThis is a MIME encoded message.\n--$boundary";

ontech’s picture

WoRo’s picture

Not working for me. After applying this solution mail is sent but attachment has 0 bytes.

beto_beto’s picture

hii
i am using D 6 in both language Arabic and English
and i have the same problem when i am using Simple news letter

this is the error

warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /home/content/q/a/t/qatar123/html/includes/mail.inc on line 192.

and i am using Godaddy hosting account

i need help in this error pleas !!!!

raptoplob’s picture

ontech's solution has worked for me.

ivnish’s picture

Assigned: jrivelli » Unassigned
Issue summary: View changes