Add php files
This commit is contained in:
44
modules/EcmInvoiceOuts2/sendmail.php
Executable file
44
modules/EcmInvoiceOuts2/sendmail.php
Executable file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
|
||||
$mailClassS = new PHPMailer ();
|
||||
|
||||
|
||||
|
||||
$mailClassS->isSMTP (); // Set mailer to use SMTP
|
||||
$mailClassS->Host = 'smtp.gmail.com'; // Specify main and backup server
|
||||
|
||||
$mailClassS->SMTPAuth = true; // Enable SMTP authentication
|
||||
$mailClassS->Username = 'outtervision2@gmail.com'; // SMTP username
|
||||
$mailClassS->Password = 'rudemodz'; // SMTP password
|
||||
$mailClassS->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
|
||||
$mailClassS->Port = 587; // Set the SMTP port number - 587 for
|
||||
// authenticated TLS
|
||||
echo 'tu2';
|
||||
$mailClassS->addAddress ('outtervision@gmail.com','ktos'); // Add a
|
||||
echo 'tu';
|
||||
$mailClassS->Sender='outtervision@gmail.com';
|
||||
$mailClassS->From ='outtervision@gmail.com';
|
||||
$mailClassS->FromName ='Dominik Brzóska';
|
||||
echo 'tu4';
|
||||
|
||||
echo 'tu3';
|
||||
// message is to
|
||||
// be sent from
|
||||
|
||||
$mailClassS->WordWrap = 50; // Set word wrap to 50 characters
|
||||
|
||||
$mailClassS->isHTML ( true ); // Set email format to HTML
|
||||
|
||||
$mailClassS->Subject = 'Powiadomienie o zmianie statusu zamówienia';
|
||||
$mailClassS->Body = 'Witaj';
|
||||
|
||||
// Read an HTML message body from an external file, convert
|
||||
// referenced images to embedded,
|
||||
// convert HTML into a basic plain-text alternative body
|
||||
// $mailClassS->msgHTML(file_get_contents('contents.html'),
|
||||
// dirname(__FILE__));
|
||||
echo 'tu';
|
||||
if (! $mailClassS->send ()) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user