「Simple is best」がやかりよろしかろう,ということですね.すでに,pluginは極力減らすという方針を立てているので実践していきましょうか.今日は,情報収集まで...
構築手順の概要
メールサーバーのsmtp設定
MRHARIKIRのサイトは,Synology NASなのでそれを立ち上げるか,gmailでもいい
phpコードを書く
phpにはsmptに関するAPIがあるので,それを使う.
それを使ってメールを送信
phpコードにメッセージを送ってもらう.
1. smtp設定
コードは,functions.php内に配置する.
function my_phpmailer_example( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = 'smtp.example.com';
$phpmailer->SMTPAuth = true; // Ask it to use authenticate using the Username and Password properties
$phpmailer->Port = 25;
$phpmailer->Username = 'yourusername';
$phpmailer->Password = 'yourpassword';
// Additional settings…
//$phpmailer->SMTPSecure = 'tls'; // Choose 'ssl' for SMTPS on port 465, or 'tls' for SMTP+STARTTLS on port 25 or 587
//$phpmailer->From = "you@yourdomail.com";
//$phpmailer->FromName = "Your Name";
}
add_action( 'phpmailer_init', 'my_phpmailer_example' );
DOM treeという概念も知識として必要です.例えば,<html></html>の内部に<h1>,<h2>などがありプレーンテキストとして<p>があるとして,これら全ての要素が,tree(ツリー, 木)の構成要素になり得ます.改行など構成要素になっていまうので,そうならないような記述の仕方がありす.それを採用すれば,DOM数を多少は少なくすることも可能です.
当サイトでは、利便性向上や閲覧追跡にGoogle・他提携サービスによりCookieを使用しています。サイトの閲覧を続けた場合Cookieの使用に同意したことになります。.理解しました拒否Read More
プライバシーポリシー
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.