<?php
date_default_timezone_set('America/Toronto');
require_once('class.phpmailer.php');
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
$mail = new PHPMailer();
$body = "gdssdh"
我有一个cpanel电子邮件帐户,我想使用该帐户发送电子邮件通过我的网络应用程序编写的C#。我收到的错误是连接超时。该代码适用于gmail,但不适用于cpanel。cpanel手册指示我使用端口465或端口2525发送电子邮件。有人能帮我一下吗。
using var smtp = new System.Net.Mail.SmtpClient ();
smtp.Host = server;
smtp.EnableSsl = true;
System.Net.NetworkCredential NetworkCred = new Sy
Mandrill API 110 : PHPMailer连接超时错误
错误
SMTP ->错误:未能连接到服务器:连接超时(110) SMTP错误:无法连接到SMTP主机。SMTP ->错误:未能连接到服务器:连接超时(110) SMTP错误:无法连接到SMTP主机。
样本码
<?php
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->SMTPDebug = 1; // enables SMTP debug information (for te
我的OpenCart网站使用SendGrid作为其电子邮件发送系统。直到最近,这一切都是正确的。当使用需要发送电子邮件给管理员的功能时(例如。新订单提醒电子邮件,创建一个新帐户),我一直收到这个错误:
Notice: Error: Password not accepted from server! in .../system/library/mail.php on line 251
在OpenCart Settings > Mail中,我的设置如下:
Mail Protocol: SMTP
SMTP Host: smtp.sendgrid.net
SMTP Username: <
我的wordpress站点电子邮件发送到带有wp-mail-smtp功能的垃圾邮件,一些站点提供给我使用php插件可以修复我的问题,但它对我没有帮助!
当我使用php SMTP函数时,我的电子邮件变成了垃圾邮件,而当我使用mail()时,我有一个这样的错误:SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
我对smtp使用此设置(在wp-mail-smtp插件中):
From Email: noreply@mydoamin.com SMTP host: smtp.gmail.com SMTP po
我正尝试通过office365 smtp服务器发送邮件,但它提示“发送邮件失败”。详细报告显示“{”无法从传输连接读取数据:net_io_connectionclosed。“}” 以下是我的代码 public string SendEmail(string To, string Sub, string Desc)
{
string mess = "";
MailMessage mail = new MailMessage();
mail.Subject = Sub;
mail.From = new Mail
我在我自己的服务器上运行phpfox,并尝试使用smtp发送电子邮件。我正在设置windows live域名电子邮件,目前正在等待域名所有权,同时等待我尝试使用我的正常电子邮件地址something@hotmail.co.uk。
当我输入所有信息时,我需要发送starttls错误。
SMTP Error: Could not authenticate.
SMTP server error: 5.7.0 Must issue a STARTTLS command first
SMTP Error Message: SMTP -> FROM SERVER:220 BLU0-SMTP126.p
在本地主机上使用phpmailer有一些问题。
我已经尝试了至少两个小时来使用ionos连接我的phpmailer 1&1 SMTP服务器。
<<?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'vendor
我已经为gmail配置了php.ini和sendmail.ini,也使用了正确的端口和配置,我也在gmail上启用了不太安全的应用程序,但当我检查收件箱时,我可以看到邮件,它没有显示错误
这是控制器
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
// SMTP Port - the port that you is required
$c
我读过关于堆叠溢出的其他答案。但所有的解决方案都不适合我。
我试图通过live.com发送电子邮件,但无法做到。
错误信息:
mailbox unavailable. The server response was: 5.7.3 requested action aborted;
user not authenticated
守则:
MailMessage mail = new MailMessage();
mail.From = new MailAddress("email@live.com");
mail.To.Add("someone@someone.com