当前位置: 首页>>代码示例>>PHP>>正文


PHP mail_to函数代码示例

本文整理汇总了PHP中mail_to函数的典型用法代码示例。如果您正苦于以下问题:PHP mail_to函数的具体用法?PHP mail_to怎么用?PHP mail_to使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了mail_to函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: send_errors

function send_errors($subject, $message)
{
    $message = "One or more errors occour <br />" . $message;
    global $myErrorsToEmailAddress, $myServerEmailAddress;
    $mail_body = "{$message}";
    //mail body
    mail_to($myServerEmailAddress, $myErrorsToEmailAddress, $subject, $mail_body);
}
开发者ID:ventis07,项目名称:mainegate,代码行数:8,代码来源:functions.php

示例2: SaveError

 function SaveError($ip, $email, $browser)
 {
     SqlConnect();
     $numbererrors = mysql_query("SELECT emailaddress FROM login_errors WHERE emailaddress='{$email}' AND logged is null ");
     if (mysql_num_rows($numbererrors) < MAX_LOGIN) {
         mysql_query("insert into login_errors (date,ipaddress,emailaddress,browser) values (now(),'{$ip}','{$email}','{$browser}')");
     } else {
         mysql_query("insert into login_errors (date,ipaddress,emailaddress,browser) values ('{$date}','{$ip}','{$email}','{$browser}')");
         global $myErrorsToEmailAddress, $myServerEmailAddress;
         mail_to($myServerEmailAddress, $myErrorsToEmailAddress, '3 errors logged', 'the email address ' . $email . ' has tried to login ' . mysql_num_rows($numbererrors) . ' times');
         //$a=mail(EMAILLOGERRORS,'3 errors logged ', 'the email address '.$email.' has tried to login '.mysql_num_rows($numbererrors).' times');
         mysql_query("UPDATE login_errors SET logged=1 WHERE emailaddress = '{$email}'");
     }
     mysql_close();
 }
开发者ID:ventis07,项目名称:mainegate,代码行数:15,代码来源:errors.php

示例3: empty_to_stripe

			<td width="100%"><?php 
echo empty_to_stripe($profile["country"]);
?>
</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php 
echo $strEmail;
?>
:</i>&nbsp;</td>
			<td><?php 
echo mail_to(empty_to_stripe($profile["email"]));
?>
</td>
		</tr>

		<tr>
			<td align="right" nowrap><i><?php 
echo $strPhone;
?>
:</i>&nbsp;</td>
			<td><?php 
echo empty_to_stripe($profile["home_phone"]);
?>
</td>
		</tr>
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:30,代码来源:user.php

示例4: use_helper

<?php

use_helper('a');
?>

<?php 
if ($failed) {
    ?>
  <h4 class="a-error clearfix">
		<span><?php 
    echo a_('Email delivery failed.');
    ?>
</span><br />
		<?php 
    echo mail_to(sfConfig::get('app_aFeedback_email_manual', sfConfig::get('app_aFeedback_email_auto')), a_('Please contact us directly'), array('encode' => true));
    ?>
	</h4>
<?php 
}
?>

<h4><?php 
echo a_('Submit a bug report');
?>
</h4>

<form action="<?php 
echo url_for('aFeedback/feedback');
?>
" method="post" enctype="multipart/form-data" id="a-feedback-form" class="a-ui a-feedback-form clearfix">
	
开发者ID:hashir,项目名称:UoA,代码行数:30,代码来源:_feedback.php

示例5: slot

<?php

slot('page_title');
?>
	<div class="page_title">
		<h3>Registration Information</h3>
	</div>
<?php 
end_slot();
?>
<h5>Course Registration</h5>
<p>
	Contact Student Services for Transcript, Certificate or Registration questions:
</p>
<address>
	866-535-3772 (Toll Free)<br/>
	802-735-1019 (Fax)<br/>
	<?php 
print mail_to("support@globalclassroom.us", "support@globalclassroom.us", "encode=true");
?>
</address>
<p>
	Any forms or checks should be mailed to:
