El/La ".$_POST['nom']." t'envia aquest link.
Comentaris: ".$_POST['comentari']; $msg="
".$body."
"; $cnf=new CONFIGURACIO_EXT(); $conf=$cnf->getConf(); $from = $_POST['email']; $subject = "Link desde ".unserialize($conf->NOM); $to = "<".$_POST['emaila'].">"; $hdrs = array ('From' => $from,'To' => $to,'Subject' => $subject); if($conf->SMTP_AUTH=="true"){ $conf->SMTP_AUTH=true; }else{ $conf->SMTP_AUTH=false; } $smtp = Mail::factory('smtp', array ('host' => $conf->SMTP_HOST, 'auth' => $conf->SMTP_AUTH, 'username' => $conf->SMTP_USER, 'password' => $conf->SMTP_PASS)); $mime = new Mail_mime("\n"); $text = $body; $html = $body; $mime->setTXTBody($text); $mime->setHTMLBody($html); $body = $mime->get(); $headers = $mime->headers($hdrs); $mail = $smtp->send($to, $headers, $body); }else{ ?>
El mail s'ha enviat correctament a .