dependabot-linguist 0.212.0 → 0.212.1

Sign up to get free protection for your applications and to get access to all the features.
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,32 +0,0 @@
1
- {
2
- "name": "phpmailer/phpmailer",
3
- "description": "PHPMailer is a full-featured email creation and transfer class for PHP",
4
- "authors": [
5
- {
6
- "name": "Jim Jagielski",
7
- "email": "jimjag@gmail.com"
8
- },
9
- {
10
- "name": "Marcus Bointon",
11
- "email": "phpmailer@synchromedia.co.uk"
12
- },
13
- {
14
- "name": "Andy Prevost",
15
- "email": "codeworxtech@users.sourceforge.net"
16
- },
17
- {
18
- "name": "Brent R. Matzelle"
19
- }
20
- ],
21
- "require": {
22
- "php": ">=5.0.0"
23
- },
24
- "require-dev": {
25
- "phpdocumentor/phpdocumentor": "*",
26
- "phpunit/phpunit": "*"
27
- },
28
- "autoload": {
29
- "classmap": ["class.phpmailer.php", "class.pop3.php", "class.smtp.php"]
30
- },
31
- "license": "LGPL-2.1"
32
- }
@@ -1,17 +0,0 @@
1
- NEW CALLBACK FUNCTION:
2
- ======================
3
-
4
- We have had requests for a method to process the results of sending emails
5
- through PHPMailer. In this new release, we have implemented a callback
6
- function that passes the results of each email sent (to, cc, and/or bcc).
7
- We have provided an example that echos the results back to the screen. The
8
- callback function can be used for any purpose. With minor modifications, the
9
- callback function can be used to create CSV logs, post results to databases,
10
- etc.
11
-
12
- Please review the test.php script for the example.
13
-
14
- It's pretty straight forward.
15
-
16
- Enjoy!
17
- Andy
@@ -1,55 +0,0 @@
1
- CREATE DKIM KEYS and DNS Resource Record:
2
- =========================================
3
-
4
- To create DomainKeys Identified Mail keys, visit:
5
- http://dkim.worxware.com/
6
- ... read the information, fill in the form, and download the ZIP file
7
- containing the public key, private key, DNS Resource Record and instructions
8
- to add to your DNS Zone Record, and the PHPMailer code to enable DKIM
9
- digital signing.
10
-
11
- /*** PROTECT YOUR PRIVATE & PUBLIC KEYS ***/
12
-
13
- You need to protect your DKIM private and public keys from being viewed or
14
- accessed. Add protection to your .htaccess file as in this example:
15
-
16
- # secure htkeyprivate file
17
- <Files .htkeyprivate>
18
- order allow,deny
19
- deny from all
20
- </Files>
21
-
22
- # secure htkeypublic file
23
- <Files .htkeypublic>
24
- order allow,deny
25
- deny from all
26
- </Files>
27
-
28
- (the actual .htaccess additions are in the ZIP file sent back to you from
29
- http://dkim.worxware.com/
30
-
31
- A few notes on using DomainKey Identified Mail (DKIM):
32
-
33
- You do not need to use PHPMailer to DKIM sign emails IF:
34
- - you enable DomainKey support and add the DNS resource record
35
- - you use your outbound mail server
36
-
37
- If you are a third-party emailer that works on behalf of domain owners to
38
- send their emails from your own server:
39
- - you absolutely have to DKIM sign outbound emails
40
- - the domain owner has to add the DNS resource record to match the
41
- private key, public key, selector, identity, and domain that you create
42
- - use caution with the "selector" ... at least one "selector" will already
43
- exist in the DNS Zone Record of the domain at the domain owner's server
44
- you need to ensure that the "selector" you use is unique
45
- Note: since the IP address will not match the domain owner's DNS Zone record
46
- you can be certain that email providers that validate based on DomainKey will
47
- check the domain owner's DNS Zone record for your DNS resource record. Before
48
- sending out emails on behalf of domain owners, ensure they have entered the
49
- DNS resource record you provided them.
50
-
51
- Enjoy!
52
- Andy
53
-
54
- PS. if you need additional information about DKIM, please see:
55
- http://www.dkim.org/info/dkim-faq.html
@@ -1,23 +0,0 @@
1
- If you are having problems connecting or sending emails through your SMTP server, please note:
2
-
3
- 1. The new rewrite of class.smtp.php provides more information about the processing/errors taking place
4
- 2. Use the debug functionality of class.smtp.php. To do that, in your own script add the debug level you wish to use. An example of that is:
5
-
6
- $mail->SMTPDebug = 1;
7
- $mail->IsSMTP(); // telling the class to use SMTP
8
- $mail->SMTPAuth = true; // enable SMTP authentication
9
- $mail->Port = 26; // set the SMTP port
10
- $mail->Host = "mail.yourhost.com"; // SMTP server
11
- $mail->Username = "name@yourhost.com"; // SMTP account username
12
- $mail->Password = "your password"; // SMTP account password
13
-
14
- Notes on this:
15
- $mail->SMTPDebug = 0; ... will disable debugging (you can also leave this out completely, 0 is the default
16
- $mail->SMTPDebug = 1; ... will echo errors and messages
17
- $mail->SMTPDebug = 2; ... will echo messages only
18
- ... and finally, the options are 0, 1, and 2 ... any number greater than 2 will be interpreted as 2
19
-
20
- And finally, don't forget to disable debugging before going into production.
21
-
22
- Enjoy!
23
- Andy
@@ -1,148 +0,0 @@
1
- <html>
2
- <head>
3
- <title>Examples using phpmailer</title>
4
- </head>
5
-
6
- <body bgcolor="#FFFFFF">
7
-
8
- <h2>Examples using phpmailer</h2>
9
-
10
- <h3>1. Advanced Example</h3>
11
- <p>
12
-
13
- This demonstrates sending out multiple email messages with binary attachments
14
- from a MySQL database with multipart/alternative support.<p>
15
- <table cellpadding="4" border="1" width="80%">
16
- <tr>
17
- <td bgcolor="#CCCCCC">
18
- <pre>
19
- require("class.phpmailer.php");
20
-
21
- $mail = new phpmailer();
22
-
23
- $mail->From = "list@example.com";
24
- $mail->FromName = "List manager";
25
- $mail->Host = "smtp1.example.com;smtp2.example.com";
26
- $mail->Mailer = "smtp";
27
-
28
- @MYSQL_CONNECT("localhost","root","password");
29
- @mysql_select_db("my_company");
30
- $query� =�"SELECT full_name, email,�photo�FROM employee�WHERE�id=$id";
31
- $result�=�@MYSQL_QUERY($query);
32
-
33
- while ($row = mysql_fetch_array ($result))
34
- {
35
- // HTML body
36
- $body = "Hello &lt;font size=\"4\"&gt;" . $row["full_name"] . "&lt;/font&gt;, &lt;p&gt;";
37
- $body .= "&lt;i&gt;Your&lt;/i&gt; personal photograph to this message.&lt;p&gt;";
38
- $body .= "Sincerely, &lt;br&gt;";
39
- $body .= "phpmailer List manager";
40
-
41
- // Plain text body (for mail clients that cannot read HTML)
42
- $text_body = "Hello " . $row["full_name"] . ", \n\n";
43
- $text_body .= "Your personal photograph to this message.\n\n";
44
- $text_body .= "Sincerely, \n";
45
- $text_body .= "phpmailer List manager";
46
-
47
- $mail->Body = $body;
48
- $mail->AltBody = $text_body;
49
- $mail->AddAddress($row["email"], $row["full_name"]);
50
- $mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
51
-
52
- if(!$mail->Send())
53
- echo "There has been a mail error sending to " . $row["email"] . "&lt;br&gt;";
54
-
55
- // Clear all addresses and attachments for next loop
56
- $mail->ClearAddresses();
57
- $mail->ClearAttachments();
58
- }
59
- </pre>
60
- </td>
61
- </tr>
62
- </table>
63
- <p>
64
-
65
- <h3>2. Extending phpmailer</h3>
66
- <p>
67
-
68
- Extending classes with inheritance is one of the most
69
- powerful features of object-oriented
70
- programming. It allows you to make changes to the
71
- original class for your
72
- own personal use without hacking the original
73
- classes. Plus, it is very
74
- easy to do. I've provided an example:
75
-
76
- <p>
77
- Here's a class that extends the phpmailer class and sets the defaults
78
- for the particular site:<br>
79
- PHP include file: <b>mail.inc.php</b>
80
- <p>
81
-
82
- <table cellpadding="4" border="1" width="80%">
83
- <tr>
84
- <td bgcolor="#CCCCCC">
85
- <pre>
86
- require("class.phpmailer.php");
87
-
88
- class my_phpmailer extends phpmailer {
89
- // Set default variables for all new objects
90
- var $From = "from@example.com";
91
- var $FromName = "Mailer";
92
- var $Host = "smtp1.example.com;smtp2.example.com";
93
- var $Mailer = "smtp"; // Alternative to IsSMTP()
94
- var $WordWrap = 75;
95
-
96
- // Replace the default error_handler
97
- function error_handler($msg) {
98
- print("My Site Error");
99
- print("Description:");
100
- printf("%s", $msg);
101
- exit;
102
- }
103
-
104
- // Create an additional function
105
- function do_something($something) {
106
- // Place your new code here
107
- }
108
- }
109
- </td>
110
- </tr>
111
- </table>
112
- <br>
113
-
114
- Now here's a normal PHP page in the site, which will have all the defaults set
115
- above:<br>
116
- Normal PHP file: <b>mail_test.php</b>
117
- <p>
118
-
119
- <table cellpadding="4" border="1" width="80%">
120
- <tr>
121
- <td bgcolor="#CCCCCC">
122
- <pre>
123
- require("mail.inc.php");
124
-
125
- // Instantiate your new class
126
- $mail = new my_phpmailer;
127
-
128
- // Now you only need to add the necessary stuff
129
- $mail->AddAddress("josh@example.com", "Josh Adams");
130
- $mail->Subject = "Here is the subject";
131
- $mail->Body = "This is the message body";
132
- $mail->AddAttachment("c:/temp/11-10-00.zip", "new_name.zip"); // optional name
133
-
134
- if(!$mail->Send())
135
- {
136
- echo "There was an error sending the message";
137
- exit;
138
- }
139
-
140
- echo "Message was sent successfully";
141
- </pre>
142
- </td>
143
- </tr>
144
- </table>
145
- </p>
146
-
147
- </body>
148
- </html>
@@ -1,67 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer FAQ</title>
4
- <style>
5
- body, p {
6
- font-family: Arial, Helvetica, sans-serif;
7
- font-size: 12px;
8
- }
9
- div.width {
10
- width: 500px;
11
- text-align: left;
12
- }
13
- </style>
14
- </head>
15
- <body bgcolor="#FFFFFF">
16
- <center>
17
- <div class="width">
18
- <h2>PHPMailer FAQ</h2>
19
- <ul>
20
-
21
- <li><b style="background-color: #FFFF00">Q:</b> <b>I&#039;m using the SMTP mailer and I keep on getting a timeout message
22
- well before the X seconds I set it for. What gives?</b><br />
23
- <b style="background-color: #FFFF00">A:</b> PHP versions 4.0.4pl1 and earlier have a bug in which sockets timeout
24
- early. You can fix this by re-compiling PHP 4.0.4pl1 with this fix:
25
- <a href="timeoutfix.diff">timeoutfix.diff</a>. Otherwise you can wait for the new PHP release.<br /><br /></li>
26
-
27
- <li><b style="background-color: #FFFF00">Q:</b> <b>I am concerned that using include files will take up too much
28
- processing time on my computer. How can I make it run faster?</b><br />
29
- <b style="background-color: #FFFF00">A:</b> PHP by itself is very fast. Much faster than ASP or JSP running on
30
- the same type of server. This is because it has very little overhead compared
31
- to its competitors and it pre-compiles all of
32
- its code before it runs each script (in PHP4). However, all of
33
- this compiling and re-compiling can take up a lot of valuable
34
- computer resources. However, there are programs out there that compile
35
- PHP code and store it in memory (or on mmaped files) to reduce the
36
- processing immensely. Two of these: <a href="http://apc.communityconnect.com">APC
37
- (Alternative PHP Cache)</a> and <a href="http://bwcache.bware.it/index.htm">Afterburner</a>
38
- (<a href="http://www.mm4.de/php4win/mod_php4_win32/">Win32 download</a>)
39
- are excellent free tools that do just this. If you have the money
40
- you might also try <a href="http://www.zend.com">Zend Cache</a>, it is
41
- even faster than the open source varieties. All of these tools make your
42
- scripts run faster while also reducing the load on your server. I have tried
43
- them myself and they are quite stable too.<br /><br /></li>
44
-
45
- <li><b style="background-color: #FFFF00">Q:</b> <b>What mailer gives me the best performance?</b><br />
46
- <b style="background-color: #FFFF00">A:</b> On a single machine the <b>sendmail (or Qmail)</b> is fastest overall.
47
- Next fastest is mail() to give you the best performance. Both do not have the overhead of SMTP.
48
- If you have you have your mail server on a another machine then
49
- SMTP is your only option, but you do get the benefit of redundant mail servers.<br />
50
- If you are running a mailing list with thousands of names, the fastest mailers in order are: SMTP, sendmail (or Qmail), mail().<br /><br /></li>
51
-
52
- <li><b style="background-color: #FFFF00">Q:</b> <b>When I try to attach a file with on my server I get a
53
- "Could not find {file} on filesystem error". Why is this?</b><br />
54
- <b style="background-color: #FFFF00">A:</b> If you are using a Unix machine this is probably because the user
55
- running your web server does not have read access to the directory in question. If you are using Windows,
56
- then the problem probably is that you have used single backslashes to denote directories (\).
57
- A single backslash has a special meaning to PHP so these are not
58
- valid. Instead use double backslashes ("\\") or a single forward
59
- slash ("/").<br /><br /></li>
60
-
61
- </ul>
62
-
63
- </div>
64
- </center>
65
-
66
- </body>
67
- </html>
@@ -1,4 +0,0 @@
1
- #!/bin/sh
2
- # Regenerate PHPMailer documentation
3
- rm -rf phpdocs/*
4
- phpdoc --directory .. --target ./phpdoc --ignore test/,examples/,extras/,test_script/ --sourcecode --force --title PHPMailer
@@ -1,39 +0,0 @@
1
- This is built for PHP Mailer 1.72 and was not tested with any previous version. It was developed under PHP 4.3.11 (E_ALL). It works under PHP 5 and 5.1 with E_ALL, but not in Strict mode due to var deprecation (but then neither does PHP Mailer either!). It follows the RFC 1939 standard explicitly and is fully commented.
2
-
3
- With that noted, here is how to implement it:
4
- Install the class file
5
-
6
- I didn't want to modify the PHP Mailer classes at all, so you will have to include/require this class along with the base one. It can sit quite happily in the phpmailer-1.72 directory:
7
- [geshi lang=php] require 'phpmailer-1.72/class.phpmailer.php'; require 'phpmailer-1.72/class.pop3.php'; [/geshi]
8
- When you need it, create your POP3 object
9
-
10
- Right before I invoke PHP Mailer I activate the POP3 authorisation. POP3 before SMTP is a process whereby you login to your web hosts POP3 mail server BEFORE sending out any emails via SMTP. The POP3 logon 'verifies' your ability to send email by SMTP, which typically otherwise blocks you. On my web host (Pair Networks) a single POP3 logon is enough to 'verify' you for 90 minutes. Here is some sample PHP code that activates the POP3 logon and then sends an email via PHP Mailer:
11
- [geshi lang=php] Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1); $mail = new PHPMailer(); $mail->SMTPDebug = 2; $mail->IsSMTP(); $mail->IsHTML(false); $mail->Host = 'relay.example.com'; $mail->From = 'mailer@example.com'; $mail->FromName = 'Example Mailer'; $mail->Subject = 'My subject'; $mail->Body = 'Hello world'; $mail->AddAddress('rich@corephp.co.uk', 'Richard Davey'); if (!$mail->Send()) { echo $mail->ErrorInfo; } ?> [/geshi]
12
-
13
- The PHP Mailer parts of this code should be obvious to anyone who has used PHP Mailer before. One thing to note - you almost certainly will not need to use SMTP Authentication *and* POP3 before SMTP together. The Authorisation method is a proxy method to all of the others within that class. There are Connect, Logon and Disconnect methods available, but I wrapped them in the single Authorisation one to make things easier.
14
- The Parameters
15
-
16
- The Authorise parameters are as follows:
17
- [geshi lang=php]$pop->Authorise('pop3.example.com', 110, 30, 'mailer', 'password', 1);[/geshi]
18
-
19
- 1. pop3.example.com - The POP3 Mail Server Name (hostname or IP address)
20
- 2. 110 - The POP3 Port on which to connect (default is usually 110, but check with your host)
21
- 3. 30 - A connection time-out value (in seconds)
22
- 4. mailer - The POP3 Username required to logon
23
- 5. password - The POP3 Password required to logon
24
- 6. 1 - The class debug level (0 = off, 1+ = debug output is echoed to the browser)
25
-
26
- Final Comments + the Download
27
-
28
- 1) This class does not support APOP connections. This is only because I did not have an APOP server to test with, but if you'd like to see that added just contact me.
29
-
30
- 2) Opening and closing lots of POP3 connections can be quite a resource/network drain. If you need to send a whole batch of emails then just perform the authentication once at the start, and then loop through your mail sending script. Providing this process doesn't take longer than the verification period lasts on your POP3 server, you should be fine. With my host that period is 90 minutes, i.e. plenty of time.
31
-
32
- 3) If you have heavy requirements for this script (i.e. send a LOT of email on a frequent basis) then I would advise seeking out an alternative sending method (direct SMTP ideally). If this isn't possible then you could modify this class so the 'last authorised' date is recorded somewhere (MySQL, Flat file, etc) meaning you only open a new connection if the old one has expired, saving you precious overhead.
33
-
34
- 4) There are lots of other POP3 classes for PHP available. However most of them implement the full POP3 command set, where-as this one is purely for authentication, and much lighter as a result. However using any of the other POP3 classes to just logon to your server would have the same net result. At the end of the day, use whatever method you feel most comfortable with.
35
- Download
36
-
37
- Here is the full class file plus my test script: POP_before_SMTP_PHPMailer.zip (4 KB) - Please note that it does not include PHPMailer itself.
38
-
39
- My thanks to Chris Ryan for the inspiration (even if indirectly, via his SMTP class)
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- // example on using PHPMailer with GMAIL
4
-
5
- include("class.phpmailer.php");
6
- include("class.smtp.php"); // note, this is optional - gets called from main class if not already loaded
7
-
8
- $mail = new PHPMailer();
9
-
10
- $body = file_get_contents('contents.html');
11
-
12
- $mail->IsSMTP();
13
- $mail->SMTPAuth = true; // enable SMTP authentication
14
- $mail->SMTPSecure = "ssl"; // sets the prefix to the servier
15
- $mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
16
- $mail->Port = 465; // set the SMTP port
17
-
18
- $mail->Username = "yourname@gmail.com"; // GMAIL username
19
- $mail->Password = "password"; // GMAIL password
20
-
21
- $mail->From = "replyto@yourdomain.com";
22
- $mail->FromName = "Webmaster";
23
- $mail->Subject = "This is the subject";
24
- $mail->AltBody = "This is the body when user views in plain text format"; //Text Body
25
- $mail->WordWrap = 50; // set word wrap
26
-
27
- $mail->MsgHTML($body);
28
-
29
- $mail->AddReplyTo("replyto@yourdomain.com","Webmaster");
30
-
31
- $mail->AddAttachment("/path/to/file.zip"); // attachment
32
- $mail->AddAttachment("/path/to/image.jpg", "new.jpg"); // attachment
33
-
34
- $mail->AddAddress("username@domain.com","First Last");
35
-
36
- $mail->IsHTML(true); // send as HTML
37
-
38
- if(!$mail->Send()) {
39
- echo "Mailer Error: " . $mail->ErrorInfo;
40
- } else {
41
- echo "Message has been sent";
42
- }
43
-
44
- ?>
@@ -1,20 +0,0 @@
1
- <body style="margin: 10px;">
2
- <div style="width: 640px; font-family: Arial, Helvetica, sans-serif; font-size: 11px;">
3
- <div align="center"><img src="images/phpmailer.gif" style="height: 90px; width: 340px"></div><br>
4
- <br>
5
- &nbsp;This is a test of PHPMailer.<br>
6
- <br>
7
- This particular example uses <strong>HTML</strong>, with a &lt;div&gt; tag and inline<br>
8
- styles.<br>
9
- <br>
10
- Also note the use of the PHPMailer logo above with no specific code to handle
11
- including it.<br />
12
- Included are two attachments:<br />
13
- phpmailer.gif is an attachment and used inline as a graphic (above)<br />
14
- phpmailer_mini.gif is an attachment<br />
15
- <br />
16
- PHPMailer:<br />
17
- Author: Andy Prevost (codeworxtech@users.sourceforge.net)<br />
18
- Author: Marcus Bointon (coolbru@users.sourceforge.net)<br />
19
- </div>
20
- </body>
@@ -1,50 +0,0 @@
1
- This release of PHPMailer (v5.0.0) sets a new milestone in the development
2
- cycle of PHPMailer. First, class.phpmailer.php has a small footprint (65.7 Kb),
3
- while class.smtp.php is even smaller than before (at only 25.0 Kb).<br />
4
- <br />
5
- We have maintained all functionality and added Exception handling unique to
6
- PHP 5/6.<br />
7
- <br />
8
- There is only one function that has been removed: that is getFile(). The reason
9
- for this is that getFile() became a wrapper for the PHP function 'file_get_contents()'
10
- and nothing more. Rather than burden the class with a function already available
11
- in PHP, we decided to remove it.<br />
12
- <br />
13
- Our new Exception handling provides your own scripts far more power than ever.<br />
14
- <br />
15
- We have also enhanced the "packaging" of PHPMailer with an entirely new set of
16
- examples. Included are both basic and advanced examples showing how you can take
17
- advantage of PHP Exception handling to improve your own scripts.<br />
18
- <br />
19
- A few things to note about PHPMailer:
20
- <ul>
21
- <li>the use of $mail-&gt;AltBody is completely optional. If not used, PHPMailer
22
- will use the HTML text with htmlentities().<br />
23
- We also highly recommend using HTML2Text authored by Jon Abernathy. The class description
24
- and download can be viewed at: http://www.chuggnutt.com/html2text but is also bundled with
25
- PHPMailer in ./extras/ .
26
- </li>
27
- <li>there is no specific code to define image or attachment types ... that is handled
28
- automatically by PHPMailer when it parses the images</li>
29
- </ul>
30
- A note to users that want to use SMTP with PHPMailer. The most common problems are:
31
- <ul>
32
- <li>wrong port ... most ISP (Internet Service Providers) will not allow relaying through
33
- their servers. If that's the case with your ISP, try using port 26.
34
- </li>
35
- <li>wrong authentication information (username and/or password) ... don't forget that
36
- many servers require the account name to be in the format of the full email address.
37
- </li>
38
- <li>... if these tips do not get your SMTP settings working, we have a debug mode
39
- for helping you determine the problem. Insert this after $mail->IsSMTP();<br />
40
- $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)<br />
41
- note that a setting of 2 will display all errors and messages generated by the SMTP
42
- server<br />
43
- </li>
44
- </ul>
45
- Our examples all use an HTML file in the /examples folder. To see what the email SHOULD
46
- look like in your HTML compatible email viewer: <a href="contents.html">click here</a><br>
47
- <br />
48
- From the PHPMailer team:<br />
49
- Author: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net (and Project Administrator)<br />
50
- Author: Marcus Bointon (coolbru) coolbru@users.sourceforge.net<br />
@@ -1,58 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - MySQL Database - 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 = "smtp1.site.com;smtp2.site.com";
24
- $mail->SMTPAuth = true; // enable SMTP authentication
25
- $mail->SMTPKeepAlive = true; // SMTP connection will not close after each email sent
26
- $mail->Host = "mail.yourdomain.com"; // sets the SMTP server
27
- $mail->Port = 26; // set the SMTP port for the GMAIL server
28
- $mail->Username = "yourname@yourdomain"; // SMTP account username
29
- $mail->Password = "yourpassword"; // SMTP account password
30
- $mail->SetFrom('list@mydomain.com', 'List manager');
31
- $mail->AddReplyTo('list@mydomain.com', 'List manager');
32
-
33
- $mail->Subject = "PHPMailer Test Subject via smtp, basic with authentication";
34
-
35
- @MYSQL_CONNECT("localhost","root","password");
36
- @mysql_select_db("my_company");
37
- $query = "SELECT full_name, email, photo FROM employee WHERE id=$id";
38
- $result = @MYSQL_QUERY($query);
39
-
40
- while ($row = mysql_fetch_array ($result)) {
41
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
42
- $mail->MsgHTML($body);
43
- $mail->AddAddress($row["email"], $row["full_name"]);
44
- $mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
45
-
46
- if(!$mail->Send()) {
47
- echo "Mailer Error (" . str_replace("@", "&#64;", $row["email"]) . ') ' . $mail->ErrorInfo . '<br />';
48
- } else {
49
- echo "Message sent to :" . $row["full_name"] . ' (' . str_replace("@", "&#64;", $row["email"]) . ')<br />';
50
- }
51
- // Clear all addresses and attachments for next loop
52
- $mail->ClearAddresses();
53
- $mail->ClearAttachments();
54
- }
55
- ?>
56
-
57
- </body>
58
- </html>
@@ -1,30 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - Mail() advanced test</title>
4
- </head>
5
- <body>
6
-
7
- <?php
8
- require_once '../class.phpmailer.php';
9
-
10
- $mail = new PHPMailer(true); //defaults to using php "mail()"; the true param means it will throw exceptions on errors, which we need to catch
11
-
12
- try {
13
- $mail->AddAddress('whoto@otherdomain.com', 'John Doe');
14
- $mail->SetFrom('name@yourdomain.com', 'First Last');
15
- $mail->AddReplyTo('name@yourdomain.com', 'First Last');
16
- $mail->Subject = 'PHPMailer Test Subject via mail(), advanced';
17
- $mail->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically
18
- $mail->MsgHTML(file_get_contents('contents.html'));
19
- $mail->AddAttachment('images/phpmailer.gif'); // attachment
20
- $mail->AddAttachment('images/phpmailer_mini.gif'); // attachment
21
- $mail->Send();
22
- echo "Message Sent OK</p>\n";
23
- } catch (phpmailerException $e) {
24
- echo $e->errorMessage(); //Pretty error messages from PHPMailer
25
- } catch (Exception $e) {
26
- echo $e->getMessage(); //Boring error messages from anything else!
27
- }
28
- ?>
29
- </body>
30
- </html>
@@ -1,41 +0,0 @@
1
- <html>
2
- <head>
3
- <title>PHPMailer - Mail() 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
- $body = file_get_contents('contents.html');
14
- $body = preg_replace('/[\]/','',$body);
15
-
16
- $mail->SetFrom('name@yourdomain.com', 'First Last');
17
-
18
- $mail->AddReplyTo("name@yourdomain.com","First Last");
19
-
20
- $address = "whoto@otherdomain.com";
21
- $mail->AddAddress($address, "John Doe");
22
-
23
- $mail->Subject = "PHPMailer Test Subject via mail(), basic";
24
-
25
- $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
26
-
27
- $mail->MsgHTML($body);
28
-
29
- $mail->AddAttachment("images/phpmailer.gif"); // attachment
30
- $mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
31
-
32
- if(!$mail->Send()) {
33
- echo "Mailer Error: " . $mail->ErrorInfo;
34
- } else {
35
- echo "Message sent!";
36
- }
37
-
38
- ?>
39
-
40
- </body>
41
- </html>