本文整理汇总了PHP中Client::charger_mail方法的典型用法代码示例。如果您正苦于以下问题:PHP Client::charger_mail方法的具体用法?PHP Client::charger_mail怎么用?PHP Client::charger_mail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Client
的用法示例。
在下文中一共展示了Client::charger_mail方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: edit
/**
*
* @param float $pourcentage
* @param int $raison
* @param string $entreprise
* @param string $siret
* @param string $intracom
* @param string $nom
* @param string $prenom
* @param string $adresse1
* @param string $adresse2
* @param string $cpostal
* @param string $ville
* @param int $pays
* @param string $telfixe
* @param string $telpORt
* @param string $email
* @param int $type
*/
public function edit($pourcentage, $raison, $entreprise, $siret, $intracom, $nom, $prenom, $adresse1, $adresse2, $adresse3, $cpostal, $ville, $pays, $telfixe, $telpORt, $email, $type)
{
$this->pourcentage = $pourcentage;
$this->raison = $raison;
$this->entreprise = $entreprise;
$this->siret = $siret;
$this->intracom = $intracom;
$this->nom = $nom;
$this->prenom = $prenom;
$this->adresse1 = $adresse1;
$this->adresse2 = $adresse2;
$this->adresse3 = $adresse3;
$this->cpostal = $cpostal;
$this->ville = $ville;
$this->pays = $pays;
$this->telfixe = $telfixe;
$this->telport = $telpORt;
if ($this->email != $email) {
$this->email = '';
$testClientEmailUnicity = new Client();
if (filter_var($email, FILTER_VALIDATE_EMAIL) && !$testClientEmailUnicity->charger_mail($email)) {
$this->email = $email;
}
}
$this->pourcentage = $pourcentage;
$this->type = $type == 'on' ? 1 : 0;
$this->tryUpdate();
$this->redirect();
}
示例2: Client
$client->lang = ActionsLang::instance()->get_id_langue_courante();
$parrain = new Client();
if ($parrain->charger_ref($id_parrain)) {
$client->parrain = $parrain->id;
} else {
$parrain = 0;
}
$client->motdepasse = genpass(8);
$pass = $client->motdepasse;
if ($client->raison != "" && $client->prenom != "" && $client->nom != "" && $client->email != "" && $client->motdepasse != "" && $client->email && !$client->existe($email1) && $client->adresse1 != "" && $client->cpostal != "" && $client->ville != "" && $client->pays != "") {
$client->crypter();
$client->add();
$raisondesc = new Raisondesc($client->raison, ActionsLang::instance()->get_id_langue_courante());
$paysdesc = new Paysdesc();
$paysdesc->charger($client->pays);
$rec = $client->charger_mail($client->email);
$message = new Message();
$message->charger("creation_client");
$messagedesc = new Messagedesc();
$messagedesc->charger($message->id);
$nomsite = new Variable("nomsite");
$urlsite = new Variable("urlsite");
$emailcontact = new Variable("emailcontact");
$messagedesc->description = str_replace("__NOMSITE__", $nomsite->valeur, $messagedesc->description);
$messagedesc->description = str_replace("__EMAIL__", $client->email, $messagedesc->description);
$messagedesc->description = str_replace("__MOTDEPASSE__", $pass, $messagedesc->description);
$messagedesc->description = str_replace("__URLSITE__", $urlsite->valeur, $messagedesc->description);
$messagedesc->description = str_replace("__NOM__", $client->nom, $messagedesc->description);
$messagedesc->description = str_replace("__PRENOM__", $client->prenom, $messagedesc->description);
$messagedesc->description = str_replace("__ADRESSE1__", $client->adresse1, $messagedesc->description);
$messagedesc->description = str_replace("__ADRESSE2__", $client->adresse2, $messagedesc->description);
示例3: createOrder
public function createOrder($facturation_raison, $facturation_entreprise, $facturation_nom, $facturation_prenom, $facturation_adresse1, $facturation_adresse2, $facturation_adresse3, $facturation_cpostal, $facturation_ville, $facturation_tel, $facturation_pays, $livraison_raison, $livraison_entreprise, $livraison_nom, $livraison_prenom, $livraison_adresse1, $livraison_adresse2, $livraison_adresse3, $livraison_cpostal, $livraison_ville, $livraison_tel, $livraison_pays, $type_paiement, $type_transport, $fraisport, $remise, $client_selected, $ref_client, $email, \Panier $panier, $applyClientDiscount, $callMail, $callPayment)
{
$client = new Client();
if ($client_selected == 1) {
$clientOK = $client->charger_ref($ref_client);
} else {
if ($email != '' && $client->charger_mail($email)) {
$existeDeja = 1;
} elseif ($email != '' && !filter_var($email, FILTER_VALIDATE_EMAIL)) {
$badFormat = 1;
} else {
$client->email = $email;
$client->raison = $facturation_raison;
$client->entreprise = $facturation_entreprise;
$client->prenom = $facturation_prenom;
$client->nom = $facturation_nom;
$client->adresse1 = $facturation_adresse1;
$client->adresse2 = $facturation_adresse2;
$client->adresse3 = $facturation_adresse3;
$client->cpostal = $facturation_cpostal;
$client->ville = $facturation_ville;
$client->tel = $facturation_tel;
$client->pays = $facturation_pays;
$pass = genpass(8);
$client->motdepasse = $pass;
}
}
$facturationAddress = new Venteadr();
$facturationAddress->raison = $facturation_raison;
$facturationAddress->entreprise = $facturation_entreprise;
$facturationAddress->prenom = $facturation_prenom;
$facturationAddress->nom = $facturation_nom;
$facturationAddress->adresse1 = $facturation_adresse1;
$facturationAddress->adresse2 = $facturation_adresse2;
$facturationAddress->adresse3 = $facturation_adresse3;
$facturationAddress->cpostal = $facturation_cpostal;
$facturationAddress->ville = $facturation_ville;
$facturationAddress->tel = $facturation_tel;
$facturationAddress->pays = $facturation_pays;
$livraisonAddress = new Venteadr();
$livraisonAddress->raison = $livraison_raison;
$livraisonAddress->entreprise = $livraison_entreprise;
$livraisonAddress->prenom = $livraison_prenom;
$livraisonAddress->nom = $livraison_nom;
$livraisonAddress->adresse1 = $livraison_adresse1;
$livraisonAddress->adresse2 = $livraison_adresse2;
$livraisonAddress->adresse3 = $livraison_adresse3;
$livraisonAddress->cpostal = $livraison_cpostal;
$livraisonAddress->ville = $livraison_ville;
$livraisonAddress->tel = $livraison_tel;
$livraisonAddress->pays = $livraison_pays;
$order = new Commande();
$order->date = date("Y-m-d H:i:s");
$order->livraison = "L" . date("ymdHis") . strtoupper(ereg_caracspec(substr($client->prenom, 0, 3)));
$order->transport = $type_transport;
$order->paiement = $type_paiement;
$order->statut = Commande::NONPAYE;
$order->transaction = genid($order->id, 6);
$module_paiement = new Modules();
$module_paiement->charger_id($type_paiement);
if ($facturationAddress->raison != "" && $facturationAddress->prenom != "" && $facturationAddress->nom != "" && $facturationAddress->adresse1 != "" && $facturationAddress->cpostal != "" && $facturationAddress->ville != "" && $facturationAddress->pays != "" && $livraisonAddress->raison != "" && $livraisonAddress->prenom != "" && $livraisonAddress->nom != "" && $livraisonAddress->adresse1 != "" && $livraisonAddress->cpostal != "" && $livraisonAddress->ville != "" && $livraisonAddress->pays != "" && $order->transport != "" && is_numeric($fraisport) && $fraisport >= 0 && is_numeric($remise) && $remise >= 0 && $module_paiement->actif && $order->paiement != "" && $panier->nbart > 0 && ($clientOK || $client_selected != 1 && !$existeDeja && !$badFormat) && $email != '') {
$facturationAddress->id = $facturationAddress->add();
$livraisonAddress->id = $livraisonAddress->add();
if (!$client->id) {
$client->crypter();
$client->id = $client->add();
$client->ref = date("ymdHi") . genid($client->id, 6);
$client->maj();
ClientAdmin::getInstance()->sendMailCreation($client, $pass);
}
$devise = ActionsDevises::instance()->get_devise_courante();
$order->adrfact = $facturationAddress->id;
$order->adrlivr = $livraisonAddress->id;
$order->client = $client->id;
$order->devise = $devise->id;
$order->taux = $devise->taux;
$order->lang = ActionsLang::instance()->get_id_langue_courante();
$order->id = $order->add();
$order->ref = "C" . date("ymdHi") . genid($order->id, 6);
$order->maj();
$total = 0;
foreach ($panier->tabarticle as $pos => $article) {
$venteprod = new Venteprod();
$dectexte = "\n";
$stock = new Stock();
foreach ($article->perso as $perso) {
$declinaison = new Declinaison();
$declinaisondesc = new Declinaisondesc();
if (is_numeric($perso->valeur) && ActionsModules::instance()->instancier($module_paiement->nom)->defalqcmd) {
// diminution des stocks de déclinaison si on est sur un module de paiement qui défalque de suite
$stock->charger($perso->valeur, $article->produit->id);
$stock->valeur -= $article->quantite;
$stock->maj();
}
$declinaison->charger($perso->declinaison);
$declinaisondesc->charger($declinaison->id);
// recup valeur declidisp ou string
if ($declinaison->isDeclidisp($perso->declinaison)) {
$declidisp = new Declidisp();
$declidispdesc = new Declidispdesc();
//.........这里部分代码省略.........
示例4: chmdp
function chmdp($email, $urlok = "", $urlerr = "")
{
$tclient = new Client();
if ($tclient->charger_mail($email)) {
$msg = new Message();
$msgdesc = new Messagedesc();
$pass = genpass(8);
$tclient->motdepasse = $pass;
$tclient->crypter();
$tclient->maj();
$msg->charger("changepass");
$msgdesc->charger($msg->id);
$sujet = $msgdesc->titre;
$corps = $msgdesc->description;
$corpstext = $msgdesc->descriptiontext;
$nomsite = Variable::lire("nomsite");
$corps = str_replace("__NOMSITE__", $nomsite, $corps);
$corps = str_replace("__MOTDEPASSE__", $pass, $corps);
$corps = str_replace("__URLSITE__", urlfond(), $corps);
$corps = str_replace("__NOM__", $tclient->nom, $corps);
$corps = str_replace("__PRENOM__", $tclient->prenom, $corps);
$corps = str_replace("__EMAIL__", $tclient->email, $corps);
$corpstext = str_replace("__NOMSITE__", $nomsite, $corpstext);
$corpstext = str_replace("__MOTDEPASSE__", $pass, $corpstext);
$corpstext = str_replace("__URLSITE__", urlfond(), $corpstext);
$corpstext = str_replace("__NOM__", $tclient->nom, $corpstext);
$corpstext = str_replace("__PRENOM__", $tclient->prenom, $corpstext);
$corpstext = str_replace("__EMAIL__", $tclient->email, $corpstext);
$emailfrom = Variable::lire("emailfrom");
Mail::envoyer($tclient->prenom . " " . $tclient->nom, $tclient->email, $nomsite, $emailfrom, $sujet, $corps, $corpstext);
redirige_action($urlok, '');
} else {
redirige_action($urlerr, urlfond("mdperreur"));
}
}
示例5: Client
$clientToAdd->telport = strip_tags($telport);
if (filter_var($email, FILTER_VALIDATE_EMAIL) && $email) {
$clientToAdd->email = strip_tags($email);
}
$clientToAdd->adresse1 = strip_tags($adresse1);
$clientToAdd->adresse2 = strip_tags($adresse2);
$clientToAdd->adresse3 = strip_tags($adresse3);
$clientToAdd->cpostal = strip_tags($cpostal);
$clientToAdd->ville = strip_tags($ville);
$clientToAdd->siret = strip_tags($siret);
$clientToAdd->intracom = strip_tags($intracom);
$clientToAdd->pays = strip_tags($pays);
$clientToAdd->type = $type == 'on' ? 1 : 0;
$clientToAdd->lang = ActionsLang::instance()->get_id_langue_courante();
$clientMentor = new Client();
if ($clientMentor->charger_mail($parrain)) {
$clientToAdd->parrain = $clientMentor->id;
}
$pass = genpass(8);
$clientToAdd->motdepasse = $pass;
if ($clientToAdd->raison != "" && $clientToAdd->prenom != "" && $clientToAdd->nom != "" && $clientToAdd->email != "" && $clientToAdd->motdepasse != "" && $clientToAdd->email && !$clientToAdd->existe($email) && $clientToAdd->adresse1 != "" && $clientToAdd->cpostal != "" && $clientToAdd->ville != "" && $clientToAdd->pays != "" && $clientMentor->email == $parrain) {
$clientToAdd->crypter();
$clientToAdd->id = $clientToAdd->add();
$clientToAdd->ref = date("ymdHi") . genid($clientToAdd->id, 6);
$clientToAdd->maj();
ClientAdmin::getInstance()->sendMailCreation($clientToAdd, $pass);
ActionsModules::instance()->appel_module("ajoutclient", $clientToAdd);
redirige('client_visualiser.php?ref=' . $clientToAdd->ref);
} else {
$adderror = 1;
}
示例6: Client
$client->adresse2 = strip_tags($adresse2);
$client->adresse3 = strip_tags($adresse3);
$client->cpostal = strip_tags($cpostal);
$client->ville = strip_tags($ville);
$client->siret = strip_tags($siret);
$client->intracom = strip_tags($intracom);
$client->pays = strip_tags($pays);
if ($revendeur == "on") {
$client->revendeur = 1;
} else {
$client->revendeur = 0;
}
$client->type = "0";
$testcli = new Client();
if ($parrain != "") {
if ($testcli->charger_mail($parrain)) {
$parrain = $testcli->id;
} else {
$parrain = -1;
}
} else {
$parrain = 0;
}
$client->motdepasse = genpass(8);
$pass = $client->motdepasse;
if ($client->raison != "" && $client->prenom != "" && $client->nom != "" && $client->email != "" && $client->motdepasse != "" && $client->email && !$client->existe($email1) && $client->adresse1 != "" && $client->cpostal != "" && $client->ville != "" && $client->pays != "") {
$client->crypter();
$client->add();
$rec = $client->charger_mail($client->email);
$message = new Message();
$message->charger("creation_client");