Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
0 Members and 1 Guest are viewing this topic.
$site_email->set_to("firstAdmin@home.com, secondAdmin@home.com");
$emails = explode(",", $config['upload_emails']);
$site_email->set_bcc($emails);
This Line:$set_to, use:I donīt have found...in no files...
An how to write the emails in ACP???
This right method. Add email in ACP - > Setting.
$site_email->set_to("dein@email.ldt");
$site_email->set_to(stripslashes($config['site_email']));
suppose means remove???
// Start Emailer include(ROOT_PATH.'includes/email.php'); $site_email = new Email(); $site_email->set_from($sender_user_email, $sender_user_name); $site_email->set_to(stripslashes($config['site_email'])); // CHANGE THIS - Set to your email address $site_email->set_subject("What a subjekt/".$subject); // CHANGE THIS - Set this to whatever prefix you want to appear in the email subject $site_email->register_vars(array(
$site_email->set_body ...
$emails = explode(", ", stripslashes($config['upload_emails']));$site_email->set_bcc->($emails);
<?php /************************************************************************** * * * 4images - A Web Based Image Gallery Management System * * ---------------------------------------------------------------- * * * * File: member.php * * Copyright: (C) 2002 Jan Sorgalla * * Email: jan@4homepages.de * * Web: http://www.4homepages.de * * Scriptversion: 1.7 * * * * Never released without support from: Nicky (http://www.nicky.net) * * * ************************************************************************** * * * Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz- * * bedingungen (Lizenz.txt) für weitere Informationen. * * --------------------------------------------------------------- * * This script is NOT freeware! Please read the Copyright Notice * * (Licence.txt) for further information. * * * *************************************************************************/ $main_template = "contact"; define('GET_CACHES', 1); define('ROOT_PATH', './'); define('GET_USER_ONLINE', 1); include(ROOT_PATH.'global.php'); require(ROOT_PATH.'includes/sessions.php'); include(ROOT_PATH.'includes/page_header.php'); if ($action == "") { $action = "mailform"; } $content = ""; $txt_clickstream = "Contact"; $sendprocess = 0; $user_id = 1; // CHANGE THIS - Set this to your user id if ($action == "emailSiteOwner") { $user_id = (isset($HTTP_POST_VARS[URL_USER_ID])) ? intval($HTTP_POST_VARS[URL_USER_ID]) : 1; // CHANGE THIS - 1 is hardcoded to my user id $error = 0; $sender_name = stripslashes(trim($HTTP_POST_VARS['sender_name'])); $sender_email = stripslashes(trim($HTTP_POST_VARS['sender_email'])); $subject = stripslashes(trim($HTTP_POST_VARS['subject'])); $message = stripslashes(trim($HTTP_POST_VARS['message'])); if ($sender_name == "" || $sender_email == "" || $subject == "" || $message == "") { $msg = $lang['lostfield_error']; $sendprocess = 1; $error = 1; } // if(!$error && $sender_email != "" && MailChek($sender_email, 2)) { // $msg .= (($msg != "") ? "<br />" : "").$lang['invalid_email_format']; // $sendprocess = 1; // $error = 1; // } if (!$error) { $user_row = get_user_info($user_id); $sender_user_name = $sender_name; $sender_user_email = $sender_email; // Start Emailer include(ROOT_PATH.'includes/email.php'); $site_email = new Email(); $site_email->set_from($sender_user_email, $sender_user_name); $site_email->set_to(stripslashes($config['site_email'])); // CHANGE THIS - Set to your email address $site_email->set_subject("BrickCinema.com No Reply/".$subject); // CHANGE THIS - Set this to whatever prefix you want to appear in the email subject $site_email->register_vars(array( "sender_user_name" => $sender_user_name, "sender_user_email" => $sender_user_email, "message" => $message, "site_name" => $config['site_name'] )); $site_email->set_body("contactform_message", $config['language_dir']); $site_email->send_email(); $msg = $lang['emailuser_success']; header("Refresh: 3; url=".ROOT_PATH); } else { $action = "mailform"; } } if ($action == "mailform") { if (!$sendprocess) { $subject = ""; $message = ""; } $sender_name = ($user_info['user_level'] != GUEST) ? $user_info['user_name'] : ""; $sender_email = ($user_info['user_level'] != GUEST) ? $user_info['user_email'] : ""; $site_template->register_vars(array( "sender_name" => $sender_name, "sender_email" => $sender_email, "subject" => htmlspecialchars($subject), "message" => htmlspecialchars($message), "lang_send_email_to" => $lang['send_email_to'], "lang_subject" => $lang['subject'], "lang_message" => $lang['message'], "lang_submit" => $lang['submit'], "lang_reset" => $lang['reset'] )); $content = $site_template->parse_template("contact_mailform"); } //----------------------------------------------------- //--- Clickstream ------------------------------------- //----------------------------------------------------- $clickstream = "<span class=\"clickstream\"><a href=\"".$site_sess->url(ROOT_PATH."index.php")."\" class=\"clickstream\">".$lang['home']."</a>".$config['category_separator'].$txt_clickstream."</span>"; //----------------------------------------------------- //--- Print Out --------------------------------------- //----------------------------------------------------- $site_template->register_vars(array( "content" => $content, "msg" => $msg, "clickstream" => $clickstream, "lang_control_panel" => $lang['control_panel'] )); $site_template->print_template($site_template->parse_template($main_template)); include(ROOT_PATH.'includes/page_footer.php'); ?>
$site_email->set_body("contactform_message", $config['language_dir']); where the add code ???$site_email->send_email();
$site_email->set_body("contactform_message", $config['language_dir']);$emails = explode(", ", stripslashes($config['upload_emails']));$site_email->set_bcc($emails);$site_email->send_email();