问题标签 [phpmailer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - 使用 PHPMailer 更改返回路径
有没有办法使用 PHPMailer 更改返回路径
我做了以下,但没有奏效
我正在使用以下语句发送邮件
我收到了电子邮件,但返回路径没有改变?
php - PHPMailer:SMTP 错误:无法连接到 SMTP 主机
我在几个项目中使用了 PHPMailer,但现在我被困住了。它给了我错误:
SMTP 错误:无法连接到 SMTP 主机。
我已经尝试从 Thunderbird 发送电子邮件并且它有效!但不是通过 PHPMailer ... 下面是 Thunderbird 的设置:
服务器名称:mail.exampleserver.com
端口:587
用户名:user@exampleserver.com
安全身份验证:无
连接安全性:STARTTLS
我已经将这些与我上次使用 PHPMailer 的项目中的服务器进行了比较,它们是:
服务器名称:mail.exampleserver2.com
端口:465
用户名:user@exampleserver2.com
安全身份验证:无
连接安全性:SSL/TLS
我的PHP代码是:
我哪里错了?
php - 信任 BCC 不会泄露其他人的地址是个好主意吗?
我正在使用 PHPMailer 从我的脚本中使用 SMTP 发送电子邮件。有问题的电子邮件实际上是使用电子邮件到短信网关的手机号码。现在,理想情况下,我想建立一个大的密件抄送列表来批量发送所有内容,而不是遍历一个大地址列表并一次发送一个。
我是否应该完全信任密件抄送功能来隐藏其他收件人的地址(在这种情况下主要是电话号码)?
php - PHPMailer 问题
我收到错误 Fatal error: Uncaught exception 'phpmailerException' with message 'Invalid address: ' etc. etc. etc. 页面上真的很疼。
所以我想捕获错误或抑制它或其他东西 - 然后将其返回到表单中,以便可以告诉用户有错误并重新输入他们的电子邮件地址。所有这些都将是整洁的,而不是现在的错误混乱。
有谁知道如何做到这一点?
谢谢
php - 如何使用 php 和 gmail smtp 发送包括 html 在内的电子邮件?
我正在使用 phpmailer
outlook - PDF 附件显示在 Gmail 中,但 Outlook 拒绝打开它
我对php比较陌生。
我编写了一个脚本,该脚本向用户发送带有 pdf 附件的电子邮件并向同事发送确认信息。在 gmail 等基于 Web 的电子邮件客户端中一切正常,但在 Outlook 中收到 pdf 附件时无法打开。它还添加了另一个名为“ATT0159.txt”的附件,该附件完全空白。
这是代码:
php - PHPmailer:从表单发送
好的,我有我的表单(第一个代码片段),我正在尝试使用 PHPmailer 发送它。但是,它发送的消息没有来自实际表单的任何信息。我很迷茫如何让它发挥作用。
邮件脚本:
php - php mailer Mailer 错误:无法加载语言字符串:connect_host?
我一直收到这个错误..
下面是我的代码:
有人知道这个错误吗?非常感谢您的回复。
php - 使用 PHPMailer 通过 SMTP 发送电子邮件
我正在尝试使用 PHPMailer 发送 SMTP 电子邮件,但我不断收到此错误消息,任何想法如何摆脱它?
我正在尝试通过端口 465 上的 SSL 进行连接。
我的代码:
常量定义:
有任何想法吗?
iphone - iphone 中的电子邮件显示为乱码
我正在使用 phpmailer 通过电子邮件向自己发送通知。
电子邮件采用 html 格式,正文包含希伯来语字符。
在我的 Mac 上,电子邮件看起来不错,但在 iphone 上却显示为乱码。
我尝试了所有可能的编码头组合在 html 头标签上和作为 phpmailer 的属性,但没有运气。
有任何想法吗?
谢谢
我如何格式化代码?
require("./classes/phpmailer/class.phpmailer.php");
$mailer = new PHPMailer();
$mailer->IsSMTP();
$mailer->Host = 'ssl://smtp.gmail.com:465';
$mailer->SMTPAuth = TRUE;
$mailer->Username = 'bla@gmail.com'; // Change this to your gmail adress
$mailer->Password = '1234'; // Change this to your gmail password
$mailer->From = 'joe@gmail.com'; // This HAVE TO be your gmail adress
$mailer->FromName = 'Mail'; // This is the from name in the email, you can put anything you like here
$mailer->IsHTML(true);
$mailer->Body = $message;
$mailer->Subject = $subject;
$mailer->AddAddress('me@gmail.com'); // This is where you put the email adress of the person you want to mail
if ($mailer->Send()) echo "ok";
else echo "no ok";