├── PHPMailer
├── VERSION
├── examples
│ ├── contents.html
│ ├── styles
│ │ ├── wrapping.png
│ │ ├── shThemeAppleScript.css
│ │ ├── shThemeEmacs.css
│ │ ├── shThemeMDUltra.css
│ │ ├── shThemeRDark.css
│ │ ├── shThemeMidnight.css
│ │ ├── shThemeDefault.css
│ │ ├── shThemeVisualStudio.css
│ │ ├── shThemeFadeToGrey.css
│ │ ├── shThemeDjango.css
│ │ ├── shThemeEclipse.css
│ │ ├── shCore.css
│ │ ├── shCoreEmacs.css
│ │ ├── shCoreMDUltra.css
│ │ └── shCoreRDark.css
│ ├── images
│ │ ├── phpmailer.png
│ │ └── phpmailer_mini.png
│ ├── contentsutf8.html
│ ├── mail.phps
│ ├── sendmail.phps
│ ├── DKIM.phps
│ ├── exceptions.phps
│ ├── send_multiple_file_upload.phps
│ ├── send_file_upload.phps
│ ├── smtp_no_auth.phps
│ ├── smtp.phps
│ ├── smtp_check.phps
│ ├── ssl_options.phps
│ ├── pop_before_smtp.phps
│ ├── gmail.phps
│ ├── mailing_list.phps
│ ├── contactform.phps
│ ├── gmail_xoauth.phps
│ ├── scripts
│ │ ├── shAutoloader.js
│ │ ├── shLegacy.js
│ │ └── shBrushPhp.js
│ ├── signed-mail.phps
│ └── index.html
├── language
│ ├── phpmailer.lang-zh_cn.php
│ ├── phpmailer.lang-zh.php
│ ├── phpmailer.lang-ch.php
│ ├── phpmailer.lang-ko.php
│ ├── phpmailer.lang-he.php
│ ├── phpmailer.lang-ja.php
│ ├── phpmailer.lang-nb.php
│ ├── phpmailer.lang-cs.php
│ ├── phpmailer.lang-lv.php
│ ├── phpmailer.lang-sv.php
│ ├── phpmailer.lang-vi.php
│ ├── phpmailer.lang-da.php
│ ├── phpmailer.lang-lt.php
│ ├── phpmailer.lang-fo.php
│ ├── phpmailer.lang-nl.php
│ ├── phpmailer.lang-eo.php
│ ├── phpmailer.lang-az.php
│ ├── phpmailer.lang-hu.php
│ ├── phpmailer.lang-ar.php
│ ├── phpmailer.lang-sk.php
│ ├── phpmailer.lang-fa.php
│ ├── phpmailer.lang-be.php
│ ├── phpmailer.lang-am.php
│ ├── phpmailer.lang-ca.php
│ ├── phpmailer.lang-tr.php
│ ├── phpmailer.lang-bg.php
│ ├── phpmailer.lang-es.php
│ ├── phpmailer.lang-sl.php
│ ├── phpmailer.lang-fi.php
│ ├── phpmailer.lang-et.php
│ ├── phpmailer.lang-ro.php
│ ├── phpmailer.lang-gl.php
│ ├── phpmailer.lang-sr.php
│ ├── phpmailer.lang-hr.php
│ ├── phpmailer.lang-ms.php
│ ├── phpmailer.lang-de.php
│ ├── phpmailer.lang-id.php
│ ├── phpmailer.lang-pl.php
│ ├── phpmailer.lang-el.php
│ ├── phpmailer.lang-ru.php
│ ├── phpmailer.lang-ka.php
│ ├── phpmailer.lang-uk.php
│ ├── phpmailer.lang-it.php
│ ├── phpmailer.lang-pt_br.php
│ ├── phpmailer.lang-pt.php
│ └── phpmailer.lang-fr.php
├── extras
│ ├── README.md
│ ├── EasyPeasyICS.php
│ └── ntlm_sasl_client.php
├── PHPMailerAutoload.php
├── composer.json
├── class.phpmaileroauthgoogle.php
└── get_oauth_token.php
├── do_queue.php
├── README.md
├── database.sql
├── queue.php
└── register.php
/PHPMailer/VERSION:
--------------------------------------------------------------------------------
1 | 5.2.23
2 |
--------------------------------------------------------------------------------
/do_queue.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/PHPMailer/examples/contents.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yxhsea/sendEmail/HEAD/PHPMailer/examples/contents.html
--------------------------------------------------------------------------------
/PHPMailer/examples/styles/wrapping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yxhsea/sendEmail/HEAD/PHPMailer/examples/styles/wrapping.png
--------------------------------------------------------------------------------
/PHPMailer/examples/images/phpmailer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yxhsea/sendEmail/HEAD/PHPMailer/examples/images/phpmailer.png
--------------------------------------------------------------------------------
/PHPMailer/examples/images/phpmailer_mini.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yxhsea/sendEmail/HEAD/PHPMailer/examples/images/phpmailer_mini.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PHP模拟队列发送邮件
2 | - 用PHPMailer类,实现邮件发送。
3 | - 建立数据表
4 | - Mysql+php实现轮询 实现队列
5 | - cli命令模式测试队列
6 | - 测试邮箱是163的邮箱(不需要要对email和密码进行base64编码)
7 | - 使用PDO操作、连接数据库
8 |
--------------------------------------------------------------------------------
/database.sql:
--------------------------------------------------------------------------------
1 | create table users (
2 | user_id int(5) not null auto_increment,
3 | user_email varchar(40) not null,
4 | user_password char(32) not null,
5 | primary key(user_id)
6 | )engine=myisam default charset=utf8;
7 |
8 | create table task_list (
9 | task_id int(5) not null auto_increment,
10 | user_email varchar(40) not null,
11 | status int(2) not null,
12 | create_time datetime not null,
13 | update_time datetime not null,
14 | primary key(task_id)
15 | )engine=myisam default charset utf8;
16 |
17 |
18 |
19 | insert into task_list(user_email,status,create_time,update_time)
20 | VALUES( 'phpjiaoxuedev@sina.com', 0, now(), now() );
21 | insert into task_list(user_email,status,create_time,update_time)
22 | VALUES( 'phpjiaoxuedev1@sina.com', 0, now(), now() );
23 |
--------------------------------------------------------------------------------
/PHPMailer/examples/contentsutf8.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PHPMailer Test
6 |
7 |
8 |
9 |
This is a test of PHPMailer.
10 |
11 |

