No envia mail el carro de compra.
Author: Pepe C.
Visited 2062,
Followers 1,
Shared 0
Hola.
He seguido todos los concejos y no logro que al realizar una compra se envien los mail al comprador y vendedor. He probado los Scripts de servidor de baja calidad, los de solo texto.y no funcionan. el sevidor tiene PHP 5. de echo funciona perfecto con otros Script como oscommerce.
la web donde realizo la es...
http://www.leogros.byethost22.com
adjuto el archivo de configuracion de mail.
Por favor ayuda.
Posted on the
Author
Este es el script... que esta mal..?
<?php
//Incomedia WebSite X5 EMail Class. All rights reserved.
class imEMail {
var $from;
var $to;
var $subject;
var $charset;
var $text;
var $html;
var $attachments;
function imEMail($from,$to,$subject,$charset) {
$this->from = $from;
$this->to = $to;
$this->charset = $charset;
$this->subject = "=?" . strtoupper($this->charset) . "?B?". base64_encode($subject) . "?=";
}
function setFrom($from) {
$this->from = $from;
}
function setTo($to) {
$this->to = $to;
}
function setSubject($subject) {
$this->subject = "=?" . strtoupper($this->charset) . "?B?". base64_encode($subject) . "?=";
}
function setCharset($charset) {
$this->charset = $charset;
}
function setText($text) {
$this->text = $text;
}
function setHTML($html) {
$this->html = $html;
}
function attachFile($name,$content,$mime_type) {
$attachment['name'] = "=?" . strtoupper($this->charset) . "?B?". base64_encode($name) . "?=";
$attachment['content'] = base64_encode($content);
$attachment['mime_type'] = $mime_type;
$this->attachments[] = $attachment;
}
function send() {
$headers = "";
$msg = "";
if($this->from == "" || $this->to == "" || ($this->text == "" && $this->html == ""))
return false;
$headers .= "From: " . $this->from . "\r\n";
$headers .= "Content-Type: text/plain;charset=" . $this->charset . "\r\n";
$msg .= $this->text . "\r\n\r\n";
$r = @mail($this->to, $this->subject, $msg, $headers);
return $r;
}
}
?>
// End of file imemail.inc.php
Hi Pepe,
can you tell me the URL of your site please?
and verify the php support logging in in the www.yoursite.com/admin click on the Tab "test".
***** Google Translation:
Hola Pepe,
¿me puede decir la dirección URL de su sitio, por favor? y verificar el apoyo php ingresar en el clic www.yoursite.com / admin en la pestañ