dependabot-linguist 0.212.0 → 0.212.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +27 -0
  4. data/dependabot-linguist.gemspec +1 -1
  5. data/lib/dependabot/linguist/dependabot_file_validator.rb +40 -6
  6. data/lib/dependabot/linguist/version.rb +1 -1
  7. metadata +2 -195
  8. data/smoke-test/README.md +0 -58
  9. data/smoke-test/bundler/Gemfile +0 -9
  10. data/smoke-test/bundler/Gemfile.lock +0 -47
  11. data/smoke-test/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  12. data/smoke-test/cargo/Cargo.lock +0 -90
  13. data/smoke-test/cargo/Cargo.toml +0 -8
  14. data/smoke-test/composer/composer.json +0 -5
  15. data/smoke-test/composer/composer.lock +0 -72
  16. data/smoke-test/composer/vendor/autoload.php +0 -7
  17. data/smoke-test/composer/vendor/composer/ClassLoader.php +0 -445
  18. data/smoke-test/composer/vendor/composer/LICENSE +0 -21
  19. data/smoke-test/composer/vendor/composer/autoload_classmap.php +0 -13
  20. data/smoke-test/composer/vendor/composer/autoload_namespaces.php +0 -9
  21. data/smoke-test/composer/vendor/composer/autoload_psr4.php +0 -9
  22. data/smoke-test/composer/vendor/composer/autoload_real.php +0 -55
  23. data/smoke-test/composer/vendor/composer/autoload_static.php +0 -23
  24. data/smoke-test/composer/vendor/composer/installed.json +0 -57
  25. data/smoke-test/composer/vendor/phpmailer/phpmailer/.gitignore +0 -3
  26. data/smoke-test/composer/vendor/phpmailer/phpmailer/LICENSE +0 -504
  27. data/smoke-test/composer/vendor/phpmailer/phpmailer/README.md +0 -112
  28. data/smoke-test/composer/vendor/phpmailer/phpmailer/changelog.md +0 -530
  29. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.phpmailer.php +0 -2758
  30. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.pop3.php +0 -417
  31. data/smoke-test/composer/vendor/phpmailer/phpmailer/class.smtp.php +0 -1075
  32. data/smoke-test/composer/vendor/phpmailer/phpmailer/composer.json +0 -32
  33. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Callback_function_notes.txt +0 -17
  34. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/DomainKeys_notes.txt +0 -55
  35. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Note_for_SMTP_debugging.txt +0 -23
  36. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/extending.html +0 -148
  37. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/faq.html +0 -67
  38. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/generatedocs.sh +0 -4
  39. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/pop3_article.txt +0 -39
  40. data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/use_gmail.txt +0 -44
  41. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/contents.html +0 -20
  42. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer.gif +0 -0
  43. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.gif +0 -0
  44. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/index.html +0 -50
  45. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_db_smtp_basic.php +0 -58
  46. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_advanced.php +0 -30
  47. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_basic.php +0 -41
  48. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_advanced.php +0 -39
  49. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_basic.php +0 -49
  50. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_advanced.php +0 -33
  51. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_basic.php +0 -43
  52. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced.php +0 -42
  53. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced_no_auth.php +0 -36
  54. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic.php +0 -58
  55. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic_no_auth.php +0 -53
  56. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_advanced.php +0 -42
  57. data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_basic.php +0 -59
  58. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/class.html2text.inc +0 -489
  59. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/htmlfilter.php +0 -861
  60. data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/ntlm_sasl_client.php +0 -185
  61. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -26
  62. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-br.php +0 -25
  63. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -25
  64. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php +0 -25
  65. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-cz.php +0 -24
  66. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -24
  67. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-dk.php +0 -25
  68. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -25
  69. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -25
  70. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -26
  71. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -26
  72. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -24
  73. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -24
  74. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -26
  75. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -25
  76. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -24
  77. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-no.php +0 -24
  78. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -24
  79. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -26
  80. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -24
  81. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-se.php +0 -25
  82. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -25
  83. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -26
  84. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -25
  85. data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -25
  86. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/contents.html +0 -10
  87. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/phpmailerTest.php +0 -1084
  88. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test.png +0 -0
  89. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test_callback.php +0 -84
  90. data/smoke-test/composer/vendor/phpmailer/phpmailer/test/testemail.php +0 -48
  91. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/LGPLv3.txt +0 -165
  92. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/contents.html +0 -14
  93. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/aikido.gif +0 -0
  94. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/bkgrnd.gif +0 -0
  95. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/phpmailer.gif +0 -0
  96. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/index.php +0 -427
  97. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/clipboard.swf +0 -0
  98. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushBash.js +0 -59
  99. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCSharp.js +0 -64
  100. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCpp.js +0 -99
  101. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCss.js +0 -93
  102. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDelphi.js +0 -57
  103. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDiff.js +0 -43
  104. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushGroovy.js +0 -69
  105. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJScript.js +0 -51
  106. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJava.js +0 -55
  107. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPerl.js +0 -74
  108. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPhp.js +0 -91
  109. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPlain.js +0 -35
  110. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPython.js +0 -56
  111. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushRuby.js +0 -57
  112. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushScala.js +0 -53
  113. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushSql.js +0 -68
  114. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushVb.js +0 -58
  115. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushXml.js +0 -71
  116. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shCore.js +0 -30
  117. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shLegacy.js +0 -30
  118. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shCore.js +0 -1949
  119. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shLegacy.js +0 -172
  120. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/help.png +0 -0
  121. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/magnifier.png +0 -0
  122. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_code.png +0 -0
  123. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_copy.png +0 -0
  124. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/printer.png +0 -0
  125. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shCore.css +0 -321
  126. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDefault.css +0 -191
  127. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDjango.css +0 -193
  128. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeEmacs.css +0 -192
  129. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeFadeToGrey.css +0 -193
  130. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeMidnight.css +0 -192
  131. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeRDark.css +0 -192
  132. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/wrapping.png +0 -0
  133. data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/test.html +0 -46
  134. data/smoke-test/dependabot-file/no-config/.github/TARGET.yaml +0 -14
  135. data/smoke-test/dependabot-file/no-config/bundler/Gemfile +0 -9
  136. data/smoke-test/dependabot-file/no-config/bundler/Gemfile.lock +0 -47
  137. data/smoke-test/dependabot-file/no-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  138. data/smoke-test/dependabot-file/no-config/cargo/Cargo.lock +0 -90
  139. data/smoke-test/dependabot-file/no-config/cargo/Cargo.toml +0 -8
  140. data/smoke-test/dependabot-file/no-config/composer/composer.json +0 -5
  141. data/smoke-test/dependabot-file/no-config/composer/composer.lock +0 -72
  142. data/smoke-test/dependabot-file/over-config/.github/TARGET.yaml +0 -17
  143. data/smoke-test/dependabot-file/over-config/.github/dependabot.yaml +0 -12
  144. data/smoke-test/dependabot-file/over-config/bundler/Gemfile +0 -9
  145. data/smoke-test/dependabot-file/over-config/bundler/Gemfile.lock +0 -47
  146. data/smoke-test/dependabot-file/over-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  147. data/smoke-test/dependabot-file/over-config/cargo/Cargo.lock +0 -90
  148. data/smoke-test/dependabot-file/over-config/cargo/Cargo.toml +0 -8
  149. data/smoke-test/dependabot-file/over-config/composer/composer.json +0 -5
  150. data/smoke-test/dependabot-file/over-config/composer/composer.lock +0 -72
  151. data/smoke-test/dependabot-file/overer-config/.github/TARGET.yaml +0 -19
  152. data/smoke-test/dependabot-file/overer-config/.github/dependabot.yaml +0 -12
  153. data/smoke-test/dependabot-file/overer-config/bundler/Gemfile +0 -9
  154. data/smoke-test/dependabot-file/overer-config/bundler/Gemfile.lock +0 -47
  155. data/smoke-test/dependabot-file/overer-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  156. data/smoke-test/dependabot-file/overer-config/cargo/Cargo.lock +0 -90
  157. data/smoke-test/dependabot-file/overer-config/cargo/Cargo.toml +0 -8
  158. data/smoke-test/dependabot-file/overer-config/composer/composer.json +0 -5
  159. data/smoke-test/dependabot-file/overer-config/composer/composer.lock +0 -72
  160. data/smoke-test/dependabot-file/partial-config/.github/TARGET.yaml +0 -17
  161. data/smoke-test/dependabot-file/partial-config/.github/dependabot.yaml +0 -7
  162. data/smoke-test/dependabot-file/partial-config/bundler/Gemfile +0 -9
  163. data/smoke-test/dependabot-file/partial-config/bundler/Gemfile.lock +0 -47
  164. data/smoke-test/dependabot-file/partial-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
  165. data/smoke-test/dependabot-file/partial-config/cargo/Cargo.lock +0 -90
  166. data/smoke-test/dependabot-file/partial-config/cargo/Cargo.toml +0 -8
  167. data/smoke-test/dependabot-file/partial-config/composer/composer.json +0 -5
  168. data/smoke-test/dependabot-file/partial-config/composer/composer.lock +0 -72
  169. data/smoke-test/docker/Dockerfile +0 -19
  170. data/smoke-test/elm/elm-package.json +0 -15
  171. data/smoke-test/elm/elm.json +0 -31
  172. data/smoke-test/github-actions/both/.github/workflows/this.yaml +0 -11
  173. data/smoke-test/github-actions/both/yaml/action.yml +0 -13
  174. data/smoke-test/github-actions/invalid/invalid_file.yaml +0 -0
  175. data/smoke-test/github-actions/workflow/.github/workflows/this.yaml +0 -11
  176. data/smoke-test/github-actions/yaml/action.yml +0 -13
  177. data/smoke-test/gitsubmodule/.gitmodules +0 -4
  178. data/smoke-test/gomod/go.mod +0 -16
  179. data/smoke-test/gomod/go.sum +0 -18
  180. data/smoke-test/gomod/gomain.go +0 -14
  181. data/smoke-test/gradle/.gitignore +0 -1
  182. data/smoke-test/gradle/build.gradle +0 -65
  183. data/smoke-test/maven/pom.xml +0 -65
  184. data/smoke-test/mix/mix.exs +0 -24
  185. data/smoke-test/mix/mix.lock +0 -5
  186. data/smoke-test/npm/package-lock.json +0 -166
  187. data/smoke-test/npm/package.json +0 -22
  188. data/smoke-test/npm/removed/package-lock.json +0 -44
  189. data/smoke-test/npm/removed/package.json +0 -15
  190. data/smoke-test/nuget/project.csproj +0 -14
  191. data/smoke-test/pip/pip/requirements.txt +0 -5
  192. data/smoke-test/pip/pip-compile/requirements.in +0 -2
  193. data/smoke-test/pip/pip-compile/requirements.txt +0 -16
  194. data/smoke-test/pip/pipenv/Pipfile +0 -13
  195. data/smoke-test/pip/pipenv/Pipfile.lock +0 -86
  196. data/smoke-test/pip/poetry/poetry.lock +0 -33
  197. data/smoke-test/pip/poetry/pyproject.toml +0 -18
  198. data/smoke-test/pub/pubspec.lock +0 -40
  199. data/smoke-test/pub/pubspec.yaml +0 -10
  200. data/smoke-test/terraform/main.tf +0 -143
