dependabot-linguist 0.212.0 → 0.217.0
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +38 -2
- data/Gemfile.lock +100 -108
- data/Makefile +4 -2
- data/README.md +32 -4
- data/SECURITY.md +3 -2
- data/dependabot-linguist.gemspec +9 -7
- data/exe/dependabot-linguist +1 -1
- data/lib/dependabot/linguist/dependabot_file_validator.rb +43 -7
- data/lib/dependabot/linguist/dependabot_patch.rb +14 -2
- data/lib/dependabot/linguist/file_fetchers/bundler.rb +54 -0
- data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +9 -7
- data/lib/dependabot/linguist/file_fetchers/go_modules.rb +2 -2
- data/lib/dependabot/linguist/language.rb +18 -14
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +22 -21
- data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +172 -21
- data/lib/dependabot/linguist/languages_to_ecosystems/manager_ecosystem_maps.rb +17 -17
- data/lib/dependabot/linguist/linguist_patch.rb +1 -1
- data/lib/dependabot/linguist/repository.rb +7 -2
- data/lib/dependabot/linguist/version.rb +1 -1
- metadata +17 -210
- data/lib/dependabot/linguist/file_fetchers/base.rb +0 -48
- data/smoke-test/README.md +0 -58
- data/smoke-test/bundler/Gemfile +0 -9
- data/smoke-test/bundler/Gemfile.lock +0 -47
- data/smoke-test/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
- data/smoke-test/cargo/Cargo.lock +0 -90
- data/smoke-test/cargo/Cargo.toml +0 -8
- data/smoke-test/composer/composer.json +0 -5
- data/smoke-test/composer/composer.lock +0 -72
- data/smoke-test/composer/vendor/autoload.php +0 -7
- data/smoke-test/composer/vendor/composer/ClassLoader.php +0 -445
- data/smoke-test/composer/vendor/composer/LICENSE +0 -21
- data/smoke-test/composer/vendor/composer/autoload_classmap.php +0 -13
- data/smoke-test/composer/vendor/composer/autoload_namespaces.php +0 -9
- data/smoke-test/composer/vendor/composer/autoload_psr4.php +0 -9
- data/smoke-test/composer/vendor/composer/autoload_real.php +0 -55
- data/smoke-test/composer/vendor/composer/autoload_static.php +0 -23
- data/smoke-test/composer/vendor/composer/installed.json +0 -57
- data/smoke-test/composer/vendor/phpmailer/phpmailer/.gitignore +0 -3
- data/smoke-test/composer/vendor/phpmailer/phpmailer/LICENSE +0 -504
- data/smoke-test/composer/vendor/phpmailer/phpmailer/README.md +0 -112
- data/smoke-test/composer/vendor/phpmailer/phpmailer/changelog.md +0 -530
- data/smoke-test/composer/vendor/phpmailer/phpmailer/class.phpmailer.php +0 -2758
- data/smoke-test/composer/vendor/phpmailer/phpmailer/class.pop3.php +0 -417
- data/smoke-test/composer/vendor/phpmailer/phpmailer/class.smtp.php +0 -1075
- data/smoke-test/composer/vendor/phpmailer/phpmailer/composer.json +0 -32
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Callback_function_notes.txt +0 -17
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/DomainKeys_notes.txt +0 -55
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/Note_for_SMTP_debugging.txt +0 -23
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/extending.html +0 -148
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/faq.html +0 -67
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/generatedocs.sh +0 -4
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/pop3_article.txt +0 -39
- data/smoke-test/composer/vendor/phpmailer/phpmailer/docs/use_gmail.txt +0 -44
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/contents.html +0 -20
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer.gif +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/images/phpmailer_mini.gif +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/index.html +0 -50
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_db_smtp_basic.php +0 -58
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_advanced.php +0 -30
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_mail_basic.php +0 -41
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_advanced.php +0 -39
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_basic.php +0 -49
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_advanced.php +0 -33
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_sendmail_basic.php +0 -43
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced.php +0 -42
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_advanced_no_auth.php +0 -36
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic.php +0 -58
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_basic_no_auth.php +0 -53
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_advanced.php +0 -42
- data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_smtp_gmail_basic.php +0 -59
- data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/class.html2text.inc +0 -489
- data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/htmlfilter.php +0 -861
- data/smoke-test/composer/vendor/phpmailer/phpmailer/extras/ntlm_sasl_client.php +0 -185
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ar.php +0 -26
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-br.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ca.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ch.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-cz.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-de.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-dk.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-es.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-et.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fi.php +0 -26
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fo.php +0 -26
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-fr.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-hu.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-it.php +0 -26
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ja.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-nl.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-no.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-pl.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ro.php +0 -26
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-ru.php +0 -24
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-se.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-sk.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-tr.php +0 -26
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/language/phpmailer.lang-zh_cn.php +0 -25
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test/contents.html +0 -10
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test/phpmailerTest.php +0 -1084
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test/test_callback.php +0 -84
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test/testemail.php +0 -48
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/LGPLv3.txt +0 -165
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/contents.html +0 -14
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/aikido.gif +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/bkgrnd.gif +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/images/phpmailer.gif +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/index.php +0 -427
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/clipboard.swf +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushBash.js +0 -59
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCSharp.js +0 -64
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCpp.js +0 -99
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushCss.js +0 -93
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDelphi.js +0 -57
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushDiff.js +0 -43
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushGroovy.js +0 -69
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJScript.js +0 -51
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushJava.js +0 -55
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPerl.js +0 -74
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPhp.js +0 -91
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPlain.js +0 -35
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushPython.js +0 -56
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushRuby.js +0 -57
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushScala.js +0 -53
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushSql.js +0 -68
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushVb.js +0 -58
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shBrushXml.js +0 -71
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shCore.js +0 -30
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/scripts/shLegacy.js +0 -30
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shCore.js +0 -1949
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/src/shLegacy.js +0 -172
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/help.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/magnifier.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_code.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/page_white_copy.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/printer.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shCore.css +0 -321
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDefault.css +0 -191
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeDjango.css +0 -193
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeEmacs.css +0 -192
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeFadeToGrey.css +0 -193
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeMidnight.css +0 -192
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/shThemeRDark.css +0 -192
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/styles/wrapping.png +0 -0
- data/smoke-test/composer/vendor/phpmailer/phpmailer/test_script/test.html +0 -46
- data/smoke-test/dependabot-file/no-config/.github/TARGET.yaml +0 -14
- data/smoke-test/dependabot-file/no-config/bundler/Gemfile +0 -9
- data/smoke-test/dependabot-file/no-config/bundler/Gemfile.lock +0 -47
- data/smoke-test/dependabot-file/no-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
- data/smoke-test/dependabot-file/no-config/cargo/Cargo.lock +0 -90
- data/smoke-test/dependabot-file/no-config/cargo/Cargo.toml +0 -8
- data/smoke-test/dependabot-file/no-config/composer/composer.json +0 -5
- data/smoke-test/dependabot-file/no-config/composer/composer.lock +0 -72
- data/smoke-test/dependabot-file/over-config/.github/TARGET.yaml +0 -17
- data/smoke-test/dependabot-file/over-config/.github/dependabot.yaml +0 -12
- data/smoke-test/dependabot-file/over-config/bundler/Gemfile +0 -9
- data/smoke-test/dependabot-file/over-config/bundler/Gemfile.lock +0 -47
- data/smoke-test/dependabot-file/over-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
- data/smoke-test/dependabot-file/over-config/cargo/Cargo.lock +0 -90
- data/smoke-test/dependabot-file/over-config/cargo/Cargo.toml +0 -8
- data/smoke-test/dependabot-file/over-config/composer/composer.json +0 -5
- data/smoke-test/dependabot-file/over-config/composer/composer.lock +0 -72
- data/smoke-test/dependabot-file/overer-config/.github/TARGET.yaml +0 -19
- data/smoke-test/dependabot-file/overer-config/.github/dependabot.yaml +0 -12
- data/smoke-test/dependabot-file/overer-config/bundler/Gemfile +0 -9
- data/smoke-test/dependabot-file/overer-config/bundler/Gemfile.lock +0 -47
- data/smoke-test/dependabot-file/overer-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
- data/smoke-test/dependabot-file/overer-config/cargo/Cargo.lock +0 -90
- data/smoke-test/dependabot-file/overer-config/cargo/Cargo.toml +0 -8
- data/smoke-test/dependabot-file/overer-config/composer/composer.json +0 -5
- data/smoke-test/dependabot-file/overer-config/composer/composer.lock +0 -72
- data/smoke-test/dependabot-file/partial-config/.github/TARGET.yaml +0 -17
- data/smoke-test/dependabot-file/partial-config/.github/dependabot.yaml +0 -7
- data/smoke-test/dependabot-file/partial-config/bundler/Gemfile +0 -9
- data/smoke-test/dependabot-file/partial-config/bundler/Gemfile.lock +0 -47
- data/smoke-test/dependabot-file/partial-config/bundler/dependabot-all-updates-test-staging.gemspec +0 -10
- data/smoke-test/dependabot-file/partial-config/cargo/Cargo.lock +0 -90
- data/smoke-test/dependabot-file/partial-config/cargo/Cargo.toml +0 -8
- data/smoke-test/dependabot-file/partial-config/composer/composer.json +0 -5
- data/smoke-test/dependabot-file/partial-config/composer/composer.lock +0 -72
- data/smoke-test/docker/Dockerfile +0 -19
- data/smoke-test/elm/elm-package.json +0 -15
- data/smoke-test/elm/elm.json +0 -31
- data/smoke-test/github-actions/both/.github/workflows/this.yaml +0 -11
- data/smoke-test/github-actions/both/yaml/action.yml +0 -13
- data/smoke-test/github-actions/invalid/invalid_file.yaml +0 -0
- data/smoke-test/github-actions/workflow/.github/workflows/this.yaml +0 -11
- data/smoke-test/github-actions/yaml/action.yml +0 -13
- data/smoke-test/gitsubmodule/.gitmodules +0 -4
- data/smoke-test/gomod/go.mod +0 -16
- data/smoke-test/gomod/go.sum +0 -18
- data/smoke-test/gomod/gomain.go +0 -14
- data/smoke-test/gradle/.gitignore +0 -1
- data/smoke-test/gradle/build.gradle +0 -65
- data/smoke-test/maven/pom.xml +0 -65
- data/smoke-test/mix/mix.exs +0 -24
- data/smoke-test/mix/mix.lock +0 -5
- data/smoke-test/npm/package-lock.json +0 -166
- data/smoke-test/npm/package.json +0 -22
- data/smoke-test/npm/removed/package-lock.json +0 -44
- data/smoke-test/npm/removed/package.json +0 -15
- data/smoke-test/nuget/project.csproj +0 -14
- data/smoke-test/pip/pip/requirements.txt +0 -5
- data/smoke-test/pip/pip-compile/requirements.in +0 -2
- data/smoke-test/pip/pip-compile/requirements.txt +0 -16
- data/smoke-test/pip/pipenv/Pipfile +0 -13
- data/smoke-test/pip/pipenv/Pipfile.lock +0 -86
- data/smoke-test/pip/poetry/poetry.lock +0 -33
- data/smoke-test/pip/poetry/pyproject.toml +0 -18
- data/smoke-test/pub/pubspec.lock +0 -40
- data/smoke-test/pub/pubspec.yaml +0 -10
- data/smoke-test/terraform/main.tf +0 -143
data/smoke-test/composer/vendor/phpmailer/phpmailer/examples/test_pop_before_smtp_advanced.php
DELETED
@@ -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>
|