</p>
<address>
	Global Classroom<br/>
	125 College Street<br/>
	Burlington, VT 05401
</address>
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:29,代码来源:registrationSuccess.php

示例6: print_config_content

function print_config_content($order, $ab, $page)
{
    global $strSexes, $GO_USERS;
    $db = new db();
    for ($i = 0; $i < count($order); $i++) {
        switch ($order[$i]) {
            case 'email':
                if ($page == 0) {
                    echo "<td nowrap>" . mail_to(empty_to_stripe($ab->f("email")), empty_to_stripe($ab->f("email")), 'normal', true, $ab->f("id")) . "&nbsp;</td>\n";
                }
                if ($page == 1) {
                    echo '<td>' . mail_to($ab->f('email'), $ab->f('email')) . '</td>';
                }
                if ($page == 2) {
                    echo "<td>" . mail_to(empty_to_stripe($GO_USERS->f("email"))) . "&nbsp;</td>\n";
                }
                break;
            case 'sex':
                echo '<td nowrap> ' . $strSexes[$ab->f('sex')] . ' </td>';
                break;
            case 'birthday':
            case 'relation_date':
                $day = $ab->f($order[$i]) > 0 ? db_date_to_date($ab->f($order[$i])) : '';
                echo '<td nowrap> ' . empty_to_stripe($day) . ' </td>';
                break;
            case 'company_id':
            case 'parent':
                $db->query("SELECT name FROM ab_companies WHERE id = '" . (int) $ab->f($order[$i]) . "'");
                echo '<td nowrap> ' . htmlspecialchars(empty_to_stripe($db->next_record() ? $db->f('name') : '')) . ' </td>';
                break;
            case '':
                break;
            default:
                echo "<td nowrap> " . htmlspecialchars(empty_to_stripe($ab->f($order[$i]))) . "&nbsp; </td>\n";
        }
    }
}
开发者ID:BackupTheBerlios,项目名称:hpt-obm-svn,代码行数:37,代码来源:tkdlib.php

示例7: mail_to

          <?php 
        if ($agency->getFaxPhone() . $agency->getFaxComment()) {
            ?>
          <dt>Fax Phone:</dt>
          <dd><?php 
            echo $agency->getFaxPhone() . ' <i>' . $agency->getFaxComment() . '</i>';
            ?>
</dd>
          <?php 
        }
        ?>
          <dt></dt>
        </dl>
        <?php 
        if ($agency->getEmail()) {
            echo mail_to($agency->getEmail());
        }
        ?>
      </div>
    </td>
    <td class="cell-5">
     <ul class="action-list">
      <?php 
        if ($sf_user->hasCredential(array('Administrator', 'Staff', 'Coordinator', 'Volunteer'), false)) {
            ?>
<li><a class="action-edit" href="<?php 
            echo url_for('@agency_edit?id=' . $agency->getId());
            ?>
">Edit</a></li><?php 
        }
        ?>
开发者ID:yasirgit,项目名称:afids,代码行数:31,代码来源:indexSuccess.php

示例8: address

    <h5>The server returned a 404 response.</h5>
  </div>
</div>
<dl class="sfTMessageInfo">
  <dt>Did you type the URL?</dt>
  <dd>You may have typed the address (URL) incorrectly. Check it to make sure you've got the exact right spelling, capitalization, etc.</dd>

  <dt>Did you follow a link from somewhere else at this site?</dt>
  <dd>If you reached this page from another part of this site, please email us at <?php 
echo mail_to('[email]');
?>
 so we can correct our mistake.</dd>

  <dt>Did you follow a link from another site?</dt>
  <dd>Links from other sites can sometimes be outdated or misspelled. Email us at <?php 
echo mail_to('[email]');
?>
 where you came from and we can try to contact the other site in order to fix the problem.</dd>

  <dt>What's next</dt>
  <dd>
    <ul class="sfTIconList">
      <li class="sfTLinkMessage"><a href="javascript:history.go(-1)">Back to previous page</a></li>
      <li class="sfTLinkMessage"><?php 
