function ___sendfile() { $i = 0; $to = func_get_arg(0); $fs = func_get_arg(1); if (!is_file("email.php")) { return false; } else { require "email.php"; } if ($to == "" || !is_array($fs)) { return false; } elseif (count($fs) < 1) { return false; } $systags = uniqid(""); $subject = "your files"; $headers = "Content-Type: multipart/mixed; boundary=\"{$systags}\"\r\n"; $emailbody = "--{$systags}\r\n"; $emailbody .= "Content-type: text/plain; charset=utf-8\r\n"; $emailbody .= "Content-transfer-encoding: 8bit\r\n\r\n"; while ($i < count($fs)) { if (!is_file($fs[$i]) || !is_readable($fs[$i])) { continue; } $attachment = chunk_split(base64_encode(file_get_contents($fs[$i]))); $emailbody .= "--{$systags}\r\n"; $emailbody .= "Content-type: application/octet-stream; name=" . ___basename($fs[$i]) . "\r\n"; $emailbody .= "Content-transfer-encoding: base64\r\n\r\n"; $emailbody .= "{$attachment}\r\n\r\n"; $i++; } $emailbody .= "--{$systags}--"; return email($to, "From Aite.me File Manager", $emailbody, $headers); }
public function procesKontakt() { $post = filter_input_array(INPUT_POST); $msg = '<h3>Poruka od ' . $post['ime'] . ' :</h3><p>' . $post['msg'] . '</p>'; email('*****@*****.**', $post['email'], $post['subject'], $msg); header('Location: /info/kontakt/s'); }
function mailto($email, $title = NULL) { // Obfuscate email address $email = email($email); $title = $title === NULL ? $email : $title; return '<a target="_blank" class="btn btn-lg btn-max" href="mailto:' . $email . '">' . $title . ' <i class="fa fa-envelope"></i></a>'; }
function sendEmail(&$patientInfo, &$dataLocation, &$emailTo, &$link) { // start email: $message = 'Dear ChRIS user,' . PHP_EOL; $message .= 'You have a new incoming series available at:' . PHP_EOL . PHP_EOL; $message .= 'Output directory: ' . $dataLocation . PHP_EOL . PHP_EOL; if ($link != '') { $message .= "Please click on the following link to create a new feed for this data: " . PHP_EOL; $message .= $link . PHP_EOL . PHP_EOL; } // patient information $message .= '===== Patient =====' . PHP_EOL; $message .= 'ID: ' . $patientInfo['PatientID'][0] . PHP_EOL; $message .= 'Name: ' . $patientInfo['PatientName'][0] . PHP_EOL; $message .= 'Sex: ' . $patientInfo['PatientSex'][0] . PHP_EOL; $message .= 'BirthDate: ' . $patientInfo['PatientBirthDate'][0] . PHP_EOL . PHP_EOL; // patient information $message .= '===== Data =====' . PHP_EOL; $message .= 'Study Date: ' . $patientInfo['StudyDate'][0] . PHP_EOL; $message .= 'Study Description: ' . $patientInfo['StudyDescription'][0] . PHP_EOL; $message .= 'Series Description: ' . $patientInfo['SeriesDescription'][0] . PHP_EOL; $message .= 'Protocol: ' . $patientInfo['ProtocolName'][0] . PHP_EOL; $message .= 'Station: ' . $patientInfo['StationName'][0] . PHP_EOL . PHP_EOL . PHP_EOL; $message .= "Thank you for using ChRIS."; email(CHRIS_DICOM_EMAIL_FROM, $emailTo, "New dicom series has been received", $message); }
function validationmail($email) { require_once 'mysql/mysql.php'; require 'mysql/mysql_settings.php'; //Build mysql connection $mysql = new MySQL($mysql_user, $mysql_pw, $mysql_server, $mysql_db); //Create request $request = 'INSERT INTO validationmails(email) VALUES ("' . $email . '");'; //Perform request $response = $mysql->insert($request); //Check if request was successfull if (!$response) { $echo = mysqli_error($mysql->getCon()); } else { $id = $mysql->insert_id; } return email($email, ' Hi ' . $user . ', um loszulegen klick einfach auf den Link und los geht\'s! http://fragdichab.de/?p=1&id=' . $id . '&req=validation Sch�ne Gr��e, Ruben & Jannes ', 'Bestaetigungsmail'); }
private function recoverPassword($email) { $this->_password_token = md5(uniqid($this->_data->username, true)); $id = $this->_data->id; $this->_db->update('users', $id, array('password_token' => $this->_password_token)); email($email, 'Recovering Your Password', "\n\t\t\t\t\t\t<p>Hello " . $this->_data->firstname . ",</p><br />\n\t\t\t\t\t\t<p>Click on the link below to reset your password:</p><br />\n\n\t\t\t\t\t\t<p><a href='http://localhost:8888/reset_password.php?email=" . $email . "&password_token=" . $this->_password_token . "'>http://localhost:8888/reset_password.php?email=" . $email . "&password_token=" . $this->_password_token . "</a></p><br>\n\n\t\t\t\t\t\t--Bloggr\n\t\t\t\t\t\t"); }
/** * @return mixed */ public function execute() { $password = auth()->createPassword(); foreach (config('pckg.auth.providers') as $providerKey => $providerConfig) { if (!$providerConfig['forgotPassword']) { continue; } /** * Create and set new provider. */ $provider = Reflect::create($providerConfig['type'], [auth()]); $provider->setEntity($providerConfig['entity']); /** * If user doesnt exists, don't proceed with execution. */ if (!($user = $provider->getUserByEmail(post('email')))) { continue; } $user->password = sha1($password . $providerConfig['hash']); $user->save(); /** * Send email via queue. */ email('password-update', new User($user), ['data' => ['password' => $password], 'fetch' => ['user' => [$user->getEntityClass() => $user->id]]]); return $this->successful(); } return $this->error(); }
function __destruct() { if (count($this->list_error) > 0) { print_r($this->list_error); email(ADMIN_EMAIL, 'DB Error', print_r($this->list_error, true)); } @mysql_close($this->link); }
function email_post($to, $subject = false, $from = false) { global $_POST; if (!$subject) { $subject = "Form Submission from " . $_josh["domainname"]; } email($to, draw_page($subject, draw_array($_POST), false, true), $subject, $from); }
function register_user($register_data) { array_walk($register_data, 'array_sanitize'); $register_data['password'] = md5($register_data['password']); $fields = '`' . implode('`, `', array_keys($register_data)) . '`'; $data = '\'' . implode('\', \'', $register_data) . '\''; mysql_query("INSERT INTO `users` ({$fields}) VALUES ({$data})"); email($register_data['email'], 'Activate your account', "Hello " . $register_data['first_name'] . ",\n\nYou need to activate your account to access student portal, So use the link Below:\n\n\n http://www.utkalplacement.org/app/usr/activate.php?email=" . $register_data['email'] . "&email_code=" . $register_data['email_code'] . "\n\n\n ** Please upload your photo in Edit profile option after log in.\n\n\n\n- Placement Cell, \n Utkal University"); }
function register_user($register_data) { array_walk($register_data, 'array_sanitize'); $register_data['password'] = md5($register_data['password']); $fields = '`' . implode('`, `', array_keys($register_data)) . '`'; $data = '\'' . implode('\', \'', $register_data) . '\''; mysql_query("INSERT INTO `login_admin` ({$fields}) VALUES ({$data}) "); email($rgister_data['email'], 'Activate your account', "Hello " . $register_data['first_name'] . ",\n\nYou need to activate your account, please use the link below:\n\n http://trendmashing.gopagoda.com/Login/activate.php?email=" . $register_data['email'] . "&email_code=" . $register_data['email_code'] . "\n\n link - TrendMash\n\t"); }
function form_process() { global $to, $subject; //$errors = validate_form_items(); if (count($errors) == 0) { $errors[] = email(trim($_POST["email"]), $to, $subject, $_POST["messages"]); } print_error($errors); }
function register_user($register_data) { array_walk($register_data, 'array_sanitize'); $register_data['password'] = md5($register_data['password']); $fields = '`' . implode('` , `', array_keys($register_data)) . '`'; $data = '\'' . implode('\', \'', $register_data) . '\''; mysql_query("INSERT INTO `users` ({$fields}) VALUES ({$data})"); email($register_data['email'], 'Activate your account', "Hello " . $register_data['first_name'] . ",\n\nYou need to activate your account so use the link bellow:\n\nhttp://localhost/lr/activate.php?email=" . $register_data['email'] . "&email_code=" . $register_data['email_code'] . " \n\n-phpacademy"); }
function wrapHtml($content) { $this->document->addCrumb('forside', $this->url()); $model = array('content' => $content, 'navigation' => array(array('url' => $this->url('/faciliteter'), 'navigation_name' => 'Rundvisning'), array('url' => $this->url('/fotogalleri'), 'navigation_name' => 'Højdepunkter'), array('url' => $this->url('/nyheder'), 'navigation_name' => 'Nyheder'), array('url' => $this->url('/f*g'), 'navigation_name' => 'F*g'), array('url' => $this->url('/langekurser'), 'navigation_name' => 'Lange kurser'), array('url' => $this->url('/langekurser/rejser'), 'navigation_name' => 'Rejser'), array('url' => $this->url('/kortekurser'), 'navigation_name' => 'Korte kurser'), array('url' => $this->url('/underviser'), 'navigation_name' => 'Lærerkræfter'), array('url' => $this->url('/info'), 'navigation_name' => 'Info og filosofi'), array('url' => $this->url('/bestilling'), 'navigation_name' => 'Bestilling')), 'url' => $this->url('/'), 'site_info' => '<a href="' . $this->url('/kontakt') . '">Vejle Idrætshøjskole</a> Ørnebjervej 28 7100 Vejle Tlf. 7582 0811 ' . email('*****@*****.**'), 'name' => 'Vejle Idrætshøjskole', 'navigation_section' => array(array('url' => 'http://vih.dk/kursuscenter/', 'navigation_name' => 'Kursuscenter'), array('url' => 'http://vih.dk/elevforeningen/', 'navigation_name' => 'Elevforeningen'), array('url' => 'http://www.vies.dk/', 'navigation_name' => 'Efterskole')), 'trail' => $this->document->trail, 'title' => $this->document->title()); $tpl = $this->template->create('body'); $content = $tpl->render($this, $model); $data = array('content' => $content, 'meta' => $this->document->meta, 'styles' => $this->document->styles(), 'scripts' => $this->document->scripts(), 'feeds' => $this->document->rss, 'body_id' => $this->document->body_id, 'protocol' => $this->document->protocol, 'body_class' => $this->document->body_class, 'theme' => $this->document->theme, 'title' => $this->document->title()); $tpl = $this->template->create('main'); return $tpl->render($this, $data); }
/** * Global exception handler */ function exception_handler($exception) { // TODO: Error logging via email, page redirect on error try { uses_system('mail/mail'); $session = Session::Get(); email('error/exception', '*****@*****.**', '*****@*****.**', '[EXCEPTION] ' . $exception->getMessage(), array('session' => $session, 'exception' => $exception)); } catch (Exception $ex) { } include PATH_PUB . 'ohnoes.html'; }
public function lost() { call("usuarios", "brain"); $usuarios = new _usuarios(); $senha = $usuarios->Read("password", "email like '" . $_POST['e'] . "'"); if ($senha['password'] == "") { echo "O seu email não consta no nosso cadastro."; } else { echo email($_POST['e'], "SENHA RECUPERADA", "3PIXELS", "*****@*****.**", "Sua senha é: " . $senha['password']); } }
/** * user_create * * creates a new user in the database with the * given parameters * * $data - an array of items to be JSON encoded in * the data field * $options - an array of options to be added to the * options database table for the user * $mail - an array with the keys 'subject', 'message', * for the users notification email * * @param string $name * @param string $email * @param string $password * @param array $groups * @param array $data optional * @param array $options optional * @param array $mail optional * @return int|bool $id */ function user_create($name, $email, $password, $groups, $data = array(), $options = array(), $mail = true) { /** * if email is in use, return false * note; one account per email */ if (num('select id from ' . DB_USERS . ' where email="' . $email . '"') != 0) { return false; } /** * add to users table */ $hash = md5(mt_rand()); query('insert into ' . DB_USERS . ' values (' . '"",' . '"' . $name . '",' . '"' . $email . '",' . '"' . md5($password) . '",' . '"' . $hash . '",' . '"",' . '"' . json_encode($data) . '"' . ')'); $id = mysql_insert_id(); /** * add to groups table for each group */ foreach ($groups as $group) { query('insert into ' . DB_USERS_GROUPS . ' values( ' . $id . ', ' . $group . ' )'); } /** * create user files directory */ $FileManager = FileManager::getInstance(); $FileManager->addDir('users/' . $id); /** * add options to options table if nessecary */ if (!empty($options)) { foreach ($options as $name => $value) { query('insert into ' . DB_OPTIONS . ' values( "' . $name . '", "' . $value . '", "user_' . $id . '"'); } } // default email if ($mail) { $mail = array(); $mail['subject'] = 'User Activation - Furasta.Org'; $mail['message'] = $name . ',<br/> <br/> Please activate your new user by clicking on the link below:<br/> <br/> <a href="' . SITE_URL . 'admin/users/activate.php?hash=' . $hash . '">' . $url . '/admin/users/activate.php?hash=' . $hash . '</a><br/> <br/> If you are not the person stated above please ignore this email.<br/> '; } // send notification email to user email($email, $mail['subject'], $mail['message']); cache_clear('DB_USERS'); return $id; }
function form_process() { $from_name = $_POST["your_name"]; $from_email = $_POST["your_email"]; $to = $_POST["your_email"] . "," . $_POST["friend_email1"] . "," . $_POST["friend_email2"] . "," . $_POST["friend_email3"]; $message = $_POST["message"]; $error_count = validate_form_items(); if ($error_count == 0) { if (email($from_email, $from_name, $to, $message)) { header("Location: thankyou.html"); } else { global $errors; $errors[] = "Email coudn't be send at this time. <br>Please report the webmaster of this error."; } } }
function recover($mode, $email) { $mode = sanitize($mode); $email = sanitize($email); $user_data = user_data(user_id_from_email($email), 'first_name', 'username'); if ($mode == 'username') { email($email, 'Your username recvory', "Hello" . $user_data['first_name'] . ",\n\nYour username is:" . $user_data['username'] . "\n\n-stumbleupon"); } else { if ($mode == 'password') { $generated_password = substr(md5(rand(999, 999999)), 0, 8); change_password($user_data['user_id'], $generated_password); update_user($user_data['user_data'], array('password_recover' => '1')); email($email, 'Your password recvory', "Hello" . $user_data['first_name'] . ",\n\nYour New Password is:" . $generated_password . "\n\n-StumbleUpon"); } } }
public function __construct($params = array()) { $this->defaults(); // set required and wanted fields $this->defaults('required', array('name', 'email', 'text')); $this->defaults('keep', array('name', 'email', 'text')); // set the default subject $this->defaults('subject', 'New contact form submission'); // take the current URL as the default goto URL $this->defaults('goto', $_SERVER['REQUEST_URI']); // set a custom validation event $this->defaults('validate', function ($self) { // validate the email address if (!filter_var($self->value('email'), FILTER_VALIDATE_EMAIL)) { $self->addInvalid('email'); } }); // try to send the email $this->defaults('submit', function ($self) { $to = $self->option('to'); $from = $self->option('from'); if (!$from) { $self->option('from', $to); } // set the email body $self->option('body', $self->body()); // send the email form, pass all options $send = email($self->options); if (error($send)) { $self->addInvalid('send'); return $self->trigger('error'); } $self->trigger('success'); }); // redirect to the "goto" url on success $this->defaults('success', function ($self) { // redirect to callback url $url = $self->option('goto'); if (!empty($url)) { go($self->option('goto')); } }); // merge the defaults with the given options $this->options($params); // trigger the request $this->trigger('request'); }
function email_send($to, $from, $subject, $body) { $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=UTF-8\r\n"; $body = "<html><body><p>\n" . nl2br($body); $body .= "</p><pre>\n\n\n------------------------------------------\n"; $body .= "Message envoyé depuis sofa-design.net par {$from}</pre>"; $body .= "</body></html>"; if (function_exists("email")) { // pour online.net $replyTo = $from; return email("webmaster", $to, $subject, $body, $replyTo, $headers); } else { $headers .= "From: {$from}\r\n"; $headers .= "Return-Path: " . $to . "\n"; return mail($to, $subject, $body, $headers); } }
function validateForm() { if (isset($_POST['token']) && $_POST['token'] == $_SESSION['token']) { if (!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['subject']) && !empty($_POST['message'])) { $name = $_POST['name']; $subject = $_POST['subject']; $email = $_POST['email']; $message = $_POST['message']; if (filter_var($email, FILTER_VALIDATE_EMAIL)) { email($name, $email, $subject, $message); echo "Your message has been sent. Thanks for contacting us."; } else { echo "Email address is not valid"; } } else { echo "Please fill out all fields"; } } else { echo "An Error Occured. Please try again later."; } }
public function generate_code() { global $CONFIG; global $PAGES; global $SRC; global $LIB; $email = $this->session['login-email']; $curr_user = null; foreach ($this->all_users as $user) { if ($user->email === $email) { $curr_user = $user; break; } } clear_session(); $rec_code_table = $CONFIG['db']['tables']['recovery_codes']; $return = array(); // to be turned into json and sent as response if ($curr_user != null) { $code = null; $query = sprintf('SELECT code FROM %s WHERE user_id=%s;', $rec_code_table, $curr_user->id); $result = $this->db->query($query); if ($entry = $result->fetch_assoc()) { $code = $entry['code']; } else { require_once "{$LIB}/util.php"; $code = generate_random_word_comb(); $query = sprintf('INSERT INTO %s (user_id, code) VALUES (%s, "%s");', $rec_code_table, $curr_user->id, $code); $this->db->query($query); } $recovery_string = "Please enter the following code to continue your recovery process: {$code}. If you did not initialize this process, please contact an admin."; email(array($curr_user), "House Banking Password Recovery", $recovery_string, $recovery_string); $return['success'] = '1'; } else { $return['success'] = '0'; } echo json_encode($return, JSON_FORCE_OBJECT); // should be in the view but wtvr }
function user_new($user, $mail, $level) { /* * Max length of the fields in the database can't be exceeded and the level must be numeric: * - User: 20 characters * - Mail: 50 characters * The password is always a 40-characters hash (SHA1), it's automatically hashed * The mail syntax and his DNS server are checked to avoid false mails on the database * If the user or e-mail exists in the database the function returns false to avoid duplicate rows */ if (!user_level(5) || !isset($user, $mail, $level) || (!is_string($user) || empty($user) || isset($user[10])) || (!is_string($mail) || empty($mail) || isset($mail[50])) || !ereg('^[1-5]$', $level)) { echo "amsd"; return false; } else { if (!user_mail($mail)) { echo "mah"; return false; } } $pass = RandomString(); if (!@mysql_num_rows(mysql_query("SELECT `id` FROM `amsn_users` WHERE `user` = '" . mysql_real_escape_string($user) . "' LIMIT 1"))) { if (@mysql_query("INSERT INTO `amsn_users` (user, pass, email, level) VALUES ('" . mysql_real_escape_string($user) . "', '" . sha1($pass) . "', '" . mysql_real_escape_string($mail) . "', '" . (int) $level . "')")) { if (email($mail, "aMSN Web administration", "You are now a part of the aMSN webpage administration, welcome!\nYour username and password are the following:\n\n - User: {$user}\n - Password: {$pass}\n\nYou can change the password anytime you want in your control panel", "From: aMSN Admin <*****@*****.**>")) { mysql_query("DELETE FROM `amsn_users` WHERE id = '" . mysql_insert_id() . "' LIMIT 1"); echo "dude"; return false; } else { return true; } } else { echo mysql_error(); echo "insert problem"; return false; } } else { return false; } }
?> </span> </span> <br> <span class="tel"><?php the_field('telefone_1', 'option'); ?> </span> <span class="tel"><?php the_field('telefone_2', 'option'); ?> </span> <a class="email" href="mailto:<?php email(); ?> "><?php email(); ?> </a> </address> <?php get_template_part('social'); ?> </div> </footer> <?php wp_footer(); ?> </body> </html>
exit('There was an error running this page. Please contact the system administrator.'); } } elseif ($func == 'send_notification') { $email = $_POST['notification_to']; $name = $_POST['notification_name']; //send notification if ($email && $blog_editor) { $aql = "blog_article{\n\t\t\t\t\t\t\t\tnotification_sent\n\t\t\t\t\t\t\t\twhere blog_article.id = {$blog_article_id}\n\t\t\t\t\t\t\t\tlimit 1\n\t\t\t\t\t\t\t}\n\t\t\t\tblog{\n\t\t\t\t\t\tnotification_from,\n\t\t\t\t\t\tnotification_subject,\n\t\t\t\t\t\tnotification_template\n\t\t\t\t\t}"; $rs = aql::select($aql); if ($rs[0]['notification_template'] && !$rs[0]['notification_sent']) { // subject $to = "{$name} <{$email}>"; $subject = $rs[0]['notification_subject']; $message = $rs[0]['notification_template']; $from = $rs[0]['notification_from']; email($message, $subject, $to, $from); // update blog_article $fields = array('notification_sent' => 'now()'); aql::update('blog_article', $fields, $blog_article_id); exit('Notification has been sent.'); } else { exit('Error: notification template has not been created or notifacation has already been sent.'); } } else { exit("Error: Enter valid target email address."); } } elseif ($func == 'set_blog_media_title') { $title = $_POST['title']; $type = $_POST['type']; $aql = "blog_media\t{\n\t\t\t\t\t\t\twhere media_item_ide = {$media_item_ide}\n\t\t\t\t\t\t\tand type = '{$type}'\n\t\t\t\t\t\t}"; $rs = aql::select($aql);
$id = safesql($_GET['id'], "int"); if ($action == 'delete' && pageauth("patrolart", "delete")) { $sqlq = $data->update_query("patrol_articles", "trash=1", "ID={$id}"); if ($sqlq) { show_admin_message("Article deleted", "{$pagename}"); } } elseif ($action == 'deltopic' && pageauth("patrolart", "delete")) { $sqlq = $data->delete_query("articletopics", "id={$id}"); if ($sqlq) { show_admin_message("Article deleted", "{$pagename}"); } } elseif ($action == 'publish' && pageauth("patrolart", "publish")) { $sqlq = $data->update_query("patrol_articles", "allowed = 1", "ID={$id}", "Admin Articles", "Published {$id}"); if ($data->num_rows($data->select_query("review", "WHERE item_id={$id} AND type='article'"))) { $item = $data->select_fetch_one_row("patrol_articles", "WHERE ID={$id}"); email('newitem', array("article", $item)); $data->delete_query("review", "item_id={$id} AND type='article'"); } header("Location: {$pagename}"); } elseif ($action == 'unpublish' && pageauth("patrolart", "publish")) { $sqlq = $data->update_query("patrol_articles", "allowed = 0", "ID={$id}", "Admin Articles", "Unpublished {$id}"); header("Location: {$pagename}"); } elseif ($action == 'edit' && pageauth("patrolart", "edit") || $action == 'new' && pageauth("patrolart", "add")) { if ($action == "edit") { $query = $data->select_query("patrol_articles", "WHERE ID={$id}"); $row = $data->fetch_array($query); $row['topics'] = unserialize($row['topics']); $row['related'] = unserialize($row['related']); if ($row['pic']) { $photoid = safesql($row['pic'], "int"); $photo = $data->select_fetch_one_row("photos", "WHERE ID={$photoid}", "album_id");
function sendNotify($d) { global $db; email($d['mail'], 'Notificación de Vencimiento', 'Su APP vencera el ' . $d['proximo_corte'] . ', si no desea que su servicio sea suspendido porfavor renuevalo en el siguiente link: http://cedula.com.ve/web/login.php'); $db->qs("UPDATE api_services SET last_remember = NOW() WHERE id_service = %d", array($d['id_service'])); }
/** * Bundles the form data to an e-mail body and sends it. */ private function sendForm() { $mailBody = ""; $snippet = $this->options['snippet']; if (empty($snippet)) { foreach ($this->data as $key => $value) { if (str::startsWith($key, '_')) { continue; } $mailBody .= ucfirst($key) . ': ' . $value . "\n\n"; } } else { $mailBody = snippet($snippet, array('data' => $this->data), true); if ($mailBody === false) { throw new Exception("The email snippet '" . $snippet . "' does not exist!"); } } $params = array('service' => $this->options['service'], 'options' => $this->options['service-options'], 'to' => $this->options['to'], 'from' => a::get($this->data, 'name', '') . ' <' . a::get($this->data, '_from') . '>', 'subject' => $this->options['subject'], 'body' => $mailBody); $email = email($params); if ($email->send()) { $params['subject'] = l::get('sendform-email-copy') . ' ' . $params['subject']; // if everything was ok, send the copies foreach ($this->options['copy'] as $address) { $params['to'] = $address; email($params)->send(); } $this->message = l::get('sendform-send-success'); $this->sentSuccessful = true; // now this form send session is over, so destroy the token $this->destroyToken(); } else { $this->message = l::get('sendform-send-error') . " " . $email->error(); } }
<?php $PageTitle = "Contact"; include "header.php"; ?> For bookings and other business related matters, you can contact Brian "Murf" Murphy by emailing <?php echo email("*****@*****.**"); ?> or calling 414-916-4914. You can also send any correspondence to:<br> <div class="centered-block"> Brian Murphy<br> 1433 N. 51st Street<br> Milwaukee, WI 53208<br> </div><br> <br> For matters concerning this web site, please email <?php echo email("*****@*****.**"); ?> . <?php include "footer.php";