DBSelect($req_det); $body= $GLOBALS['lang']['yp']['mail_entete']."
"; $body.="
\n"; $body.="
".$GLOBALS['lang']['yp']['theme'].":
\n"; $body.="
".stripslashes($result[0]['theme_name'])."
\n"; $body.="
".$GLOBALS['lang']['yp']['name2'].":
\n"; $body.="
".stripslashes($result[0]['yellowp_name'])."
\n"; $body.="
".$GLOBALS['lang']['yp']['activity'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_activity']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['street'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_street']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['postal_code'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_postal_code']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['city'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_city']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['country'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_country']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['phone'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_phone']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['fax'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_fax']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['email'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_email']))."
\n"; $body.="
".$GLOBALS['lang']['yp']['website'].":
\n"; $body.="
".stripslashes(trim($result[0]['yellowp_website']))."
\n"; $body.="
".$GLOBALS['lang']['divers']['date_crea'].":
\n"; $body.="
".$result[0]['yellowp_date_crea']."
\n"; $body.="
".$GLOBALS['lang']['divers']['statut'].":
\n"; $body.="
".display_statut($result[0]['yellowp_statut'])."
\n"; $body.= "
".$GLOBALS['lang']['yp']['mail_body1'].": ".SITE_CITY_NAME."
"; $body.= $GLOBALS['lang']['yp']['mail_bottom'].": ".SITE_CITY_MAIL."
\n"; $text_body=$GLOBALS['lang']['yp']['mail_entete']."\n"; $text_body.=$GLOBALS['lang']['yp']['theme'].": ".stripslashes($result[0]['theme_name'])."\n"; $text_body.=$GLOBALS['lang']['yp']['name2'].": ".stripslashes($result[0]['yellowp_name'])."\n"; $text_body.=$GLOBALS['lang']['yp']['activity'].": ".stripslashes(trim($result[0]['yellowp_activity']))."\n"; $text_body.=$GLOBALS['lang']['yp']['street'].": ".stripslashes(trim($result[0]['yellowp_street']))."\n"; $text_body.=$GLOBALS['lang']['yp']['postal_code'].": ".stripslashes(trim($result[0]['yellowp_postal_code']))."\n"; $text_body.=$GLOBALS['lang']['yp']['city'].": ".stripslashes(trim($result[0]['yellowp_city']))."\n"; $text_body.=$GLOBALS['lang']['yp']['country'].": ".stripslashes(trim($result[0]['yellowp_country']))."\n"; $text_body.=$GLOBALS['lang']['yp']['phone'].": ".stripslashes(trim($result[0]['yellowp_phone']))."\n"; $text_body.=$GLOBALS['lang']['yp']['fax'].": ".stripslashes(trim($result[0]['yellowp_fax']))."\n"; $text_body.=$GLOBALS['lang']['yp']['email'].": ".stripslashes(trim($result[0]['yellowp_email']))."\n"; $text_body.=$GLOBALS['lang']['yp']['website'].": ".stripslashes(trim($result[0]['yellowp_website']))."\n"; $text_body.=$GLOBALS['lang']['divers']['date_crea'].": ".$result[0]['yellowp_date_crea']."\n"; $text_body.=$GLOBALS['lang']['divers']['statut'].": ".display_statut($result[0]['yellowp_statut'])."\n"; $text_body.=$GLOBALS['lang']['yp']['mail_body1'].SITE_CITY_URL."\n"; $text_body.=$GLOBALS['lang']['yp']['mail_bottom'].SITE_CITY_MAIL."\n"; $mail = new phpmailer(); $mail->Host = MAIL_HOST; if (MAIL_MAILER!="") { $mail->Mailer = MAIL_MAILER; $mail->Sendmail = MAIL_SENDMAIL; $mail->Port = MAIL_PORT; } $mail->From = MAIL_FROM; $mail->FromName = MAIL_FROMNAME; $mail->AddAddress(stripslashes($result[0]['yellowp_email']), stripslashes($result[0]['yellowp_name'])); $mail->Subject = "confirmation de votre inscription sur ".SITE_CITY_NAME; $mail->WordWrap = 75; $mail->Body = $body; $mail->AltBody = $text_body; $mail->AddReplyTo(MAIL_REPLY,MAIL_REPLYNAME); if(!$mail->Send()) { echo ERROR_SYSTEM; //echo "contact : admin@logicplus.fr"; exit; } $mail->ClearAddresses(); $mail->ClearAttachments(); } ?>