if ($form)
{
require ("smtp.inc.php");
$smtp=new SMTPMAIL;
$mes="-Nom: $nom\n-Prénom: $prenom\n-Socitété: $societe\n -Fonction: $fonction\n -Adresse: $adr\n -Code postal: $postal\n-Ville: $ville\n -Pays: $pays\n -Email: $email\n -Tel: $tel\n-Fax: $fax\n\n-Message: $msg ";
//$from="enjoygraph@gnet.tn";
$from="universal.electric@gnet.tn";
$to="universal.electric@gnet.tn";
$cc="universal.electric@gnet.tn";
$sujet="Contact Unel";
if(!$smtp->send_smtp_mail($to,$sujet,$mes,$cc,$from))
echo "Error in sending mail! Error: ".$smtp->error;
else
{//echo "Mail sent succesfully!";
//mail($to,$sujet,$mes,"-f $from");?>
echo "Email Envoyé | ";
}
} else{ ?>
|