12 |
13 |
This example uses HTML.
14 |
Chinese text: 郵件內容為空
15 |
Russian text: Пустое тело сообщения
16 |
Armenian text: Հաղորդագրությունը դատարկ է
17 |
Czech text: Prázdné tělo zprávy
18 |
Emoji: 😂 🦄 💥 📤 📧
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/PHPMailer/examples/mail.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
12 | //Set an alternative reply-to address
13 | $mail->addReplyTo('replyto@example.com', 'First Last');
14 | //Set who the message is to be sent to
15 | $mail->addAddress('whoto@example.com', 'John Doe');
16 | //Set the subject line
17 | $mail->Subject = 'PHPMailer mail() test';
18 | //Read an HTML message body from an external file, convert referenced images to embedded,
19 | //convert HTML into a basic plain-text alternative body
20 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
21 | //Replace the plain text body with one created manually
22 | $mail->AltBody = 'This is a plain-text message body';
23 | //Attach an image file
24 | $mail->addAttachment('images/phpmailer_mini.png');
25 |
26 | //send the message, check for errors
27 | if (!$mail->send()) {
28 | echo "Mailer Error: " . $mail->ErrorInfo;
29 | } else {
30 | echo "Message sent!";
31 | }
32 |
--------------------------------------------------------------------------------
/PHPMailer/examples/sendmail.phps:
--------------------------------------------------------------------------------
1 | isSendmail();
12 | //Set who the message is to be sent from
13 | $mail->setFrom('from@example.com', 'First Last');
14 | //Set an alternative reply-to address
15 | $mail->addReplyTo('replyto@example.com', 'First Last');
16 | //Set who the message is to be sent to
17 | $mail->addAddress('whoto@example.com', 'John Doe');
18 | //Set the subject line
19 | $mail->Subject = 'PHPMailer sendmail test';
20 | //Read an HTML message body from an external file, convert referenced images to embedded,
21 | //convert HTML into a basic plain-text alternative body
22 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
23 | //Replace the plain text body with one created manually
24 | $mail->AltBody = 'This is a plain-text message body';
25 | //Attach an image file
26 | $mail->addAttachment('images/phpmailer_mini.png');
27 |
28 | //send the message, check for errors
29 | if (!$mail->send()) {
30 | echo "Mailer Error: " . $mail->ErrorInfo;
31 | } else {
32 | echo "Message sent!";
33 | }
34 |
--------------------------------------------------------------------------------
/PHPMailer/language/phpmailer.lang-zh_cn.php:
--------------------------------------------------------------------------------
1 |
6 | * @author young
7 | */
8 |
9 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。';
10 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。';
11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。';
12 | $PHPMAILER_LANG['empty_message'] = '邮件正文为空。';
13 | $PHPMAILER_LANG['encoding'] = '未知编码: ';
14 | $PHPMAILER_LANG['execute'] = '无法执行:';
15 | $PHPMAILER_LANG['file_access'] = '无法访问文件:';
16 | $PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:';
17 | $PHPMAILER_LANG['from_failed'] = '发送地址错误:';
18 | $PHPMAILER_LANG['instantiate'] = '未知函数调用。';
19 | $PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:';
20 | $PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。';
21 | $PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。';
22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:';
23 | $PHPMAILER_LANG['signing'] = '登录失败:';
24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。';
25 | $PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错: ';
26 | $PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:';
27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
28 |
--------------------------------------------------------------------------------
/PHPMailer/language/phpmailer.lang-zh.php:
--------------------------------------------------------------------------------
1 |
6 | * @author Peter Dave Hello <@PeterDaveHello/>
7 | * @author Jason Chiang
8 | */
9 |
10 | $PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。';
11 | $PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。';
12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。';
13 | $PHPMAILER_LANG['empty_message'] = '郵件內容為空';
14 | $PHPMAILER_LANG['encoding'] = '未知編碼: ';
15 | $PHPMAILER_LANG['execute'] = '無法執行:';
16 | $PHPMAILER_LANG['file_access'] = '無法存取檔案:';
17 | $PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:';
18 | $PHPMAILER_LANG['from_failed'] = '發送地址錯誤:';
19 | $PHPMAILER_LANG['instantiate'] = '未知函數呼叫。';
20 | $PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: ';
21 | $PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。';
22 | $PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。';
23 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:';
24 | $PHPMAILER_LANG['signing'] = '電子簽章錯誤: ';
25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗';
26 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: ';
27 | $PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: ';
28 | $PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: ';
29 |
--------------------------------------------------------------------------------
/PHPMailer/language/phpmailer.lang-ch.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:身份验证失败。';
9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误: 不能连接SMTP主机。';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误: 数据不可接受。';
11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty';
12 | $PHPMAILER_LANG['encoding'] = '未知编码:';
13 | $PHPMAILER_LANG['execute'] = '不能执行: ';
14 | $PHPMAILER_LANG['file_access'] = '不能访问文件:';
15 | $PHPMAILER_LANG['file_open'] = '文件错误:不能打开文件:';
16 | $PHPMAILER_LANG['from_failed'] = '下面的发送地址邮件发送失败了: ';
17 | $PHPMAILER_LANG['instantiate'] = '不能实现mail方法。';
18 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: ';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' 您所选择的发送邮件的方法并不支持。';
20 | $PHPMAILER_LANG['provide_address'] = '您必须提供至少一个 收信人的email地址。';
21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误: 下面的 收件人失败了: ';
22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: ';
23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
27 |
--------------------------------------------------------------------------------
/PHPMailer/language/phpmailer.lang-ko.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.';
9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.';
11 | $PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다';
12 | $PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: ';
13 | $PHPMAILER_LANG['execute'] = '실행 불가: ';
14 | $PHPMAILER_LANG['file_access'] = '파일 접근 불가: ';
15 | $PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: ';
16 | $PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: ';
17 | $PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다';
18 | $PHPMAILER_LANG['invalid_address'] = '잘못된 주소: ';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.';
20 | $PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.';
21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: ';
22 | $PHPMAILER_LANG['signing'] = '서명 오류: ';
23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.';
24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: ';
25 | $PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: ';
26 | $PHPMAILER_LANG['extension_missing'] = '확장자 없음: ';
27 |
--------------------------------------------------------------------------------
/PHPMailer/examples/DKIM.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
16 | //Set an alternative reply-to address
17 | $mail->addReplyTo('replyto@example.com', 'First Last');
18 | //Set who the message is to be sent to
19 | $mail->addAddress('whoto@example.com', 'John Doe');
20 | //Set the subject line
21 | $mail->Subject = 'PHPMailer DKIM test';
22 | //This should be the same as the domain of your From address
23 | $mail->DKIM_domain = 'example.com';
24 | //Path to your private key file
25 | $mail->DKIM_private = 'dkim_private.pem';
26 | //Set this to your own selector
27 | $mail->DKIM_selector = 'phpmailer';
28 | //If your private key has a passphrase, set it here
29 | $mail->DKIM_passphrase = '';
30 | //The identity you're signing as - usually your From address
31 | $mail->DKIM_identity = $mail->From;
32 |
33 | //send the message, check for errors
34 | if (!$mail->send()) {
35 | echo "Mailer Error: " . $mail->ErrorInfo;
36 | } else {
37 | echo "Message sent!";
38 | }
39 |
--------------------------------------------------------------------------------
/PHPMailer/language/phpmailer.lang-he.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.';
9 | $PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.';
11 | $PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק';
12 | $PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: ';
13 | $PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: ';
14 | $PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: ';
15 | $PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: ';
16 | $PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: ';
17 | $PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: ';
18 | $PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.';
20 | $PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.';
21 | $PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: ';
22 | $PHPMAILER_LANG['signing'] = 'שגיאת חתימה: ';
23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
24 | $PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: ';
25 | $PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: ';
26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
27 |
--------------------------------------------------------------------------------
/PHPMailer/language/phpmailer.lang-ja.php:
--------------------------------------------------------------------------------
1 |
6 | * @author Yoshi Sakai
7 | */
8 |
9 | $PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。';
10 | $PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。';
11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。';
12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty';
13 | $PHPMAILER_LANG['encoding'] = '不明なエンコーディング: ';
14 | $PHPMAILER_LANG['execute'] = '実行できませんでした: ';
15 | $PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: ';
16 | $PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: ';
17 | $PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: ';
18 | $PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。';
19 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: ';
20 | $PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。';
21 | $PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。';
22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: ';
23 | //$PHPMAILER_LANG['signing'] = 'Signing Error: ';
24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
28 |
--------------------------------------------------------------------------------
/PHPMailer/examples/exceptions.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
14 | //Set an alternative reply-to address
15 | $mail->addReplyTo('replyto@example.com', 'First Last');
16 | //Set who the message is to be sent to
17 | $mail->addAddress('whoto@example.com', 'John Doe');
18 | //Set the subject line
19 | $mail->Subject = 'PHPMailer Exceptions test';
20 | //Read an HTML message body from an external file, convert referenced images to embedded,
21 | //and convert the HTML into a basic plain-text alternative body
22 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
23 | //Replace the plain text body with one created manually
24 | $mail->AltBody = 'This is a plain-text message body';
25 | //Attach an image file
26 | $mail->addAttachment('images/phpmailer_mini.png');
27 | //send the message
28 | //Note that we don't need check the response from this because it will throw an exception if it has trouble
29 | $mail->send();
30 | echo "Message sent!";
31 | } catch (phpmailerException $e) {
32 | echo $e->errorMessage(); //Pretty error messages from PHPMailer
33 | } catch (Exception $e) {
34 | echo $e->getMessage(); //Boring error messages from anything else!
35 | }
36 |
--------------------------------------------------------------------------------
/PHPMailer/extras/README.md:
--------------------------------------------------------------------------------
1 | #PHPMailer Extras
2 |
3 | These classes provide optional additional functions to PHPMailer.
4 |
5 | These are not loaded by the PHPMailer autoloader, so in some cases you may need to `require` them yourself before using them.
6 |
7 | ##EasyPeasyICS
8 |
9 | This class was originally written by Manuel Reinhard and provides a simple means of generating ICS/vCal files that are used in sending calendar events. PHPMailer does not use it directly, but you can use it to generate content appropriate for placing in the `Ical` property of PHPMailer. The PHPMailer project is now its official home as Manuel has given permission for that and is no longer maintaining it himself.
10 |
11 | ##htmlfilter
12 |
13 | This class by Konstantin Riabitsev and Jim Jagielski implements HTML filtering to remove potentially malicious tags, such as `
8 |
9 |
10 |
11 | "set names utf8"));
19 |
20 | //sql查询
21 | $sql = 'SELECT * FROM `users` WHERE `user_email` = :user_email';
22 |
23 | //预处理
24 | $stmt = $db->prepare($sql);
25 |
26 | //绑定变量
27 | $stmt->bindParam(':user_email',$user_email);
28 |
29 | //执行操作
30 | $stmt->execute();
31 |
32 | //获取结果集
33 | $res = $stmt->fetchAll();
34 |
35 | if($res){
36 | echo "";
37 | }else{
38 | //新增sql
39 | $sql_inserts = 'INSERT INTO `users`(`user_email`,`user_password`) VALUES(:user_email,:user_password)';
40 |
41 | //预处理
42 | $inserts = $db->prepare($sql_inserts);
43 |
44 | //绑定变量
45 | $inserts->bindParam(':user_email',$user_email);
46 | $inserts->bindParam(':user_password',$user_password);
47 |
48 | //执行操作
49 | $inserts->execute();
50 |
51 | if($inserts){
52 | //获取时间
53 | $create_time = date("Y-m-d H:i:s");
54 | $update_time = date("Y-m-d H:i:s");
55 |
56 | //新增task sql
57 | $sql_task = 'INSERT INTO `task_list`(`user_email`,`status`,`create_time`,`update_time`) VALUES(:user_email,0,:create_time,:update_time)';
58 |
59 | //预处理
60 | $tasks = $db->prepare($sql_task);
61 |
62 | //绑定变量
63 | $tasks->bindParam(':user_email',$user_email);
64 | $tasks->bindParam(':create_time',$create_time);
65 | $tasks->bindParam(':update_time',$update_time);
66 |
67 | //执行操作
68 | $tasks->execute();
69 | if($tasks){
70 | echo "";
71 | }
72 | }else{
73 | echo "";
74 | }
75 | }
76 | }
77 | ?>
78 |
97 |
111 |
112 |