Shape 5

General Category => Template Showcase => : pianoK March 06, 2018, 06:25:21 AM



: php mailer
: pianoK March 06, 2018, 06:25:21 AM
I wish to set up a php mailer and it doesn't seem to work. Are there anything within legal lawyers that prevent this?

Using this setup in index file:

require '/bestilklaverstemning/booking/mail/PHPMailerAutoload.php';

$mail = new PHPMailer;

$mail->isSMTP();                                      // Set mailer to use SMTP
// $mail->SMTPDebug = 3;                               // Enable verbose debug output
// $mail->Debugoutput = 'html';

$mail->Host = 'aspmx.l.google.com';    // Specify main and backup SMTP servers
$mail->SMTPAuth = true;                               // Enable SMTP authentication
$mail->Username = 'user@yourwebsite';                 // SMTP username (of course correct username)
$mail->Password = 'password';                           // SMTP password (and password)
$mail->SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587;                                    // TCP port to connect to
$mail->Encoding = "base64";  //l?sning p? ??? i subject?
$mail->CharSet = 'UTF-8'; //l?sning p? ?????

$mail->setFrom('[email protected]', 'Bestil klaverstemning');
//$mail->addAddress('[email protected]', 'Joe User');     // Add a recipient
//$mail->addAddress('[email protected]');               // Name is optional
$mail->addAddress('[email protected]', 'piano K');               // Name is optional

//$mail->addReplyTo('[email protected]', 'piano K');
$kundenavn = $kundeFornavn.' '.$kundeEfternavn;
 


: Re: php mailer
: mikek March 06, 2018, 09:17:26 AM
Hello,

A template would have no way to effect any code like this. We do not provide support on creating custom code.