coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: BMWHeaven on October 05, 2003, 07:56:15 PM

Title: Bug?
Post by: BMWHeaven on October 05, 2003, 07:56:15 PM
Hi,

I was searching for the Bug-report forum, but couldn't find it...

Here is the bug I found (at least, I think it's a bug).

When sending an e-card to myself (for testing purposes), I get a message with html tags and everything, like looking at the source of a webpage.
I'm opening the mail with Outlook Express 6 - Windows Xp Prof SP1.

After a few hours I discovered the problem, it's in the Coppermine/include/mailer.inc.php file, in lines 32-37.
Change this code:

               $extra_headers         = "From: $sender_name <$sender_email>\r\n".
                                            "MIME-Version: 1.0\r\n".
                                            "Content-type: $type; charset=" . $charset . "\r\n".
                                            "Content-transfer-encoding: 8bit\r\n".
                                            "Date: " . gmdate('D, d M Y H:i:s', time()) . " UT\r\n".
                                            "X-Mailer: Coppermine Photo Gallery\r\n";


Into:
               $extra_headers         = "From: $sender_name <$sender_email>\n".
                                            "MIME-Version: 1.0\n".
                                            "Content-type: $type; charset=" . $charset . "\n".
                                            "Content-transfer-encoding: 8bit\n".
                                            "Date: " . gmdate('D, d M Y H:i:s', time()) . " UT\n".
                                            "X-Mailer: Coppermine Photo Gallery\n";



If anyone has problems with my solution, please inform me :).
Thanks for reading,
Title: Bug?
Post by: Tiger on October 07, 2003, 07:55:30 PM
I've same problem B4, but it's fixed when I config the mailer.inc.php" file to "$config['smtp_host']="localhost"  :lol:

ps. It is running on my own server with sendmail.


Tiger
www.xtrasky.com
Title: That's weird.
Post by: outerverse on October 08, 2003, 05:02:06 AM
I'm running the same as you, but I didn't get that problem...although I'm using SendMail and not SMTP to send my e-cards.
Title: Bug?
Post by: gtroll on October 14, 2003, 02:51:39 AM
This problem is particular to Outlook and the above fix (changing \r\n to \n should work...)
Title: Re: That's weird.
Post by: Kurse on October 15, 2003, 06:38:07 PM
Quote from: "outerverse"I'm running the same as you, but I didn't get that problem...although I'm using SendMail and not SMTP to send my e-cards.

sendmail is smtp

smtp = simple mail transport protocol

There are other smtp agents, but sendmail is the default on on most Linux machines

smtp is a protocol, same as http, pop3, ftp, etc are protocols
sendmail is the smtp agent, or daemon, just as IIS or apache is a http agent