@@ -1,39 +0,0 @@
1
- <html>
2
- <head>
3
- <title>POP before SMTP Test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
- require_once('../class.phpmailer.php');
9
- require_once('../class.pop3.php'); // required for POP before SMTP
10
-
11
- $pop = new POP3();
12
- $pop->Authorise('pop3.yourdomain.com', 110, 30, 'username', 'password', 1);
13
-
14
- $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
15
-
16
- $mail->IsSMTP();
17
-
18
- try {
19
- $mail->SMTPDebug = 2;
20
- $mail->Host = 'pop3.yourdomain.com';
21
- $mail->AddAddress('whoto@otherdomain.com', 'John Doe');
22
- $mail->SetFrom('name@yourdomain.com', 'First Last');
23
- $mail->AddReplyTo('name@yourdomain.com', 'First Last');
24
- $mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
25
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
26
- $mail->MsgHTML(file_get_contents('contents.html'));
27
- $mail->AddAttachment('images/phpmailer.gif'); // attachment
28
- $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
29
- $mail->Send();
30
- echo "Message Sent OK</p>\n";
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
- ?>
37
-
38
- </body>
39
- </html>
@@ -1,49 +0,0 @@
1
- <html>
2
- <head>
3
- <title>POP before SMTP Test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
- require_once('../class.phpmailer.php');
9
- require_once('../class.pop3.php'); // required for POP before SMTP
10
-
11
- $pop = new POP3();
12
- $pop->Authorise('pop3.yourdomain.com', 110, 30, 'username', 'password', 1);
13
-
14
- $mail = new PHPMailer();
15
-
16
- $body = file_get_contents('contents.html');
17
- $body = preg_replace('/[\]/','',$body);
18
-
19
- $mail->IsSMTP();
20
- $mail->SMTPDebug = 2;
21
- $mail->Host = 'pop3.yourdomain.com';
22
-
23
- $mail->SetFrom('name@yourdomain.com', 'First Last');
24
-
25
- $mail->AddReplyTo("name@yourdomain.com","First Last");
26
-
27
- $mail->Subject = "PHPMailer Test Subject via POP before SMTP, basic";
28
-
29
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
30
-
31
- $mail->MsgHTML($body);
32
-
33
- $address = "whoto@otherdomain.com";
34
- $mail->AddAddress($address, "John Doe");
35
-
36
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
37
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
38
-
39
-
40
- if(!$mail->Send()) {
41
- echo "Mailer Error: " . $mail->ErrorInfo;
42
- } else {
43
- echo "Message sent!";
44
- }
45
-
46
- ?>
47
-
48
- </body>
49
- </html>
@@ -1,33 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - Sendmail advanced test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
-
9
- require_once('../class.phpmailer.php');
10
-
11
- $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
12
- $mail->IsSendmail(); // telling the class to use SendMail transport
13
-
14
- try {
15
- $mail->AddAddress('whoto@otherdomain.com', 'John Doe');
16
- $mail->SetFrom('name@yourdomain.com', 'First Last');
17
- $mail->AddReplyTo('name@yourdomain.com', 'First Last');
18
- $mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
19
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
20
- $mail->MsgHTML(file_get_contents('contents.html'));
21
- $mail->AddAttachment('images/phpmailer.gif'); // attachment
22
- $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
23
- $mail->Send();
24
- echo "Message Sent OK</p>\n";
25
- } catch (phpmailerException $e) {
26
- echo $e->errorMessage(); //Pretty error messages from PHPMailer
27
- } catch (Exception $e) {
28
- echo $e->getMessage(); //Boring error messages from anything else!
29
- }
30
- ?>
31
-
32
- </body>
33
- </html>
@@ -1,43 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - Sendmail basic test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
-
9
- require_once('../class.phpmailer.php');
10
-
11
- $mail = new PHPMailer(); // defaults to using php "mail()"
12
-
13
- $mail->IsSendmail(); // telling the class to use SendMail transport
14
-
15
- $body = file_get_contents('contents.html');
16
- $body = preg_replace('/[\]/','',$body);
17
-
18
- $mail->SetFrom('name@yourdomain.com', 'First Last');
19
-
20
- $mail->AddReplyTo("name@yourdomain.com","First Last");
21
-
22
- $address = "whoto@otherdomain.com";
23
- $mail->AddAddress($address, "John Doe");
24
-
25
- $mail->Subject = "PHPMailer Test Subject via Sendmail, basic";
26
-
27
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
28
-
29
- $mail->MsgHTML($body);
30
-
31
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
32
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
33
-
34
- if(!$mail->Send()) {
35
- echo "Mailer Error: " . $mail->ErrorInfo;
36
- } else {
37
- echo "Message sent!";
38
- }
39
-
40
- ?>
41
-
42
- </body>
43
- </html>
@@ -1,42 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - SMTP advanced test with authentication</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
-
9
- require_once('../class.phpmailer.php');
10
- //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
11
-
12
- $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
13
-
14
- $mail->IsSMTP(); // telling the class to use SMTP
15
-
16
- try {
17
- $mail->Host = "mail.yourdomain.com"; // SMTP server
18
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
19
- $mail->SMTPAuth = true; // enable SMTP authentication
20
- $mail->Host = "mail.yourdomain.com"; // sets the SMTP server
21
- $mail->Port = 26; // set the SMTP port for the GMAIL server
22
- $mail->Username = "yourname@yourdomain"; // SMTP account username
23
- $mail->Password = "yourpassword"; // SMTP account password
24
- $mail->AddAddress('whoto@otherdomain.com', 'John Doe');
25
- $mail->SetFrom('name@yourdomain.com', 'First Last');
26
- $mail->AddReplyTo('name@yourdomain.com', 'First Last');
27
- $mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
28
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
29
- $mail->MsgHTML(file_get_contents('contents.html'));
30
- $mail->AddAttachment('images/phpmailer.gif'); // attachment
31
- $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
32
- $mail->Send();
33
- echo "Message Sent OK</p>\n";
34
- } catch (phpmailerException $e) {
35
- echo $e->errorMessage(); //Pretty error messages from PHPMailer
36
- } catch (Exception $e) {
37
- echo $e->getMessage(); //Boring error messages from anything else!
38
- }
39
- ?>
40
-
41
- </body>
42
- </html>
@@ -1,36 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - SMTP advanced test with no authentication</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
- require_once('../class.phpmailer.php');
9
- //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
10
-
11
- $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
12
-
13
- $mail->IsSMTP(); // telling the class to use SMTP
14
-
15
- try {
16
- $mail->Host = "mail.yourdomain.com"; // SMTP server
17
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
18
- $mail->AddAddress('whoto@otherdomain.com', 'John Doe');
19
- $mail->SetFrom('name@yourdomain.com', 'First Last');
20
- $mail->AddReplyTo('name@yourdomain.com', 'First Last');
21
- $mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
22
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
23
- $mail->MsgHTML(file_get_contents('contents.html'));
24
- $mail->AddAttachment('images/phpmailer.gif'); // attachment
25
- $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
26
- $mail->Send();
27
- echo "Message Sent OK</p>\n";
28
- } catch (phpmailerException $e) {
29
- echo $e->errorMessage(); //Pretty error messages from PHPMailer
30
- } catch (Exception $e) {
31
- echo $e->getMessage(); //Boring error messages from anything else!
32
- }
33
- ?>
34
-
35
- </body>
36
- </html>
@@ -1,58 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - SMTP basic test with authentication</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
-
9
- //error_reporting(E_ALL);
10
- error_reporting(E_STRICT);
11
-
12
- date_default_timezone_set('America/Toronto');
13
-
14
- require_once('../class.phpmailer.php');
15
- //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
16
-
17
- $mail = new PHPMailer();
18
-
19
- $body = file_get_contents('contents.html');
20
- $body = preg_replace('/[\]/','',$body);
21
-
22
- $mail->IsSMTP(); // telling the class to use SMTP
23
- $mail->Host = "mail.yourdomain.com"; // SMTP server
24
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
25
- // 1 = errors and messages
26
- // 2 = messages only
27
- $mail->SMTPAuth = true; // enable SMTP authentication
28
- $mail->Host = "mail.yourdomain.com"; // sets the SMTP server
29
- $mail->Port = 26; // set the SMTP port for the GMAIL server
30
- $mail->Username = "yourname@yourdomain"; // SMTP account username
31
- $mail->Password = "yourpassword"; // SMTP account password
32
-
33
- $mail->SetFrom('name@yourdomain.com', 'First Last');
34
-
35
- $mail->AddReplyTo("name@yourdomain.com","First Last");
36
-
37
- $mail->Subject = "PHPMailer Test Subject via smtp, basic with authentication";
38
-
39
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
40
-
41
- $mail->MsgHTML($body);
42
-
43
- $address = "whoto@otherdomain.com";
44
- $mail->AddAddress($address, "John Doe");
45
-
46
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
47
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
48
-
49
- if(!$mail->Send()) {
50
- echo "Mailer Error: " . $mail->ErrorInfo;
51
- } else {
52
- echo "Message sent!";
53
- }
54
-
55
- ?>
56
-
57
- </body>
58
- </html>
@@ -1,53 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - SMTP basic test with no authentication</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
-
9
- //error_reporting(E_ALL);
10
- error_reporting(E_STRICT);
11
-
12
- date_default_timezone_set('America/Toronto');
13
-
14
- require_once('../class.phpmailer.php');
15
- //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
16
-
17
- $mail = new PHPMailer();
18
-
19
- $body = file_get_contents('contents.html');
20
- $body = preg_replace('/[\]/','',$body);
21
-
22
- $mail->IsSMTP(); // telling the class to use SMTP
23
- $mail->Host = "mail.yourdomain.com"; // SMTP server
24
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
25
- // 1 = errors and messages
26
- // 2 = messages only
27
-
28
- $mail->SetFrom('name@yourdomain.com', 'First Last');
29
-
30
- $mail->AddReplyTo("name@yourdomain.com","First Last");
31
-
32
- $mail->Subject = "PHPMailer Test Subject via smtp, basic with no authentication";
33
-
34
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
35
-
36
- $mail->MsgHTML($body);
37
-
38
- $address = "whoto@otherdomain.com";
39
- $mail->AddAddress($address, "John Doe");
40
-
41
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
42
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
43
-
44
- if(!$mail->Send()) {
45
- echo "Mailer Error: " . $mail->ErrorInfo;
46
- } else {
47
- echo "Message sent!";
48
- }
49
-
50
- ?>
51
-
52
- </body>
53
- </html>
@@ -1,42 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - SMTP (Gmail) advanced test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
- require_once('../class.phpmailer.php');
9
- //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
10
-
11
- $mail = new PHPMailer(true); // the true param means it will throw exceptions on errors, which we need to catch
12
-
13
- $mail->IsSMTP(); // telling the class to use SMTP
14
-
15
- try {
16
- $mail->Host = "mail.yourdomain.com"; // SMTP server
17
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
18
- $mail->SMTPAuth = true; // enable SMTP authentication
19
- $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
20
- $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
21
- $mail->Port = 465; // set the SMTP port for the GMAIL server
22
- $mail->Username = "yourusername@gmail.com"; // GMAIL username
23
- $mail->Password = "yourpassword"; // GMAIL password
24
- $mail->AddAddress('whoto@otherdomain.com', 'John Doe');
25
- $mail->SetFrom('name@yourdomain.com', 'First Last');
26
- $mail->AddReplyTo('name@yourdomain.com', 'First Last');
27
- $mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
28
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
29
- $mail->MsgHTML(file_get_contents('contents.html'));
30
- $mail->AddAttachment('images/phpmailer.gif'); // attachment
31
- $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
32
- $mail->Send();
33
- echo "Message Sent OK</p>\n";
34
- } catch (phpmailerException $e) {
35
- echo $e->errorMessage(); //Pretty error messages from PHPMailer
36
- } catch (Exception $e) {
37
- echo $e->getMessage(); //Boring error messages from anything else!
38
- }
39
- ?>
40
-
41
- </body>
42
- </html>
@@ -1,59 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - SMTP (Gmail) basic test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
-
9
- //error_reporting(E_ALL);
10
- error_reporting(E_STRICT);
11
-
12
- date_default_timezone_set('America/Toronto');
13
-
14
- require_once('../class.phpmailer.php');
15
- //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
16
-
17
- $mail = new PHPMailer();
18
-
19
- $body = file_get_contents('contents.html');
20
- $body = preg_replace('/[\]/','',$body);
21
-
22
- $mail->IsSMTP(); // telling the class to use SMTP
23
- $mail->Host = "mail.yourdomain.com"; // SMTP server
24
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
25
- // 1 = errors and messages
26
- // 2 = messages only
27
- $mail->SMTPAuth = true; // enable SMTP authentication
28
- $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
29
- $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
30
- $mail->Port = 465; // set the SMTP port for the GMAIL server
31
- $mail->Username = "yourusername@gmail.com"; // GMAIL username
32
- $mail->Password = "yourpassword"; // GMAIL password
33
-
34
- $mail->SetFrom('name@yourdomain.com', 'First Last');
35
-
36
- $mail->AddReplyTo("name@yourdomain.com","First Last");
37
-
38
- $mail->Subject = "PHPMailer Test Subject via smtp (Gmail), basic";
39
-
40
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
41
-
42
- $mail->MsgHTML($body);
43
-
44
- $address = "whoto@otherdomain.com";
45
- $mail->AddAddress($address, "John Doe");
46
-
47
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
48
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
49
-
50
- if(!$mail->Send()) {
51
- echo "Mailer Error: " . $mail->ErrorInfo;
52
- } else {
53
- echo "Message sent!";
54
- }
55
-
56
- ?>
57
-
58
- </body>
59
- </html>