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;