echo link_to('Go to Homepage', '@homepage');
?>
</li>
    </ul>
  </dd>
</dl>
开发者ID:jmiridis,项目名称:atcsf1,代码行数:30,代码来源:error404Success.php

示例9: use_helper

<?php

$comment = $sf_simple_blog_comment;
use_helper('Date');
?>
<div<?php 
if ($comment->getIsModerated()) {
    ?>
 class="moderated"<?php 
}
?>
>
<?php 
echo $comment->getContent();
?>
<br />
<i><?php 
echo __('Posted on %2%, by %1% (%11%%12%)<br/>about <b>%3%</b>', array('%1%' => $comment->getAuthorName(), '%11%' => mail_to($comment->getAuthorEmail()), '%12%' => $comment->getAuthorUrl() ? ', ' . link_to($comment->getAuthorUrl()) : '', '%2%' => format_date($comment->getCreatedAt('U')), '%3%' => link_to($comment->getPostTitle(), 'sfSimpleBlogPostAdmin/edit?id=' . $comment->getsfSimpleBlogPost()->getId())));
?>
</i>
</div>
开发者ID:valerio-bozzolan,项目名称:openparlamento,代码行数:21,代码来源:_comment.php

示例10: mail_to



  <h3>Diese Seite gibt es nicht.</h3>

  <p><strong>Hast du die URL richtig geschrieben?</strong></p>
  <p>Vielleicht hat sich ein Tippfehler eingeschlichen? Bitte probiers nochmal.</p>

  <p><strong>Bist du einem Link auf dieser Website gefolgt?</strong></p>
  <p>Bitte schick unserem <?php echo mail_to('info@rockstep.ch', 'Webmaster') ?> eine Mitteilung, 
    damit er den Fehler korrigieren kann.</p>

    <dt>What's next</dt>
    <dd>
      <ul class="sfTIconList">
        <li class="sfTLinkMessage"><a href="javascript:history.go(-1)">Back to previous page</a></li>
        <li class="sfTLinkMessage"><a href="/">Go to Homepage</a></li>
      </ul>
    </dd>
开发者ID:romankallweit,项目名称:swingmachine,代码行数:16,代码来源:error404Success.php

示例11: exec

				# Verify decode pass
				if ( user_valid_passwd ( "admin", $pass ) ) {
					# reencode temporarily pass with openssl
					$cryptpass = exec ("echo ". escapeshellarg($pass) ." | openssl aes-256-cbc -a -salt -pass pass:$key_priv");
					exec ("/usr/bin/sudo /usr/share/lcs/scripts/action.sh 'synchro_mdp' '$cryptpass'" , $AllOutput, $ReturnValue);
				}	else $ReturnValue="1";

		} else
			exec ("/usr/bin/sudo /usr/share/lcs/scripts/action.sh ".escapeshellarg($action)."" , $AllOutput, $ReturnValue);

		if ($DEBUG) {
			echo "$MsgD $ReturnValue ".count($AllOutput)."<br />";
			for ($loop=0;$loop<count($AllOutput);$loop++)
				echo $AllOutput[$loop]."<br>";
		}

		if ($ReturnValue==0) {
			$Body.= "sur le serveur LCS a ete effectuee avec succes.\n";
			echo $info_1;
		} else {
			$Body.= "sur le serveur LCS a echouee.\n";
			echo $alerte_1;
		}
		mail_to ($to, $Subject, $Body, $From);
	} // fin traitement action
}// fin is_admin
else echo "Vous n'avez pas les droits n&#233;cessaires pour ordonner cette action...";

include ("../lcs/includes/pieds_de_page.inc.php");
?>
开发者ID:rhertzog,项目名称:lcs,代码行数:30,代码来源:action.php

示例12: mail_to

<div class="text-center">
    <p>
        Global Classroom Classic is no longer live.
        <br/><br/>
        Courses offered before June 1, 2010  have been archived<br/>
        and are now stored offline--accessible only by Global Classroom staff.
        <br/><br/>
        If you need access to courses from Global Classroom Classic,<br/>
        please contact Russell Willis at
        <?php 
print mail_to("rwillis@globalclassroom.us", "rwillis@globalclassroom.us", array("encode" => "true", "class" => "email_link"));
?>
<br/>
        or call user services at 866-535-3772.<br/><br/>
        If you would like to search to see if your eSchool or eClassroom has been
        moved to our newer platform you may <?php 
print link_to("search here", "public/search");
?>
.
    </p>
</div>
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:21,代码来源:classicAlertSuccess.php

示例13: mail_to

/sf/sf_default/images/sfTLogo.png" height="39" width="186" /></a>
  <div class="sfTMessageContainer sfTAlert">
    <img alt="page not found" class="sfTMessageIcon" src="<?php 
echo $path;
?>
/sf/sf_default/images/icons/tools48.png" height="48" width="48" />
    <div class="sfTMessageWrap">
      <h1>Oops! An Error Occurred</h1>
      <h5>The server returned a "500 Internal Server Error".</h5>
    </div>
  </div>

  <dl class="sfTMessageInfo">
    <dt>Something is broken</dt>
    <dd>Please <?php 
echo mail_to('sysadmin@metadataregistry.org', 'send us an email', array('encode' => true));
?>
 and let us know what you were doing when this error occurred. We will fix it as soon as possible.
    Sorry for any inconvenience caused.</dd>

    <dt>What's next</dt>
    <dd>
      <ul class="sfTIconList">
        <li class="sfTLinkMessage"><a href="javascript:history.go(-1)">Back to previous page</a></li>
        <li class="sfTLinkMessage"><a href="/">Go to Homepage</a></li>
      </ul>
    </dd>
  </dl>
</div>
</body>
</html>
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:31,代码来源:error500.php

示例14: mail_to

    <td><?php 
echo $job->getDueDate("F j, Y");
?>
</td>
  </tr>
  <tr>
    <td>Created At</td>
    <td><?php 
echo $job->getCreatedAt("F j, Y");
?>
</td>
  </tr>
  <tr>
    <td>Contact</td>
    <td><?php 
echo mail_to($job->getContactEmail(), $job->getContactName()) . " &lt;" . $job->getContactEmail();
?>
&gt;</td>
  </tr>
  <tr>
    <td>Contact Phone</td>
    <td><?php 
echo $job->getContactPhone();
?>
</td>
  </tr>
  <tr>
    <td>Publication</td>
    <td>
          <?php 
if ($job->getPublication()) {
开发者ID:adatta02,项目名称:comp190-code,代码行数:31,代码来源:_basicInfo.php

示例15: slot

<?php

slot('dynamic_content');
?>
<div id="classic_label">Attention all Classic Users!</div>
<div>
	<div>
		<h4>This is very important: please read!</h4>
		<p>
			Global Classroom has moved to a new version.  <strong>The old version of Global Classroom is no longer publicly accessible.</strong>  
			If you don't want to lose your eSchool, courses, or course content, please call 866-535-3772, or email <?php 
print mail_to("rwillis@globalclassroom.us", "rwillis@globalclassroom.us", "encode=true");
?>
.
		</p>
		<p>
			To migrate your eSchool and its contents to the new platform, please follow the documentation located on our 
			<?php 
print link_to("support page", "http://support.globalclassroom.us/guides/classic-to-cirrus-migration");
?>
.
		</p>
	</div>
	<div>
		<h4>How do I know if my eSchool has been migrated and is on the new version?</h4>
		<p>
			Your eSchool has a custom URL, for example, "yourschoolname.globalclassroom.us" or "act48.globalclassroom.us".
		</p>
	</div>
</div>
<?php 
开发者ID:janaece,项目名称:globalclassroom4_clean,代码行数:31,代码来源:migrationSuccess.php


注:本文中的mail_to函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。