如果您对使用587设置WordpressPostSMTP和Office365端口时出现延迟是否正常?和wordpress端口是多少感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解使用587设置W
如果您对使用 587 设置 Wordpress Post SMTP 和 Office 365 端口时出现延迟是否正常?和wordpress端口是多少感兴趣,那么这篇文章一定是您不可错过的。我们将详细讲解使用 587 设置 Wordpress Post SMTP 和 Office 365 端口时出现延迟是否正常?的各种细节,并对wordpress端口是多少进行深入的分析,此外还有关于(PHP 初学者帮助) 如果您打算使用 SMTP,请在此行之后添加您的 SMTP 代码、Dynamics 365 App for Outlook“公司”字段未与 Dynamics 365 同步、Excel Web 加载项函数适用于 Excel 365 桌面版,但不会出现在 Excel 365 网页版上、Lumen 电子邮件有时会因“Connection to tcp://smtp.mailgun.org:587 Timed Out”而失败,但未使用 Mailgun的实用技巧。
本文目录一览:- 使用 587 设置 Wordpress Post SMTP 和 Office 365 端口时出现延迟是否正常?(wordpress端口是多少)
- (PHP 初学者帮助) 如果您打算使用 SMTP,请在此行之后添加您的 SMTP 代码
- Dynamics 365 App for Outlook“公司”字段未与 Dynamics 365 同步
- Excel Web 加载项函数适用于 Excel 365 桌面版,但不会出现在 Excel 365 网页版上
- Lumen 电子邮件有时会因“Connection to tcp://smtp.mailgun.org:587 Timed Out”而失败,但未使用 Mailgun
使用 587 设置 Wordpress Post SMTP 和 Office 365 端口时出现延迟是否正常?(wordpress端口是多少)
如何解决使用 587 设置 Wordpress Post SMTP 和 Office 365 端口时出现延迟是否正常?
我们有一个 wordpress 网站,目前正在设置 SMTP 以通过联系表单从网站发送电子邮件。
我目前正在使用 Post SMTP 插件。
客户端使用 Office 365 作为外发邮件服务器和端口 587 WITH STARTTLS 和登录(用户名和密码)。
我们之前已在 wordpress 网站上完成此设置,诊断测试显示以下结果:
邮递员:2.0.22 邮递员发件人域(信封|消息):eastmanspar.co.za | Eastmanspar.co.za 邮递员阻止邮件发件人覆盖(电子邮件|姓名):否 |不 邮递员主动传输:SMTP (smtp:tls:login://smtp.office365.com:587) 邮递员活动传输状态(就绪|已连接):是 |是的 邮递员递送(成功|失败):272 | 3124
通知 邮递员活动传输状态(就绪|已连接):是 |是的
我们目前正在设置SMTP的网站,诊断结果显示:
邮递员:2.0.22 邮递员发件人域(信封|消息):bridgemaritime.com |桥海时间网站 邮递员阻止邮件发件人覆盖(电子邮件|姓名):否 |不 邮递员主动传输:SMTP (smtp:tls:login://smtp.office365.com:587) 邮递员活动传输状态(就绪|已连接):是 |不 邮递员递送(成功|失败):0 | 0
通知 邮递员活动传输状态(就绪|已连接):是 |否
使用端口 587 的 Office 365 是否会延迟打开端口?
在之前的设置中,端口 587 直到第二天才工作。
请确认端口 587 确实需要时间才能打开。
注意我的所有设置都是正确的。
谢谢
(PHP 初学者帮助) 如果您打算使用 SMTP,请在此行之后添加您的 SMTP 代码
如何解决(PHP 初学者帮助) 如果您打算使用 SMTP,请在此行之后添加您的 SMTP 代码?
我是 PHP 和 HTML 的新手,需要有关使用 PHP 发送电子邮件的帮助。代码我使用的是带有详细记录代码的 Web 模板,这可能是一个简单的修复。
问题:当我在 Live Server 中为联系人表单发送测试电子邮件并按“发送”时,没有任何反应,没有电子邮件通过,也没有成功消息。我的 PHP 代码中是否缺少某些内容,还是需要设置 SMTP?
*我的知识很基础,所以这个问题可能会问错。感谢您的任何反馈!
<?PHP
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require ''PHPmailer/src/Exception.PHP'';
require ''PHPmailer/src/PHPMailer.PHP'';
// If you intend you use SMTP,uncomment next line
require ''PHPmailer/src/SMTP.PHP'';
// Set the recipient email address here
$recipients = array();
$recipients[] = array(
''email'' => ''contact@westonborst.com'',''name'' => ''Weston''
);
// Set the sender email address here
$sender = array(
''email'' => ''contact@westonborst.com'',''name'' => ''Weston''
);
// reCaptcha Secret Key - Add this only if you use reCaptcha with your Contact Forms
$recaptcha_secret = '''';
// PHPMailer Initialization
$mail = new PHPMailer();
// If you intend you use SMTP,add your SMTP Code after this Line
// End of SMTP
// Form Messages
$message = array(
''success'' => ''Thank you for your message. It has been sent.'',''error'' => ''There was an error trying to send your message. Please try again later.'',''error_bot'' => ''Bot Detected! Message Could not be send. Please try again.'',''error_unexpected'' => ''There was an unexpected error trying to send your message. Please try again later.'',''recaptcha_invalid'' => ''Captcha not Validated! Please Try Again.'',''recaptcha_error'' => ''Captcha not Submitted! Please Try Again.''
);
// Form Processor
if( $_SERVER[''REQUEST_METHOD''] == ''POST'' ) {
$prefix = !empty( $_POST[''prefix''] ) ? $_POST[''prefix''] : '''';
$submits = $_POST;
$botpassed = false;
$message_form = !empty( $submits[''message''] ) ? $submits[''message''] : array();
$message[''success''] = !empty( $message_form[''success''] ) ? $message_form[''success''] : $message[''success''];
$message[''error''] = !empty( $message_form[''error''] ) ? $message_form[''error''] : $message[''error''];
$message[''error_bot''] = !empty( $message_form[''error_bot''] ) ? $message_form[''error_bot''] : $message[''error_bot''];
$message[''error_unexpected''] = !empty( $message_form[''error_unexpected''] ) ? $message_form[''error_unexpected''] : $message[''error_unexpected''];
$message[''recaptcha_invalid''] = !empty( $message_form[''recaptcha_invalid''] ) ? $message_form[''recaptcha_invalid''] : $message[''recaptcha_invalid''];
$message[''recaptcha_error''] = !empty( $message_form[''recaptcha_error''] ) ? $message_form[''recaptcha_error''] : $message[''recaptcha_error''];
// Bot Protection
if( isset( $submits[ $prefix . ''botcheck'' ] ) ) {
$botpassed = true;
}
if( !empty( $submits[ $prefix . ''botcheck'' ] ) ) {
$botpassed = false;
}
if( $botpassed == false ) {
echo ''{ "alert": "error","message": "'' . $message[''error_bot''] . ''" }'';
exit;
}
// reCaptcha
if( isset( $submits[''g-recaptcha-response''] ) ) {
$recaptcha_data = array(
''secret'' => $recaptcha_secret,''response'' => $submits[''g-recaptcha-response'']
);
$rc_verify = curl_init();
curl_setopt( $rc_verify,CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify" );
curl_setopt( $rc_verify,CURLOPT_POST,true );
curl_setopt( $rc_verify,CURLOPT_POSTFIELDS,http_build_query( $recaptcha_data ) );
curl_setopt( $rc_verify,CURLOPT_SSL_VERIFYPEER,false );
curl_setopt( $rc_verify,CURLOPT_RETURNTRANSFER,true );
$rc_response = curl_exec( $rc_verify );
$g_response = json_decode( $rc_response );
if ( $g_response->success !== true ) {
echo ''{ "alert": "error","message": "'' . $message[''recaptcha_invalid''] . ''" }'';
exit;
}
}
$html_title = !empty( $submits[''html_title''] ) ? $submits[''html_title''] : ''Form Response'';
$forcerecaptcha = ( !empty( $submits[''force_recaptcha''] ) && $submits[''force_recaptcha''] != ''false'' ) ? true : false;
$replyto = !empty( $submits[''replyto''] ) ? explode( '','',$submits[''replyto''] ) : false;
if( $forcerecaptcha ) {
if( !isset( $submits[''g-recaptcha-response''] ) ) {
echo ''{ "alert": "error","message": "'' . $message[''recaptcha_error''] . ''" }'';
exit;
}
}
$mail->Subject = !empty( $submits[''subject''] ) ? $submits[''subject''] : ''Form response from your website'';
$mail->SetFrom( $sender[''email''],$sender[''name''] );
if( !empty( $replyto ) ) {
if( count( $replyto ) > 1 ) {
$replyto_e = $submits[ $replyto[0] ];
$replyto_n = $submits[ $replyto[1] ];
$mail->AddReplyTo( $replyto_e,$replyto_n );
} elseif( count( $replyto ) == 1 ) {
$replyto_e = $submits[ $replyto[0] ];
$mail->AddReplyTo( $replyto_e );
}
}
foreach( $recipients as $recipient ) {
$mail->AddAddress( $recipient[''email''],$recipient[''name''] );
}
$unsets = array( ''prefix'',''subject'',''replyto'',''message'',$prefix . ''botcheck'',''g-recaptcha-response'',''force_recaptcha'',$prefix . ''submit'' );
foreach( $unsets as $unset ) {
unset( $submits[ $unset ] );
}
$fields = array();
foreach( $submits as $name => $value ) {
if( empty( $value ) ) continue;
$name = str_replace( $prefix,'''',$name );
$name = ucwords( str_replace( ''-'','' '',$name ) );
if( is_array( $value ) ) {
$value = implode( '',$value );
}
$fields[$name] = $value;
}
$response = array();
foreach( $fields as $fieldname => $fieldvalue ) {
$response[] = $fieldname . '': '' . $fieldvalue;
}
$referrer = $_SERVER[''HTTP_REFERER''] ? ''<br><br><br>This Form was submitted from: '' . $_SERVER[''HTTP_REFERER''] : '''';
$body = implode( "<br>",$response ) . $referrer;
$mail->MsgHTML( $body );
$sendEmail = $mail->Send();
if( $sendEmail == true ):
if( $autores && !empty( $replyto_e ) ) {
$send_arEmail = $autoresponder->Send();
}
echo ''{ "alert": "success","message": "'' . $message[''success''] . ''" }'';
else:
echo ''{ "alert": "error","message": "'' . $message[''error''] . ''<br><br><strong>Reason:</strong><br>'' . $mail->ErrorInfo . ''" }'';
endif;
} else {
echo ''{ "alert": "error","message": "'' . $message[''error_unexpected''] . ''" }'';
}
?>
解决方法
如果您正确填写了所有内容,这应该可以工作。 (我试过了)
require ''PHPMailer/PHPMailer.php'';
require ''PHPMailer/SMTP.php'';
require ''PHPMailer/Exception.php'';
$mail = new PHPMailer\PHPMailer\PHPMailer();
try {
$mail->IsSMTP(); // enable SMTP
$mail->CharSet = ''UTF-8'';
$mail->SMTPDebug = 2; // debugging: 1 = errors and messages,2 = messages only
$mail->SMTPAuth = true; // authentication enabled
$mail->SMTPSecure = ''ssl''; // secure transfer enabled REQUIRED for Gmail
$mail->Host = "smtp.gmail.com";
$mail->Port = 465; // or 587
$mail->IsHTML(true);
$mail->Username = "Your Email Address";
$mail->Password = "Your Password";
$mail->SetFrom("From Name");
$mail->Subject = "Message Subject";
$mail->Body ="Message Body ";
$mail->AddAddress(''Sent email to this address'');
if($mail->Send()) {
// e-posta başarılı ile gönderildi
echo ''success'';
} else {
echo ''error'';
}
} catch (Exception $e) {
echo ''error : ''.$e;
}
如果不是,请分享您收到的错误消息。
,不知道为什么它不会发送,这是我试过的?有什么建议吗? (我从代码中删除了密码)
TypeError: ''Series'' objects are mutable,thus they cannot be hashed
Dynamics 365 App for Outlook“公司”字段未与 Dynamics 365 同步
如何解决Dynamics 365 App for Outlook“公司”字段未与 Dynamics 365 同步
我刚刚开始使用 Dynamics 365,所以我的知识非常有限。很抱歉。
我推出了适用于 Outlook 的 Dynamics 365 应用程序,并在 Outlook 中跟踪了地址簿联系人。这有效,我可以看到在 Dynamics 365 中创建的联系人。
但是,Outlook 中的“公司”字段未与“联系人”Dynamics 365 中的“公司名称”字段同步。
我四处寻找解决办法,并花了一天的大部分时间研究如何解决这个问题。
这是设计使然吗?我需要更改配置,例如在 2 个字段之间创建关系吗?
我已经重新安装了客户端,但没有解决问题。我还手动创建了公司名称作为帐户并尝试了另一个同步,但它也没有选择关联。
有人可以帮忙吗?非常感谢
更新:在同步设置的屏幕截图中添加。
[Contact Synchronization Settings Part 1][1]
[Contact Synchronization Settings Part 2][2]
[Contact Synchronization Settings Part 3][3]
[Contact Synchronization Settings Part 4][4]
[Contact Synchronization Settings Part 5][5]
[1]: https://i.stack.imgur.com/KcbFG.png
[2]: https://i.stack.imgur.com/n71l8.png
[3]: https://i.stack.imgur.com/27urf.png
[4]: https://i.stack.imgur.com/yAuFU.png
[5]: https://i.stack.imgur.com/dxqSb.png
当我查看同步设置中的 Dynamics 365 Field 时,我看到的是:
母公司(关于)双向公司名称(关于)
我希望看到这样的事情吗?
公司(关于)双向公司名称(关于)
谢谢
Excel Web 加载项函数适用于 Excel 365 桌面版,但不会出现在 Excel 365 网页版上
如何解决Excel Web 加载项函数适用于 Excel 365 桌面版,但不会出现在 Excel 365 网页版上?
我创建了一个 Excel 加载项,并将其托管在我的服务器上。它有按钮、任务面板和功能。
如果我将清单文件添加到 Excel 365 桌面,一切正常。
如果我将相同的清单文件上传到 Excel 网页,一切正常,除了电子表格中没有显示函数。
到目前为止我认为我必须在functions.json中添加“Access-Control-Allow-Origin”。
我唯一能找到“Access-Control-Allow-Origin”的地方是 webpack.config.json for dev。
devServer: {
headers: {
"Access-Control-Allow-Origin": "*"
},https: (options.https !== undefined) ? options.https : await devCerts.getHttpsServerOptions(),port: process.env.npm_package_config_dev_server_port || 3000
}
你们中的任何人在使用 Web 加载项时遇到过这个问题吗?我无法在任何地方找到我的问题的答案。我应该修改functions.json文件还是webpack.config.js?如何将其添加到生产中?
这些是错误,我收到了。
在 chrome 控制台内,我也有这条消息:
Access to XMLHttpRequest at ''https://SEO.example.com/functions.json'' from origin ''https://excel.officeapps.live.com'' has been blocked by CORS policy: No ''Access-Control-Allow-Origin'' header is present on the requested resource.
解决方法
现在可以使用了。我修改了/etc/nginx/nginx.conf中的Nginx配置。
http {
...
add_header Access-Control-Allow-Origin *;
...
}
现在,这些函数是可见的并且可以工作。
Lumen 电子邮件有时会因“Connection to tcp://smtp.mailgun.org:587 Timed Out”而失败,但未使用 Mailgun
如何解决Lumen 电子邮件有时会因“Connection to tcp://smtp.mailgun.org:587 Timed Out”而失败,但未使用 Mailgun
我的系统包含两个内置于 Lumen(版本 6)的 API,一个创建邮件作业并将其发送到 SQS 队列,另一个从队列中读取并使用 Amazon SES 处理邮件。
大多数情况下,电子邮件都可以成功发送和接收,但是,有时我会在 Sentry 中收到以下错误(同时出现两个错误)
Swift_TransportException: Connection to tcp://smtp.mailgun.org:587 Timed Out
&
Swift_TransportException: Expected response code 250 but got code "550",with message "550 5.7.1 Relaying denied"
导致永远不会收到电子邮件。
奇怪的是我没有使用 Mailgun,所以我不确定为什么错误引用了 Mailgun。
我已确保 .env
文件中两个 API 的值都是正确的
MAIL_DRIVER=ses
MAIL_MAILER=ses
MAIL_HOST=XXX
MAIL_USERNAME=XXX
MAIL_PASSWORD=XXX
并已通过 PHP artisan tinker
和 config(''mail'')
检查是否已在实时服务器(ECS 容器)上正确加载配置
>>> config(''mail'')
=> [
"driver" => "ses","host" => "XXX","port" => 587,"from" => [
"address" => "hello@example.com","name" => "Example",],"encryption" => "tls","username" => "XXX","password" => "XXX","sendmail" => "/usr/sbin/sendmail -bs","markdown" => [
"theme" => "default","paths" => [
"/var/www/app/resources/views/vendor/mail","log_channel" => null,]
我也尝试过 PHP artisan cache:clear
,但是我无法运行 PHP artisan config:clear
,因为 Lumen 没有该命令。
有什么想法为什么某些电子邮件因上述错误而失败?或者我还能如何调试这个?
这是我的两个 API 的 config/mail.PHP
的内容
<?PHP
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP''s "mail" function as drivers for the
| sending of e-mail. You may specify which one you''re using throughout
| your application here. By default,Laravel is setup for SMTP mail.
|
| Supported: "smtp","sendmail","mailgun","ses",| "postmark","log","array"
|
*/
''driver'' => env(''MAIL_DRIVER'',''smtp''),/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/
''host'' => env(''MAIL_HOST'',''smtp.mailgun.org''),/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/
''port'' => env(''MAIL_PORT'',587),/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here,you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
''from'' => [
''address'' => env(''MAIL_FROM_ADDRESS'',''hello@example.com''),''name'' => env(''MAIL_FROM_NAME'',''Example''),/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
''encryption'' => env(''MAIL_ENCRYPTION'',''tls''),/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication,you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
''username'' => env(''MAIL_USERNAME''),''password'' => env(''MAIL_PASSWORD''),/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails,we will need to kNow
| the path to where Sendmail lives on this server. A default path has
| been provided here,which will work well on most of your systems.
|
*/
''sendmail'' => ''/usr/sbin/sendmail -bs'',/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
|--------------------------------------------------------------------------
|
| If you are using Markdown based email rendering,you may configure your
| theme and component paths here,allowing you to customize the design
| of the emails. Or,you may simply stick with the Laravel defaults!
|
*/
''markdown'' => [
''theme'' => ''default'',''paths'' => [
resource_path(''views/vendor/mail''),/*
|--------------------------------------------------------------------------
| Log Channel
|--------------------------------------------------------------------------
|
| If you are using the "log" driver,you may specify the logging channel
| if you prefer to keep mail messages separate from other log entries
| for simpler reading. Otherwise,the default channel will be used.
|
*/
''log_channel'' => env(''MAIL_LOG_CHANNEL''),];
解决方法
结果是 Laravel / Lumen 队列工作器在暂存时从 SQS 队列中拉取作业(暂存配置错误)
解决方案是为暂存创建一个单独的 SQS 队列,并更新 .env
以查看该队列
我们今天的关于使用 587 设置 Wordpress Post SMTP 和 Office 365 端口时出现延迟是否正常?和wordpress端口是多少的分享就到这里,谢谢您的阅读,如果想了解更多关于(PHP 初学者帮助) 如果您打算使用 SMTP,请在此行之后添加您的 SMTP 代码、Dynamics 365 App for Outlook“公司”字段未与 Dynamics 365 同步、Excel Web 加载项函数适用于 Excel 365 桌面版,但不会出现在 Excel 365 网页版上、Lumen 电子邮件有时会因“Connection to tcp://smtp.mailgun.org:587 Timed Out”而失败,但未使用 Mailgun的相关信息,可以在本站进行搜索。
本文标签: