Peter
|
| Posted: 05/06/2002, 3:53 PM |
|
Please, can someone explain to me, how the action "send email" in CSS is used?
No matter, how I try it, no Mail is sent away. Would be very grateful for assistance.
Greetings
Peter
|
|
|
 |
Alex Alexapolsky
|
| Posted: 05/07/2002, 5:14 AM |
|
Add action , specify action parameters.
Make sure CDONTS components is installed on your server.
|
|
|
 |
Peter
|
| Posted: 05/08/2002, 9:32 AM |
|
Hi alex,
looking into the common.php I saw:
function CCSendMail($Sender, $Recipient, $Subject, $Body, $BodyFormat)
{
// todo
}
I'm not a programmer, but I think, so it can't work. is it right?
greetings
peter
|
|
|
 |
Nicole
|
| Posted: 05/09/2002, 6:14 AM |
|
Peter,
I think it is imperfection in CCS. For now try to add custom send mail code to CCSendMail() function. Try this one:
if($BodyFormat === 0)
$BodyFormat="text/html";
else
if($BodyFormat === 1)
$BodyFormat="text/plain";
$headers = "From: " .$Sender. "\nX-Mailer: PHP/" . phpversion()."\n";
$headers = $headers . "Content-Type: ".$BodyFormat."; charset=iso-8859-1\n";
mail ($Recipient, $Subject, $Body, $headers);
as function body.
Then call it in events.
|
|
|
 |
|