小编ASD*_*JAS的帖子

PHP电子邮件加密

我有一个带有 SSL 的网站。

我想加密从我的服务器发出的电子邮件。我一直在挖掘这个,我真的不知道从哪里开始。

这是我的 PHP 电子邮件脚本,因此您对我正在使用的内容有所了解:

public function email($to, $title, $message){
    $from = "angela@mysite.com";
    $headers = "From: {$from}\r\n";
    $headers .= "X-Confirm-Reading-To: {$from}\r\n";
    $headers .= "Reply-To: {$from}\r\n";
    $headers .= "Organization: InfiniSys, inc.\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=ISO-8859-1\r\n";
    $headers .= "X-Priority: 3\r\n";
    $headers .= "X-Mailer: PHP". phpversion() ."\r\n";

    $subject = $title;
    mail($to, $subject, $message, $headers);
}
Run Code Online (Sandbox Code Playgroud)

Ubuntu 14.04

我不确定这是服务器设置还是编程配置。

非常有趣的帖子:(不记得我从哪里得到的)

<?php
// Setup mail headers.
$headers = array("From" => "someone@example.com",
    "To" => "someone-else@example.com",
    "Cc" => "spam@somewhere.org",
    "Subject" …
Run Code Online (Sandbox Code Playgroud)

php encryption

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

encryption ×1

php ×1