Soy novato en esto, a ver si podéis ayudarme. Como no tengo ni idea de el código html, yo he hecho mi página web con el programa website x5, que genera el codigo automaticamente. El carrito está creado y sale todo correctamente (la lista de la compra, el precio...) pero no recibo el pedido en el correo que he puesto y tampoco el correo de confirmación que pongo al hacer el envío. He hecho pedidos poniendo distintas cuentas de correo (hotmail y gmail) y también he probado a cambiar la dirección de correo a la que se envía el pedido (además de hotmail y gmail, a una dirección creada desde el servidor).Si podéiss ayudarme decidmelo y os paso por aquí lo que necesitéis.

ESTE ES EL CÓDIGO:

Para que tengáis más información este es el código:

h2#imPgTitle {float: left; margin-left: 6px; margin-right: 6px; width: 932px;}
#imBreadcrumb {float: left; margin-left: 6px; margin-right: 6px; width: 932px;}
#imCell_5 { display: block; position: relative; overflow: hidden; width: 938px; min-height: 922px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 3px solid transparent; border-right: 3px solid transparent;}
#imCellStyle_5 { position: relative; width: 932px; min-height: 916px; padding: 3px 3px 3px 3px; text-align: center; border-top: 0; border-bottom: 0; border-left: 0; border-right: 0; z-index: 3;}
#imCellStyleGraphics_5 { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: transparent;}
#imProductList_5 .imProductListCont .imProductListImage { float: left; }
#imProductList_5 .imProductListCont .imProductListText { float: right; }
#imProductList_5 .imProductListCont { text-align: left; float: left; width: 446px; padding: 8px; height: 162px; border: 1px solid #808080; background-color: transparent; font: normal normal normal 12.0pt Tahoma; color: #000000; background-color: transparent; text-decoration: none; margin: 0 4px 4px 0; }
#imProductList_5 .imProductListCont.imLastRow { margin-bottom: 0 }
#imProductList_5 .imProductListCont.imLastCol { margin-right: 0 }
#imProductList_5 .imProductListImage { text-align: center; height: 164px; width: 133px; padding: 0; }
#imProductList_5 .imProductListImage img { vertical-align: top; }
#imProductList_5 .imProductListFooter .imProductListQuantity { font: normal normal normal 12.0pt Tahoma; text-decoration: none; float: right; width: 25px; border: 1px solid black; padding: 0; margin: 0; text-align: right; }
#imProductList_5 .imProductListOptions { font: normal normal normal 12.0pt Tahoma; color: #000000; text-decoration: none; margin-top: 2px; width: 304px;}
#imProductList_5 .imProductListFooter .imProductListPrice { float: left; display: inline;}
#imProductList_5 .imProductListFooter .imProductListBoxAdd { display: inline; float: right;}
#imProductList_5 .imProductListFooter .imProductListBoxAdd img { float: right; margin-left: 3px; margin-top: 3px; }
#imProductList_5 .imProductListBoxAdd img { vertical-align: middle; }
#imProductList_5 .imProductListFooter .imProductListBuyBox { text-align: center; position: absolute; bottom: 0px; left: 0; right: 0; }
#imProductList_5 .imProductListTitle { margin-bottom: 15px; }
#imProductList_5 .imProductListText { position: relative; width: 304px; height: 162px; }
#imProductList_5 .imProductListFooter { height: 72px; width: 296px; position: absolute; bottom: 0px; }
#imProductList_5 .imProductListDescription { height: 85px; overflow: auto; }
#imProductList_5 .imProductListBuyBox { width: 304px; }
#imProductList_5 .imProductListImage { height: 162px; }
#imProductList_5 .imProductListText .imProductListDescription { margin-right: -8px; padding-right: 8px; }
#imCell_6 { display: block; position: relative; overflow: hidden; width: 938px; min-height: 171px; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 3px solid transparent; border-right: 3px solid transparent;}
#imCellStyle_6 { position: relative; width: 932px; min-height: 165px; padding: 3px 3px 3px 3px; text-align: center; border-top: 0; border-bottom: 0; border-left: 0; border-right: 0; z-index: 3;}
#imCellStyleGraphics_6 { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: transparent;}
#imTextObject_6 { line-height: 1px; font-size: 1pt; font-style: normal; color: black; font-weight: normal; }
#imTextObject_6 a { color: inherit; }
#imTextObject_6 ul { list-style: disc; margin: 0px; padding: 0px; }
#imTextObject_6 ul li { margin: 0px 0px 0px 15px; padding: 0px; font-size: 8pt; line-height: 17px; *line-height: 1.55; }
#imTextObject_6 table { margin: 0 auto; padding: 0; border-collapse: collapse; border-spacing:0; line-height: inherit; }
#imTextObject_6 table td { padding: 4px 3px 4px 3px; margin: 0px;line-height: 20px;}
#imTextObject_6 p { margin: 0; padding: 0; }
#imTextObject_6 img { border: none; margin: 0px 0px; vertical-align: text-bottom;}
#imTextObject_6 img.fleft { float: left; margin-right: 15px; vertical-align: baseline;}
#imTextObject_6 img.fright { float: right; margin-left: 15px; vertical-align: baseline;}
#imTextObject_6 .imUl { text-decoration: underline; }
#imTextObject_6 .ff0 { font-family: Tahoma; }
#imTextObject_6 .ff1 { font-family: Tahoma; }
#imTextObject_6 .cf1 { color: #000000; }
#imTextObject_6 .cf2 { color: #FFFFFF; }
#imTextObject_6 .cf3 { color: #004040; }
#imTextObject_6 .cf4 { color: #C00000; }
#imTextObject_6 .cf5 { color: #FF0000; }
#imTextObject_6 .cf6 { color: #000000; }
#imTextObject_6 .fs20 { font-size: 10pt; line-height: 20px; }
#imTextObject_6 .fs36 { vertical-align: baseline; font-size: 18pt; line-height: 31px;}
#imTextObject_6 .fs44 { vertical-align: baseline; font-size: 22pt; line-height: 36px;}
#imTextObject_6 .cb1 { background-color: #000000; }
#imTextObject_6 .cb2 { background-color: transparent; }
#imTextObject_6 .cb3 { background-color: #004040; }
#imTextObject_6 .cb4 { background-color: #C00000; }
#imTextObject_6 .cb5 { background-color: #FF0000; }
#imTextObject_6 .cb6 { background-color: #000000; }


<?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->subject = $subject;
$this->charset = $charset;
}

function setFrom($from) {
$this->from = $from;
}

function setTo($to) {
$this->to = $to;
}

function setSubject($subject) {
$this->subject = $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'] = $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;

$boundary_file = md5(time() . "_attachment");
$boundary_alt = md5(time() . "_alternative");

$headers .= "From: " . $this->from . "\r\n";
$headers .= "Message-ID: <" . time() . rand(0,9) . rand(0,9) . "@websitex5.users>\r\n";
$headers .= "X-Mailer: WebSiteX5 Mailer\r\n";
$headers .= "MIME-Version: 1.0\r\n";

if(is_array($this->attachments)) {
$headers .= "Content-Type: multipart/mixed; boundary=\"" . $boundary_file . "\"\r\n\r\n";
$headers .= "--" . $boundary_file . "\r\n";
}

if($this->html == "") {
$headers .= "Content-Type: text/plain; charset=" . strtoupper($this->charset) . "\r\n";
if (strtolower($this->charset) != "utf-8")
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
$msg .= $this->text . "\r\n\r\n";
}
else if($this->text == "") {
$headers .= "Content-Type: text/html; charset=" . strtoupper($this->charset) . "\r\n";
if (strtolower($this->charset) != "utf-8")
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
$msg .= $this->html . "\r\n\r\n";
}
else {
$headers .= "Content-Type: multipart/alternative; boundary=\"" . $boundary_alt . "\"\r\n";

$msg .= "--" .$boundary_alt . "\r\n";
$msg .= "Content-Type: text/plain; charset=" . strtoupper($this->charset) . "\r\n";
if (strtolower($this->charset) != "utf-8")
$msg .= "Content-Transfer-Encoding: 7bit\r\n";
$msg .= "\r\n";
$msg .= $this->text . "\r\n\r\n";

$msg .= "--" . $boundary_alt . "\r\n";
$msg .= "Content-Type: text/html; charset=" . strtoupper($this->charset) . "\r\n";
if (strtolower($this->charset) != "utf-8")
$msg .= "Content-Transfer-Encoding: 7bit\r\n";
$msg .= "\r\n";
$msg .= $this->html . "\r\n\r\n";

$msg .= "--" . $boundary_alt . "--\r\n\r\n";
}

if(is_array($this->attachments)) {
foreach($this->attachments as $attachment) {
$msg .= "--" . $boundary_file . "\r\n";
$msg .= "Content-Type: " . $attachment["mime_type"] . "; name=\"" . $attachment["name"] . "\"\r\n";
$msg .= "Content-Transfer-Encoding: base64\r\n";
$msg .= "Content-Disposition: attachment; filename=\"" . $attachment["name"] . "\"\r\n\r\n";
$msg .= chunk_split($attachment["content"]) . "\r\n\r\n";
}

$msg .= "--" . $boundary_file . "--\r\n\r\n";
}

ini_set("sendmail_from", $this->from);

$r = @mail($this->to, $this->subject, $msg, $headers, "-f" . $this->from);
if(!$r) {
$headers = "To: " . $this->to . "\r\n" . $headers;
$r = @mail($this->to, $this->subject, $msg, $headers);
}
return $r;
}
}

// End of file imemail.inc.php