function sendreceipt($emailkvittering, $OrderID, $email, $firstname, $middlename, $lastname) { // global $db_conn, $transact, $today, $firstname, $middlename, $lastname, $email, $Attempts; $subject = "Kvittering for betaling til KBHFF, ordre $OrderID"; if ($middlename == '') { $mname = " "; } else { $mname = " $middlename "; } $mailcontent = "Kære $firstname$mname$lastname\n" . $emailkvittering . "\nMed venlig hilsen\nKBHFF web-robotten"; $fromaddress = "*****@*****.**"; sendenkeltmail ($subject,$mailcontent,$email, $fromaddress); } // End sendreceipt
function send_new_membermail($uid) { $data = $this->retrieve_by_uid($uid); $keydata = $this->set_user_activation_key($uid); $this->db->select('division_newmemberinfo.support, division_newmemberinfo.welcome'); $this->db->from('ff_division_newmemberinfo, ff_division_members'); $this->db->where('ff_division_newmemberinfo.division = ff_division_members.division'); $this->db->where('division_members.member', (int) $uid); $query = $this->db->get(); if ($query->num_rows() > 0) { $row = $query->row(); $support = $row->support; $welcome = $row->welcome; } else { $support = '*****@*****.**'; $welcome = 'Du kan tilmelde dig vagter på: http://kbhff.wikispaces.com/Vagtplan'; } $subject = "Adgang til din personlige side på KBHFF "; $mailcontent = 'Kære ' . utf8_decode($data['0']['firstname'] . ' ' . $data['0']['middlename'] . ' ' . $data['0']['lastname']) . "\n\n" . "Som medlem af KBHFF får du hermed din personlige login-information.\n\n" . "Adresse: https://medlem.kbhff.dk/\n" . 'Dit medlemsnummer: ' . $data['0']['uid'] . "\n\n" . "Første gang du logger på, skal du vælge dit kodeord. Gå ind på følgende adresse:\n\n" . '<a href="https://medlem.kbhff.dk/login/resetpassword/' . $data['0']['uid'] . '/' . $keydata['0']['user_activation_key'] . '">' . 'https://medlem.kbhff.dk/login/resetpassword/' . $data['0']['uid'] . '/' . $keydata['0']['user_activation_key'] . "</a>\n\n" . "Vælg dit personlige kodeord - og husk det.\n\n" . "Derefter kan du logge ind, opdatere din kontaktinformation, bestille og betale poser m.m.\n\n" . utf8_decode("{$support}\n{$welcome}\n"); sendenkeltmail($subject, $mailcontent, $data['0']['email'], '*****@*****.**', $data['0']['firstname'] . ' ' . $data['0']['middlename'] . ' ' . $data['0']['lastname']); }
private function _sendinfomail($email, $firstname, $middlename, $lastname, $medlemsnummer, $user_activation_key) { $subject = "Adgangskode til KBHFF"; $mailcontent = "Kære {$firstname}{$middlename} {$lastname}\n\n" . "Du (eller en anden på dine vegne) har bedt om at få nulstillet\n" . "kodeordet til KBHFF medlemssektionen.\n\n" . "Adresse: https://medlem.kbhff.dk/\n" . "Dit medlemsnummer: {$medlemsnummer}\n" . "Hvis du skal nulstille dit kodeord, skal du besøge følgende adresse. Ellers kan du bare ignorere denne e-mail, så vil intet ske.\n\n" . '<a href="https://medlem.kbhff.dk/login/resetpassword/' . $medlemsnummer . '/' . $user_activation_key . '">' . 'https://medlem.kbhff.dk/login/resetpassword/' . $medlemsnummer . '/' . $user_activation_key . "</a>\n\n" . "Med venlig hilsen\n" . "KBHFF web-robotten"; sendenkeltmail($subject, $mailcontent, $email, '*****@*****.**', "{$firstname} {$middlename} {$lastname}"); }