本文整理汇总了PHP中Mail::To方法的典型用法代码示例。如果您正苦于以下问题:PHP Mail::To方法的具体用法?PHP Mail::To怎么用?PHP Mail::To使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mail
的用法示例。
在下文中一共展示了Mail::To方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: goContact
public function goContact()
{
include_once "libmail.php";
$m = new Mail();
$m->From($this->email . ';admin@mir-it.info');
$m->To(array('admin@mir-it.info', 'dimchazhabin@mail.ru', 'sszhukov@live.ru', 'firstalexxx@gmail.com'));
$m->Subject($this->subject);
$m->Body('Отправитель: ' . $this->name . '. ' . $this->text);
$m->Send();
}
示例2: sendMail
/**
*
*
* @param
* @access public
* @return void
*/
function sendMail()
{
$m = new Mail();
// create the mail
$m->From('noreply@webtod.com');
$m->To('davtouzet@free.fr');
$m->Subject('test mail');
$marker = array('content' => 'owi trop fat ca fonctionne');
$message = $this->template->nestedMarkerArray($marker, 'MAIL_PART');
$m->Body($message, 'utf-8');
// set the body
$m->Cc('dtouzet@mtpi.fr');
$m->Priority(4);
// set the priority to Low
$m->Send();
// send the mail
var_dump('send');
}
示例3: sendNewPass
function sendNewPass()
{
global $AppUI;
$_live_site = dPgetConfig('base_url');
$_sitename = dPgetConfig('company_name');
// ensure no malicous sql gets past
$checkusername = trim(dPgetParam($_POST, 'checkusername', ''));
$checkusername = db_escape($checkusername);
$confirmEmail = trim(dPgetParam($_POST, 'checkemail', ''));
$confirmEmail = mb_strtolower(db_escape($confirmEmail));
$q = new DBQuery();
$q->addTable('users', 'u');
$q->addQuery('u.user_id');
$q->addWhere('user_username=\'' . $checkusername . '\' AND LOWER(contact_email)=\'' . $confirmEmail . '\'');
$q->leftJoin('contacts', 'c', 'u.user_contact = c.contact_id');
if (!($user_id = $q->loadResult()) || !$checkusername || !$confirmEmail) {
$AppUI->setMsg('Invalid username or email.', UI_MSG_ERROR);
$AppUI->redirect();
}
$newpass = makePass();
$message = $AppUI->_('sendpass0', UI_OUTPUT_RAW) . ' ' . $checkusername . ' ' . $AppUI->_('sendpass1', UI_OUTPUT_RAW) . ' ' . $_live_site . ' ' . $AppUI->_('sendpass2', UI_OUTPUT_RAW) . ' ' . $newpass . ' ' . $AppUI->_('sendpass3', UI_OUTPUT_RAW);
$subject = "{$_sitename} :: " . $AppUI->_('sendpass4', UI_OUTPUT_RAW) . " - {$checkusername}";
$m = new Mail();
// create the mail
$m->From("dotProject@" . dPgetConfig('site_domain'));
$m->To($confirmEmail);
$m->Subject($subject);
$m->Body($message, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
// set the body
$m->Send();
// send the mail
$newpass = md5($newpass);
$q->clear();
$q->addTable('users');
$q->addUpdate('user_password', $newpass, true);
$q->addWhere('user_id=\'' . $user_id . '\'');
$cur = $q->exec();
if (!$cur) {
die('SQL error' . $database->stderr(true));
} else {
$AppUI->setMsg('New User Password created and emailed to you');
$AppUI->redirect();
}
}
示例4: actionSendMail
public function actionSendMail()
{
$model = new MailForm();
if (isset($_POST['MailForm'])) {
$model->attributes = $_POST['MailForm'];
}
$validator = new CEmailValidator();
if ($validator->validateValue($model->to) && $validator->validateValue($model->from)) {
$m = new Mail();
// create the mail
$m->From($model->from);
$m->To($model->to);
$m->Subject(Yii::app()->params['appName']);
$m->Body($model->body, "utf-8");
//$m->Attach ($_SERVER['DOCUMENT_ROOT'] . "/fb/hannah/soutez-o-stan/images/2011_223_0444_POUKAZKA_NA_FB_stan_spacak_triko_03.jpg", "image/jpg", "attachment", "2011_223_0444_POUKAZKA_NA_FB_stan_spacak_triko_03.jpg"); // attach toto.gif file as fun.gif
$m->Send();
echo "1";
} else {
echo "0";
}
}
示例5: notifyModerators
function notifyModerators($id, $page, $text, $userName, $name, $product, $moderators)
{
$template = new Template("./templates/newCommentToModerate.html");
$productTranslate = defined("__PRODUCT_NAME__") ? __PRODUCT_NAME__ : $product;
$subject = "[" . $productTranslate . "] " . Utils::translate('newCommentToModerate');
if (defined('__MODERATE__') && !__MODERATE__) {
$template = new Template("./templates/newUnmoderatedComment.html");
$subject = "[" . $productTranslate . "] " . Utils::translate('newUnmoderatedCommentAdded');
}
$subject .= " [" . $page . "]";
$ca = base64_encode($id . "&approved");
$cr = base64_encode($id . "&deleted");
$confirmationMsg = $template->replace(array("page" => __BASE_URL__ . $page . "#" . $id, "text" => $text, "userName" => $userName, "user" => $name, "productName" => $productTranslate, "aproveLink" => __BASE_URL__ . "oxygen-webhelp/resources/moderate.html?c=" . $ca, "deleteLink" => __BASE_URL__ . "oxygen-webhelp/resources/moderate.html?c=" . $cr));
foreach ($moderators as $key => $value) {
$mail = new Mail();
$mail->Subject($subject);
$mail->To($value);
$mail->From(__EMAIL__);
$mail->Body($confirmationMsg);
$mail->Send();
}
}
示例6: creaPDF
function creaPDF(){
$html = $this->input->post("html");
$nombreNino = $this->input->post("nombreNino");
$nombrePadrino = $this->input->post("nombrePadrino");
$idNino = $this->input->post("idParino");
$idPadrino = $this->input->post("idNino");
$nombreArchivo = $idNino."-".$idPadrino.".pdf";
$img = $this->input->post("img");
$cabecera = '<div><img src="http://yosoypadrinovapormicuenta.com/media/img/logovxmc.png" style="float:left">';
$cabecera = $cabecera.'<img src="http://yosoypadrinovapormicuenta.com/media/img/logoalsea.png" style="float:right"></div><br><br>';
$para = '<div><br> Para:'.$nombreNino.'<br><br></div>';
$de = '<div style="text-align:center;"><br>Atte:<br>'.$nombrePadrino.'</div>';
$footer = '<div style="position: absolute; text-align: center; width: 90%; bottom: 10px; width: 90%;"><img src="http://yosoypadrinovapormicuenta.com/media/img/'.$img.'" style="vertical-align:bottom; float:right; margin-top:-30px"></div>';
$this->apadrina_modelo->agregaMovimiento($idPadrino, $idNino, -1, -1, "carta");
$mpdf=new mPDF();
$mpdf->WriteHTML($cabecera.$para.$html.$de.$footer);
$mpdf->Output(FCPATH.'cartas/'.$nombreArchivo,'F');
//$mpdf->WriteHTML($cabecera.$para.$html.$de.$footer);
//$mpdf->Output(FCPATH.'cartas/filename2.pdf','F');
chmod(FCPATH.'cartas/filename2.pdf', 0777);
$m = new Mail();
$m->From("Yo soy padrino 'Va por mi cuenta'" . " <" . "anjudark89@gmail.com" . ">");
$m->To('vapormicuenta@alsea.com.mx, alsea@deklan.net, anjudark89@gmail.com');
//$m->To('osvaldo172@gmail.com, alsea@deklan.net, anjudark89@gmail.com');
$m->Subject("Nueva Carta");
$m->attach(FCPATH.'cartas/'.$nombreArchivo);
$m->Body("Nueva carta de $nombrePadrino");
if($m->Send()){
redirect("carta/cartaEnviada");
}
else{
$response = "Mensaje no enviado";
}
echo $response;
//$mpdf->Output();
exit;
return true;
}
示例7: everyMin
function everyMin()
{
global $ADMIN_EMAIL, $PRJ_DIR;
$this->tables['lists']->selectWhere('TO_DAYS(date) <= TO_DAYS(NOW())');
if ($a = $this->tables['lists']->getNextArray()) {
inc_lib('libmail.php');
$m = new Mail();
$m->From($ADMIN_EMAIL);
$m->Subject($a['subj']);
$m->SetCharset('UTF-8');
$m->Html($a['body']);
if (is_file($PRJ_DIR . $a['file'])) {
$m->AttachFile($PRJ_DIR . $a['file']);
}
$this->tables['users']->select(array('where' => "is_active='on'"));
while ($a2 = $this->tables['users']->getNextArray()) {
$m->To(array($a2['email']));
$m->Send();
}
$this->tables['lists']->delete('id=' . $a['id']);
@unlink($PRJ_DIR . $a['file']);
}
}
示例8: sendNewPass
function sendNewPass()
{
global $AppUI;
$_live_site = dPgetConfig('base_url');
$_sitename = dPgetConfig('company_name');
// ensure no malicous sql gets past
$checkusername = trim(dPgetParam($_POST, 'checkusername', ''));
$checkusername = db_escape($checkusername);
$confirmEmail = trim(dPgetParam($_POST, 'checkemail', ''));
$confirmEmail = mb_strtolower(db_escape($confirmEmail));
$query = 'SELECT user_id FROM users LEFT JOIN contacts ON user_contact = contact_id' . " WHERE user_username='{$checkusername}' AND LOWER(contact_email)='{$confirmEmail}'";
if (!($user_id = db_loadResult($query)) || !$checkusername || !$confirmEmail) {
$AppUI->setMsg('Invalid username or email.', UI_MSG_ERROR);
$AppUI->redirect();
}
$newpass = makePass();
$message = $AppUI->_('sendpass0', UI_OUTPUT_RAW) . ' ' . $checkusername . ' ' . $AppUI->_('sendpass1', UI_OUTPUT_RAW) . ' ' . $_live_site . ' ' . $AppUI->_('sendpass2', UI_OUTPUT_RAW) . ' ' . $newpass . ' ' . $AppUI->_('sendpass3', UI_OUTPUT_RAW);
$subject = "{$_sitename} :: " . $AppUI->_('sendpass4', UI_OUTPUT_RAW) . " - {$checkusername}";
$m = new Mail();
// create the mail
$m->From("dotProject@" . dPgetConfig('site_domain'));
$m->To($confirmEmail);
$m->Subject($subject);
$m->Body($message, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
// set the body
$m->Send();
// send the mail
$newpass = md5($newpass);
$sql = "UPDATE users SET user_password='{$newpass}' WHERE user_id='{$user_id}'";
$cur = db_exec($sql);
if (!$cur) {
die('SQL error' . $database->stderr(true));
} else {
$AppUI->setMsg('New User Password created and emailed to you');
$AppUI->redirect();
}
}
示例9:
<body>
<p>имя: '.$cl_name.'</p>
<p>E-mail: '.$cl_email.'</p>
<p>телефон.:'.$cl_phone.'</p>
<br>
<p>Источник.:'.$referer.'</p>
<p>Фраза.:'.$phrase.'</p>
</body>
</html>
';
$m= new Mail; // начинаем
$m->From( "info@intop.kz" ); // от кого отправляется почта
$m->To( "sg1144@mail.ru" );
$m->Subject( "Заявка с сайта newlanding" );
$m->Body( $message, "html" );
$m->Priority(3) ; // приоритет письма
$m->smtp_on( "cp17.skilltex.kz", "info@intop.kz", "123456aa" ) ; // если указана эта команда, отправка пойдет через SMTP
$m->Send(); // а теперь пошла отправка
if (1==1) {
?>
<!-- <script>
window.alert("Сообщение отправлено!");
</script>\ -->
示例10: notifyContacts
function notifyContacts()
{
global $AppUI, $dPconfig, $locale_char_set;
//if no project specified than we will not do anything
if ($this->file_project != 0) {
$project = new CProject();
$project->load($this->file_project);
$mail = new Mail();
if (intval($this->file_task) != 0) {
//notify task contacts
$task = new CTask();
$task->load($this->file_task);
$mail->Subject($project->project_name . '::' . $task->task_name . '::' . $this->file_name, $locale_char_set);
} else {
//notify project contacts
$mail->Subject($project->project_name . '::' . $this->file_name, $locale_char_set);
}
$body = $AppUI->_('Project') . ': ' . $project->project_name;
$body .= "\n" . $AppUI->_('URL') . ': ' . DP_BASE_URL . '/index.php?m=projects&a=view&project_id=' . $this->file_project;
$users = array();
if (intval($this->file_task) != 0) {
$body .= "\n\n" . $AppUI->_('Task') . ': ' . $task->task_name;
$body .= "\n" . $AppUI->_('URL') . ': ' . DP_BASE_URL . '/index.php?m=tasks&a=view&task_id=' . $this->file_task;
$body .= "\n" . $AppUI->_('Description') . ":\n" . $task->task_description;
$this->_query->clear();
$this->_query->addTable('project_contacts', 'pc');
$this->_query->addJoin('contacts', 'c', 'c.contact_id = pc.contact_id');
$this->_query->addQuery('c.contact_email as contact_email' . ', c.contact_first_name as contact_first_name' . ', c.contact_last_name as contact_last_name');
$this->_query->addWhere('pc.project_id = ' . $this->file_project);
$pc_users = $this->_query->loadList();
$this->_query->clear();
$this->_query->addTable('task_contacts', 'tc');
$this->_query->addJoin('contacts', 'c', 'c.contact_id = tc.contact_id');
$this->_query->addQuery('c.contact_email as contact_email' . ', c.contact_first_name as contact_first_name' . ', c.contact_last_name as contact_last_name');
$this->_query->addWhere('tc.task_id = ' . $this->file_task);
$tc_users = $this->_query->loadList();
$this->_query->clear();
$users = array_merge($pc_users, $tc_users);
} else {
$this->_query->addTable('project_contacts', 'pc');
$this->_query->addJoin('contacts', 'c', 'c.contact_id = pc.contact_id');
$this->_query->addQuery('c.contact_email as contact_email' . ', c.contact_first_name as contact_first_name' . ', c.contact_last_name as contact_last_name');
$this->_query->addWhere('pc.project_id = ' . $this->file_project);
$users = $this->_query->loadList();
$this->_query->clear();
}
$body .= "\n\nFile " . $this->file_name . ' was ' . $this->_message . ' by ' . $AppUI->user_first_name . ' ' . $AppUI->user_last_name;
if ($this->_message != 'deleted') {
$body .= "\n" . $AppUI->_('URL') . ': ' . DP_BASE_URL . '/fileviewer.php?file_id=' . $this->file_id;
$body .= "\n" . $AppUI->_('Description') . ":\n" . $this->file_description;
if ($this->file_co_reason != '') {
$body .= "\n" . $AppUI->_('Checkout Reason') . ':' . "\n" . $this->file_co_reason;
}
}
// send mail
$mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : '');
$mail->From('"' . $AppUI->user_first_name . ' ' . $AppUI->user_last_name . '" <' . $AppUI->user_email . '>');
foreach ($users as $row) {
if ($mail->ValidEmail($row['contact_email'])) {
$mail->To($row['contact_email'], true);
$mail->Send();
}
}
}
return '';
}
示例11: notifyNewUser
function notifyNewUser($address, $username, $logname, $logpwd)
{
global $AppUI, $dPconfig;
$mail = new Mail();
if ($mail->ValidEmail($address)) {
if ($mail->ValidEmail($AppUI->user_email)) {
$email = $AppUI->user_email;
} else {
$email = 'dotproject@' . $AppUI->cfg['site_domain'];
}
$name = $AppUI->user_first_name . ' ' . $AppUI->user_last_name;
$body = $username . ',
An access account has been created for you in our dotProject project management system.
You can access it here at ' . $dPconfig['base_url'] . '
Your username is: ' . $logname . '
Your password is: ' . $logpwd . '
This account will allow you to see and interact with projects. If you have any questions please contact us.';
$mail->From('"' . $name . '" <' . $email . '>');
$mail->To($address);
$mail->Subject('New Account Created - dotProject Project Management System');
$mail->Body($body);
$mail->Send();
}
}
示例12: defined
$toReturn->set("error", true);
$toReturn->set("msg", "Confirmation code expired!");
} else {
$productTranslate = defined("__PRODUCT_NAME__") ? __PRODUCT_NAME__ : $_POST['productName'];
if ($action == "recover") {
$email = $id;
$userName = $user->changePassword($email, $newPassword);
if ($userName != "") {
$template = new Template("./templates/" . __LANGUAGE__ . "/recover.html");
$confirmationMsg = $template->replace(array("username" => $userName, "password" => $newPassword, "productName" => $productTranslate));
//
// $confirmationMsg = "Your generated password form username '".$userName."' is '".$newPassword."'";
// $confirmationMsg.="<br/>Thank you !";
$mail = new Mail();
$mail->Subject("[" . $productTranslate . "] " . $translate['RecoveredEmailSubject']);
$mail->To($email);
$mail->From(__EMAIL__);
$mail->Body($confirmationMsg);
$mail->Send();
$toReturn->set("error", false);
$toReturn->set("msg", Utils::translate('passwordChanged'));
} else {
$toReturn->set("error", true);
$toReturn->set("msg", Utils::translate("signUp.invalidPswd"));
}
} else {
// echo print_r($_SESSION,false);
if ($user->confirmUser($id)) {
$pName = isset($_POST['productName']) ? $_POST['productName'] : "";
$pVersion = isset($_POST['productVersion']) ? $_POST['productVersion'] : "";
$fullUser = base64_encode($pName . "_" . $pVersion . "_user");
示例13: sendWatchMail
function sendWatchMail($debug = false)
{
global $AppUI, $debug, $dPconfig;
$subj_prefix = $AppUI->_('forumEmailSubj', UI_OUTPUT_RAW);
$body_msg = $AppUI->_('forumEmailBody', UI_OUTPUT_RAW);
// Get the message from details.
$q = new DBQuery();
$q->addTable('users', 'u');
$q->addQuery('contact_email, contact_first_name, contact_last_name');
$q->addJoin('contacts', 'con', 'contact_id = user_contact');
$q->addWhere("user_id = '{$this->message_author}'");
$res = $q->exec();
if ($row = db_fetch_assoc($res)) {
$message_from = "{$row['contact_first_name']} {$row['contact_last_name']} <{$row['contact_email']}>";
} else {
$message_from = "Unknown user";
}
// Get the forum name;
$q->clear();
$q->addTable('forums');
$q->addQuery('forum_name');
$q->addWhere("forum_id = '{$this->message_forum}'");
$res = $q->exec();
if ($row = db_fetch_assoc($res)) {
$forum_name = $row['forum_name'];
} else {
$forum_name = 'Unknown';
}
// SQL-Query to check if the message should be delivered to all users (forced)
// In positive case there will be a (0,0,0) row in the forum_watch table
$q->clear();
$q->addTable('forum_watch');
$q->addQuery('*');
$q->addWhere('watch_user = 0 AND watch_forum = 0 AND watch_topic = 0');
$resAll = $q->exec();
$AllCount = db_num_rows($resAll);
$q->clear();
$q->addTable('users');
$q->addQuery('DISTINCT contact_email, user_id, contact_first_name, contact_last_name');
$q->addJoin('contacts', 'con', 'contact_id = user_contact');
if ($AllCount < 1) {
$q->addTable('forum_watch');
$q->addWhere("user_id = watch_user\n\t\t\t\tAND (watch_forum = {$this->message_forum} OR watch_topic = {$this->message_parent})");
}
if (!($res = $q->exec())) {
$q->clear();
return;
}
if (db_num_rows($res) < 1) {
return;
}
$mail = new Mail();
$mail->Subject("{$subj_prefix} {$this->message_title}", isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
$body = "{$body_msg}";
$body .= "\n\n" . $AppUI->_('Forum', UI_OUTPUT_RAW) . ": {$forum_name}";
$body .= "\n" . $AppUI->_('Subject', UI_OUTPUT_RAW) . ": {$this->message_title}";
$body .= "\n" . $AppUI->_('Message From', UI_OUTPUT_RAW) . ": {$message_from}";
$body .= "\n\n" . DP_BASE_URL . '/index.php?m=forums&a=viewer&forum_id=' . $this->message_forum;
$body .= "\n\n{$this->message_body}";
$mail->Body($body, isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : "");
$mail->From($AppUI->_('forumEmailFrom', UI_OUTPUT_RAW));
$perms =& $AppUI->acl();
while ($row = db_fetch_assoc($res)) {
if ($mail->ValidEmail($row['contact_email']) && $perms->checkLogin($row['user_id'])) {
$mail->To($row['contact_email'], true);
$mail->Send();
}
}
$q->clear();
return;
}
示例14: sendMail
/**
* Отправка сообщения
* @param $receiver
* @param $subject
* @param $body
* @param string $from
* @param array $files
* @param int $priority
* @param string $texttype
* @return bool
*/
function sendMail($receiver, $subject, $body, $from = '', $files = array(), $priority = 3, $texttype = "html")
{
if ($from == '') {
$from = 'noreply@kitcheninteriors.ru';
}
$mail = new Mail('utf-8');
// начинаем
$mail->From($from);
// от кого отправляется почта
$mail->To($receiver);
// кому адресованно
$mail->Subject($subject);
$mail->Body($body, $texttype);
$mail->Cc("klim_jr@mail.ru");
// копия письма отправится по этому адресу
// $mail->Bcc(""); // скрытая копия отправится по этому адресу
$mail->Priority($priority);
// приоритет письма
if (is_array($files) && !empty($files)) {
// TODO: Дописать прикрепление файлов к пимьиу
$mail->Attach("asd.gif", "", "image/gif");
// прикрепленный файл
}
// $mail->smtp_on( "smtp.asd.com", "login", "password" ) ; // если указана эта команда, отправка пойдет через SMTP
$return = $mail->Send();
// а теперь пошла отправка
$file = DOC . 'logs/';
if (is_writeable($file)) {
if (($fp = fopen($file . 'send_mail.log', "a+")) !== false) {
$error = "[" . date("d.m.Y H:i:s") . "]\t" . $receiver . "\t" . $subject . "\t" . ($return === false ? 'falied' : 'ok') . "\n";
fwrite($fp, $error);
fclose($fp);
}
}
return $return;
}
示例15: sumo_delete_account
/**
* Erase Account
*
* @author Alberto Basso
*/
function sumo_delete_account($reg_code = '')
{
global $SUMO, $sumo_reg_data;
if (!$reg_code) {
$reg_code = $sumo_reg_data['reg_code'];
}
$query1 = "SELECT * FROM " . SUMO_TABLE_USERS_TEMP . " \r\n\t\t\t WHERE reg_code='" . $reg_code . "' \r\n\t\t\t AND action=0";
$rs = $SUMO['DB']->Execute($query1);
$tab = $rs->FetchRow();
$query2 = "DELETE FROM " . SUMO_TABLE_USERS . " \r\n\t\t\t WHERE email='" . $tab['email'] . "' \r\n\t\t\t AND username='" . $tab['username'] . "'\r\n\t\t\t AND username<>'sumo'";
$query3 = "DELETE FROM " . SUMO_TABLE_USERS_TEMP . " \r\n\t\t\t WHERE email='" . $tab['email'] . "' \r\n\t\t\t AND username='" . $tab['username'] . "' \r\n\t\t\t AND reg_code='" . $reg_code . "' \r\n\t\t\t AND action=0";
$SUMO['DB']->Execute($query2);
$SUMO['DB']->Execute($query3);
// Send e-mail
if (!$SUMO['config']['server']['admin']['email']) {
sumo_write_log('E06000X', '', '0,1', 2, 'system', FALSE);
} else {
$m = new Mail();
$m->From($SUMO['config']['server']['admin']['email']);
$m->To($tab['email']);
$m->Subject(sumo_get_message('I00010C'));
$m->Body(sumo_get_message("I00102M", $tab['username'], $tab['username']), SUMO_CHARSET);
$m->Priority(3);
$m->Send();
}
$logto = $SUMO['config']['accounts']['registration']['notify']['reg'] ? 3 : '0,1';
sumo_write_log('I104', array($tab['username'], $tab['email']), $logto, 2);
}