forum.coppermine-gallery.net

Support => Older/other versions => cpg1.1.X Support (standalone) => Topic started by: matmike on October 09, 2003, 11:28:08 am

Title: Problem with the eCard
Post by: matmike on October 09, 2003, 11:28:08 am
Hello,

I have a big problem sending eCards from CPG1.1.0.
When I try to send an eCard, it seems it is done correct. But when I check my mail, it shows that the "eCard" is just plain text (using Outlook XP).
The first lines are the MIME-Type and Conten-Type Settings.
Can anyone explain to me how to configure CPG in a way that it sends out the eCard as html, not as plain text?
Maybe my provider is blocking the option of sending mail with php. But I know it is working with sendmail. Maybe someone can give me some hints, where I have to search for the options and what I have to change.

THX,
MatMike
Title: Problem with the eCard
Post by: Joachim Müller on October 09, 2003, 11:48:20 am
this is a known issue (see http://forum.coppermine-gallery.net/index.php?topic=281 ) and will be fixed in the next release.

GauGau
Title: ECard-Html Code
Post by: rinaldo2000at on November 02, 2003, 04:07:09 pm
Hello,

When I try to send an eCard, it seems it is done correct. But when I check my mail, it shows that the "eCard" is just plain text (using Outlook 98).
The first lines are the MIME-Type and Conten-Type Settings.
Can anyone explain to me how to configure CPG in a way that it sends out the eCard as html, not as plain text?

but  i want only the txt whit link in the email for ecards, can you say the right code for ....???
Title: Problem with the eCard
Post by: moorey on November 02, 2003, 04:22:03 pm
http://forum.coppermine-gallery.net/viewtopic.php?p=1862#1862

It's now on sticky.
Title: Problem with the eCard
Post by: rinaldo2000at on November 02, 2003, 04:44:21 pm
THK
Title: Problem with the eCard
Post by: Biker on November 02, 2003, 04:57:05 pm
You don´t have to wait for an update!!!!

You only have to fix this:

Change this (include/mailer.inc.php ..... line 32 -> 37)

Quote
$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";


to this:

Quote
$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";


Now you can also receive the ecards with outlook!

greets Bernd