Created
June 26, 2015 12:27
-
-
Save petk/ffca0f865303996b39f8 to your computer and use it in GitHub Desktop.
Using PHPMailer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use PHPWorldWide\Mailer; | |
$test = new Mailer(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"phpmailer/phpmailer": "^5.2" | |
}, | |
"autoload": { | |
"psr-4": {"PHPWorldWide\\": "src/"} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// this file is inside src folder | |
namespace PHPWorldWide; | |
use PHPMailer; | |
class Mailer | |
{ | |
public function __construct() | |
{ | |
$mailer = new PHPMailer(); | |
var_dump($mailer->Version); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment