• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP mail_to函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了mail_to函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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("[email protected]", "[email protected]", "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('[email protected]', '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("[email protected]", "[email protected]", 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('[email protected]', '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("[email protected]", "[email protected]", "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


示例16: url_for

        <input class="regbutton" type="submit" value="" />
      </td>
    </tr>
  </table>
</form> 

<div class="backlink">
<a href="<?php 
echo url_for('search/index');
?>
">
			Login
		</a>
</div>
<!--p class="forgotmessage">  <?php 
echo link_to('Technical Requirements', 'sfApply/technical');
?>
.</p--> 
</div>


<p class="forgotmessage"><b>Forgot your password?</b> Please write to <?php 
echo mail_to('[email protected]');
?>
.</p>





开发者ID:EQ4,项目名称:smint,代码行数:25,代码来源:applySuccess.php


示例17: array

$t->is(link_to_if(false, 'test', '@homepage', array('tag' => 'div')), '<div>test</div>', 'link_to_if() takes a "tag" option');
$t->is(link_to_if(true, 'test', '@homepage', 'tag=div'), '<a href="module/action">test</a>', 'link_to_if() removes "tag" option (given as string) in true case');
$t->is(link_to_if(true, 'test', '@homepage', array('tag' => 'div')), '<a href="module/action">test</a>', 'link_to_if() removes "tag" option (given as array) in true case');
$t->is(link_to_if(false, 'test', '@homepage', array('query_string' => 'foo=bar', 'absolute' => true, 'absolute_url' => 'http://www.google.com/')), '<span>test</span>', 'link_to_if() returns an HTML "span" tag by default if the condition is false');
$t->is(link_to_if(true, 'test', 'homepage', array(), array('class' => 'test')), '<a class="test" href="homepage">test</a>', 'link_to_if() accepts link_to2 compatible usage');
$t->is(link_to_if(false, 'test', 'homepage', array(), array('class' => 'test')), '<span class="test">test</span>', 'link_to_if() accepts link_to2 compatible usage');
// link_to_unless()
$t->diag('link_to_unless()');
$t->is(link_to_unless(false, 'test', '@homepage'), '<a href="module/action">test</a>', 'link_to_unless() returns an HTML "a" tag if the condition is false');
$t->is(link_to_unless(true, 'test', '@homepage'), '<span>test</span>', 'link_to_unless() returns an HTML "span" tag by default if the condition is true');
$t->is(link_to_unless(true, 'test', 'homepage', array(), array('class' => 'test')), '<span class="test">test</span>', 'link_to_unless() accepts link_to2 compatible usage');
$t->is(link_to_unless(false, 'test', 'homepage', array(), array('class' => 'test')), '<a class="test" href="homepage">test</a>', 'link_to_unless() accepts link_to2 compatible usage');
// public_path()
$t->diag('public_path()');
$t->is(public_path('pdf/download.pdf'), '/public/pdf/download.pdf', 'public_path() returns the public path');
$t->is(public_path('/pdf/download.pdf'), '/public/pdf/download.pdf', 'public_path() returns the public path if starting with slash');
$t->is(public_path('pdf/download.pdf', true), 'https://example.org/public/pdf/download.pdf', 'public_path() returns the public path');
// mail_to()
$t->diag('mail_to()');
$t->is(mail_to('[email protected]'), '<a href="mailto:[email protected]">[email protected]</a>', 'mail_to() creates a mailto a tag');
$t->is(mail_to('[email protected]', 'fabien'), '<a href="mailto:[email protected]">fabien</a>', 'mail_to() creates a mailto a tag');
preg_match('/href="(.+?)"/', mail_to('[email protected]', 'fabien', array('encode' => true)), $matches);
$t->is(html_entity_decode($matches[1], ENT_QUOTES, 'UTF-8'), 'mailto:[email protected]', 'mail_to() can encode the email address');
$t->diag('mail_to test');
$t->is(mail_to('[email protected]'), '<a href="mailto:[email protected]">[email protected]</a>', 'mail_to with only given email works');
$t->is(mail_to('[email protected]', 'send us an email'), '<a href="mailto:[email protected]">send us an email</a>', 'mail_to with given email and title works');
$t->isnt(mail_to('[email protected]', 'encoded', array('encode' => true)), '<a href="mailto:[email protected]">encoded</a>', 'mail_to with encoding works');
$t->is(mail_to('[email protected]', '', array(), array('subject' => 'test subject', 'body' => 'test body')), '<a href="mailto:[email protected]?subject=test+subject&amp;body=test+body">[email protected]</a>', 'mail_to() works with given default values in array form');
$t->is(mail_to('[email protected]', '', array(), 'subject=test subject body=test body'), '<a href="mailto:[email protected]?subject=test+subject&amp;body=test+body">[email protected]</a>', 'mail_to() works with given default values in string form');
$t->is(mail_to('[email protected]', '', array(), 'subject=Hello World and more'), '<a href="mailto:[email protected]?subject=Hello+World+and+more">[email protected]</a>', 'mail_to() works with given default value with spaces');
开发者ID:Phennim,项目名称:symfony1,代码行数:30,代码来源:UrlHelperTest.php


示例18: __

<tr><th><?php 
echo __('Last Updated');
?>
</th><td><?php 
echo $application->getUpdatedAt();
?>
</td></tr>
<tr><th colspan="2"><?php 
echo __('About Author');
?>
</th></tr>
<tr><th><?php 
echo __('Name');
?>
</th><td><?php 
echo $application->getAuthorEmail() ? mail_to($application->getAuthorEmail(), $application->getAuthor(), array('encode' => true)) : $application->getAuthor();
?>
</td></tr>
<tr><th><?php 
echo __('Affiliation');
?>
</th><td><?php 
echo $application->getAuthorAffiliation();
?>
</td></tr>
<tr><th><?php 
echo __('Aboutme');
?>
</th><td><?php 
echo $application->getAuthorAboutme();
?>
开发者ID:rysk92,项目名称:opOpenSocialPlugin,代码行数:31,代码来源:infoSuccess.php


示例19: renderPhotographer

function renderPhotographer($photographer, $classNum)
{
    ?>
<div class="job-list-item-<?php 
    echo $classNum;
    ?>
">
<table class="job-table" width="100%">
	<col width="32%"></col>
	<col width="36%"></col>
	<col width="32%"></col>
	<tr>
		<td><?php 
    echo link_to($photographer->getName(), "photographer_view", $photographer);
    ?>
</td>
		<td><?php 
    echo mail_to($photographer->getEmail(), $photographer->getEmail());
    ?>
</td>
	</tr>
	<tr>
		<td><?php 
    echo $photographer->getAffiliation();
    ?>
</td>
		<td><?php 
    echo $photographer->getPhone();
    ?>
</td>
		<td align="center"><?php 
    echo link_to($photographer->getNumberOfJobs() . " jobs", "photographer_view_jobs", $photographer);
    ?>
</td>
	</tr>
</table>
</div>
<?php 
}
开发者ID:adatta02,项目名称:comp190-code,代码行数:39,代码来源:PMRenderHelper.php


示例20: uniqid

<? $divid = uniqid(); ?>
  <?php 
echo $i->getEmail() . image_tag("icons/hourglass", array("class" => "invitationcard_button", "id" => "invitationcard_button_" . $divid, "title" => __('Invitation details')));
?>
  <br>

<div class="invitationcard" id="invitationcard_<?php 
echo $divid;
?>
">
 <div>
 Email:<span class="right"><?php 
echo mail_to($i->getEmail(), $i->getEmail());
?>
</span>
 </div>
 <div>
 <?php 
echo __('First invited');
?>
: <span class="right"><?php 
echo $i->getCreatedAt();
?>
</span>
 </div>
 <? if ($i->getCounter() > 1 ): ?>
   <div>
   <?php 
echo __('Times invited');
?>
: <span class="right"><?php 
开发者ID:br00k,项目名称:yavom,代码行数:31,代码来源:_showInvitation.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP mail_to_user函数代码示例发布时间:2022-05-15
下一篇:
PHP mail_send函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap