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


PHP cleanupEmail函数代码示例

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


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

示例1: emailFormSubmission

function emailFormSubmission()
{
    $to = 'helpit.odessa@gmail.com';
    $subject = 'Заказ Небесные фонарики Сердце';
    $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><title>' . htmlentities($subject, ENT_COMPAT, 'UTF-8') . '</title></head>';
    $message .= '<body style="background-color: #ffffff; color: #000000; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 18px; font-family: helvetica, arial, verdana, sans-serif;">';
    $message .= '<h2 style="background-color: #eeeeee;">Контактные данные</h2><table cellspacing="0" cellpadding="0" width="100%" style="background-color: #ffffff;">';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Имя:</b></td><td>' . htmlentities($_REQUEST["custom_U824"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    htmlentities($_REQUEST["Email"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Количество:</b></td><td>' . htmlentities($_REQUEST["custom_U840"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Сотовый телефон:</b></td><td>' . htmlentities($_REQUEST["custom_U835"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '</table><br/><br/>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">Формы, отправленные с веб-сайта: ' . htmlentities($_SERVER["SERVER_NAME"], ENT_COMPAT, 'UTF-8') . '</div>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">IP-адрес посетителя: ' . htmlentities($_SERVER["REMOTE_ADDR"], ENT_COMPAT, 'UTF-8') . '</div>';
    $message .= '</body></html>';
    $message = cleanupMessage($message);
    $formEmail = cleanupEmail($_REQUEST['Email']);
    $headers = 'From:  helpit.odessa@gmail.com' . "\r\n" . 'Reply-To: ' . $formEmail . "\r\n" . 'X-Mailer: Adobe Muse 7.4.30 with PHP/' . phpversion() . "\r\n" . 'Content-type: text/html; charset=utf-8' . "\r\n";
    $sent = @mail($to, $subject, $message, $headers);
    if ($sent) {
        echo '{"FormResponse": { "success": true,"redirect":"spasibo.html"}}';
    } else {
        echo '{"MusePHPFormResponse": { "success": false,"error": "Failed to send email"}}';
    }
}
开发者ID:Masalovych,项目名称:LandingPage,代码行数:25,代码来源:form-u817.php

示例2: emailFormSubmission

function emailFormSubmission()
{
    $to = 'mohab_mohamed_20@hotmail.com';
    $subject = 'Cancel Form Submission';
    $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><title>' . htmlentities($subject, ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</title></head>';
    $message .= '<body style="background-color: #ffffff; color: #000000; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 18px; font-family: helvetica, arial, verdana, sans-serif;">';
    $message .= '<h2 style="background-color: #eeeeee;">New Form Submission</h2><table cellspacing="0" cellpadding="0" width="100%" style="background-color: #ffffff;">';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Enter the day:</b></td><td>' . htmlentities($_REQUEST["custom_U1098"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Enter the month:</b></td><td>' . htmlentities($_REQUEST["Email"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Enter the year:</b></td><td>' . htmlentities($_REQUEST["custom_U1115"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Enter The Time Arrival:</b></td><td>' . htmlentities($_REQUEST["custom_U1103"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Custom::</b></td><td>' . htmlentities($_REQUEST["custom_U1124"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</td></tr>';
    $message .= '</table><br/><br/>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">Form submitted from website: ' . htmlentities($_SERVER["SERVER_NAME"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</div>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">Visitor IP address: ' . htmlentities($_SERVER["REMOTE_ADDR"], ENT_COMPAT | ENT_HTML401, 'UTF-8') . '</div>';
    $message .= '</body></html>';
    $message = cleanupMessage($message);
    $formEmail = cleanupEmail($_REQUEST['Email']);
    $headers = 'From:  mohab_mohamed_20@hotmail.com' . "\r\n" . 'Reply-To: ' . $formEmail . "\r\n" . 'X-Mailer: Adobe Muse 5.0.704 with PHP/' . phpversion() . "\r\n" . 'Content-type: text/html; charset=utf-8' . "\r\n";
    $sent = @mail($to, $subject, $message, $headers);
    if ($sent) {
        echo '{"FormResponse": { "success": true,"redirect":"your-profile.html"}}';
    } else {
        echo '{"MusePHPFormResponse": { "success": false,"error": "Failed to send email"}}';
    }
}
开发者ID:MohamedGamalFci,项目名称:automated-garage-system,代码行数:26,代码来源:form-u1096.php

示例3: emailFormSubmission

function emailFormSubmission()
{
    if (!defined('PHP_EOL')) {
        define('PHP_EOL', '\\r\\n');
    }
    $to = 'civet520@163.com';
    $subject = 'Tax Service Muse Template Form Submission';
    $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><title>' . htmlentities($subject, ENT_COMPAT, 'UTF-8') . '</title></head>';
    $message .= '<body style="background-color: #ffffff; color: #000000; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 18px; font-family: helvetica, arial, verdana, sans-serif;">';
    $message .= '<h2 style="background-color: #eeeeee;">New Form Submission</h2><table cellspacing="0" cellpadding="0" width="100%" style="background-color: #ffffff;">';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>GET A FREE CONSULTATION:</b></td><td>' . htmlentities($_REQUEST["custom_U6114"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Email:</b></td><td>' . htmlentities($_REQUEST["Email"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Message:</b></td><td>' . htmlentities($_REQUEST["custom_U6119"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Cell Phone:</b></td><td>' . htmlentities($_REQUEST["custom_U6128"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>Custom:</b></td><td>' . htmlentities($_REQUEST["custom_U6124"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '</table><br/><br/>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">Form submitted from website: ' . htmlentities($_SERVER["SERVER_NAME"], ENT_COMPAT, 'UTF-8') . '</div>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">Visitor IP address: ' . htmlentities($_SERVER["REMOTE_ADDR"], ENT_COMPAT, 'UTF-8') . '</div>';
    $message .= '</body></html>';
    $message = cleanupMessage($message);
    $formEmail = cleanupEmail($_REQUEST['Email']);
    $headers = 'From: civet520@163.com' . PHP_EOL . 'Reply-To: ' . $formEmail . PHP_EOL . 'X-Mailer: Adobe Muse 2014.0.328 with PHP/' . phpversion() . '/' . PHP_OS . PHP_EOL . 'Content-type: text/html; charset=utf-8' . PHP_EOL;
    $sent = @mail($to, $subject, $message, $headers);
    if ($sent) {
        echo '{"FormResponse": { "success": true}}';
    } else {
        echo '{"MusePHPFormResponse": { "success": false,"error": "Failed to send email"}}';
    }
}
开发者ID:kenold,项目名称:rdelphin.github.io,代码行数:29,代码来源:form-u6107.php

示例4: emailFormSubmission

function emailFormSubmission()
{
    $to = '';
    $subject = 'Contact表單 送出';
    $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><title>' . htmlentities($subject, ENT_COMPAT, 'UTF-8') . '</title></head>';
    $message .= '<body style="background-color: #ffffff; color: #000000; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: 18px; font-family: helvetica, arial, verdana, sans-serif;">';
    $message .= '<h2 style="background-color: #eeeeee;">新的表單送出</h2><table cellspacing="0" cellpadding="0" width="100%" style="background-color: #ffffff;">';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>名稱:</b></td><td>' . htmlentities($_REQUEST["custom_U1117"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>電子郵件:</b></td><td>' . htmlentities($_REQUEST["Email"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '<tr><td valign="top" style="background-color: #ffffff;"><b>訊息:</b></td><td>' . htmlentities($_REQUEST["custom_U1122"], ENT_COMPAT, 'UTF-8') . '</td></tr>';
    $message .= '</table><br/><br/>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">表單由此網站送出: ' . htmlentities($_SERVER["SERVER_NAME"], ENT_COMPAT, 'UTF-8') . '</div>';
    $message .= '<div style="background-color: #eeeeee; font-size: 10px; line-height: 11px;">訪客 IP 位址: ' . htmlentities($_SERVER["REMOTE_ADDR"], ENT_COMPAT, 'UTF-8') . '</div>';
    $message .= '</body></html>';
    $message = cleanupMessage($message);
    $formEmail = cleanupEmail($_REQUEST['Email']);
    $headers = 'From:  ' . "\r\n" . 'Reply-To: ' . $formEmail . "\r\n" . 'X-Mailer: Adobe Muse 7.0.314 with PHP/' . phpversion() . "\r\n" . 'Content-type: text/html; charset=utf-8' . "\r\n";
    $sent = @mail($to, $subject, $message, $headers);
    if ($sent) {
        echo '{"FormResponse": { "success": true}}';
    } else {
        echo '{"MusePHPFormResponse": { "success": false,"error": "Failed to send email"}}';
    }
}
开发者ID:Kennethchiao,项目名称:Muse.html,代码行数:24,代码来源:form-u1100.php


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