Post by lagu » Fri Aug 07, 2009 6:41 pm

No mails are coming through from opencart.

If I do a var_dump on mail($to, $this->subject, $message, $headers) (line 140) the output is true, but a warning is given:
Warning: Cannot modify header information - headers already sent by (output started at system/library/mail.php:140) in opencart/system/engine/controller.php on line 23.

If I change mail($to, $this->subject, $message, $headers) to mail($to, $this->subject, $message) (remove $headers) I get the email but the message (body of the email) is base64 encoded nonsens.

If then switch $message to $this->text - email body is empty. If I use $this->html I get the html as text.

Where is the setting to choose if you send the mail as plain text or html?

Is there an easy way to fix this problem? Or implement phpmailer?

Other web applications I have on the same server uses php mail, smtp or sendmail without problems.

Newbie

Posts

Joined
Tue Jul 28, 2009 2:49 am

Post by lagu » Sun Aug 09, 2009 5:48 pm

This one is solved. I had to rewrite mail.php...

Newbie

Posts

Joined
Tue Jul 28, 2009 2:49 am

Post by zeevy » Mon Aug 10, 2009 5:21 pm

I have similar problem with base64 encoding body.

can u please share your mail.php file

thanks

gv

New member

Posts

Joined
Tue Jul 21, 2009 8:08 pm

Post by Daniel » Mon Aug 10, 2009 6:07 pm

i think its to do with the \n\r shoudl be \n

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 21 guests