PHPMailer

背景
投稿者投稿者パンサーfkいいね1お気に入り登録
プレイ回数464難易度(4.2) 879打 長文
自分暗記用です
PHPMailer gmailサンプル

関連タイピング

問題文

ふりがな非表示 ふりがな表示
(use phpmailer¥phpmailer¥phpmailer;) //PHPMailer (use phpmailer¥phpmailer¥smtp;) use PHPMailer\PHPMailer\SMTP; (use phpmailer¥phpmailer¥exception;) use PHPMailer\PHPMailer\Exception; (require’vendor/autoload.php’;) composerでインストールした場合 (require ’phpmailer/language/phpmailer.lang-ja.php’;) エラーメッセージ日本語ファイルを読み込む//composerでない場合 ($mail=new phpmailer(true);) PHPMailer() true ExceptionをONにする ($mail->charset=”iso-2022-jp”;) CharSet = 'UTF-8' 'ISO-2022-JP'; ($mail->encoding=”7bit”;) Encoding '7bit' 'base64'; ($mail->setlanguage(’ja’,’phpmailer/language/’);) $mail->setLanguage( (try{) try{}catch(Exception $e){}
($mail->smtpdebug=2;) サーバー設定 0:0ff 1:clent 2:server ($mail->issmtp();) isSMTP(); SMTPを明示的にON ($mail->host=’smtp.gmail.com’;) Host='stmt.gmail.com';SMTPサーバーを設定587 ($mail->smtpauth=true;) SMTPAuth = true; // SMTP認証をON ($mail->username=’user@gmail.com’;) Username ($mail->password=’password’;) Password ($mail->smtpsecure=’tls’;) SMTPSecuretls/ssl/fals 暗号化の設定 ($mail->port=587;) Port = tls/587;ssl/465 ($mail->setfrom(’sender@gmail.com’,) setFrom 差出人アドレス (mb_encode_mimeheader($name));) setFrom
など
($mail->addaddress(’somone@domain.com’);) addAddress 受信者アドレス,名前可能 ($mail->addreplyto($mail,$info));) addReplyTo(',mb_encode_mimeheader()) ($mail->addbcc(’bcc@domain.com’);) addBCC addCC ($mail->addattachment(’./star.png’,’image/png’);) addAttachment 添付ファイルを付ける ($mail->ishtml(true);) isHTML(true); HTMLメールをON; false 0ff; ($mail->subject=) Subject メールタイトル (mb_encode_mimeheader($title);) 日本語メールタイトル ($mail->body=) Body メール本文 text/html形式で (mb_convert_encoding($html,”jis”,”utf-8”);) HTML形式の本文(文字エンコーディングを変換) ($mail->send();) メール送信 (}catch(exception $e){) try{} catch(Exception $e) {} (echo $mail->errorinfo;}) ErrorInfo
問題文を全て表示 一部のみ表示 誤字・脱字等の報告

パンサーfkのタイピング

オススメの新着タイピング

タイピング練習講座 ローマ字入力表 アプリケーションの使い方 よくある質問

人気ランキング

注目キーワード