Even geprobeerd met PHPMailer, maar dat werkt ook niet.
Bij gebruik van require_once ('class.phpmailer.php') krijg ik als uitvoer de list van de class.
Met de normale mail functie krijg ik alleen dat hij verzonden is, geen foutmeldingen.
Hieronder de script:
Even geprobeerd met PHPMailer, maar dat werkt ook niet.
Bij gebruik van require_once ('class.phpmailer.php') krijg ik als uitvoer de list van de class.
Alle scriptjes die ik gebruik lijken te werken, maar de mail komt niet aan.
Bovenstaand scriptje geeft dus na uitvoeren: Mail has been send (met datum/tijd.
Maar aankomen ....... ho maar
[size=xsmall]Toevoeging op 28/04/2014 09:05:36:[/size]
via PHPmailer krijg ik dus als het ware gewoon de listing van de class als uitvoer
[size=xsmall]Toevoeging op 28/04/2014 09:07:30:[/size]
code:
<?php
require_once ('class.phpmailer.php');
$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp.versatel.nl'; // Specify main and backup server
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '[email protected]'; // SMTP username
$mail->Password = *********'; // SMTP password
$mail->SMTPSecure = 'ssl'; // Enable encryption, 'ssl' also accepted
$mail->WordWrap = 50; // Set word wrap to 50 characters
$mail->addAttachment('/var/tmp/file.tar.gz'); // Add attachments
$mail->addAttachment('/tmp/image.jpg', 'new.jpg'); // Optional name
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
if(!$mail->send()) {
echo 'Message could not be sent.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
exit;
}
nee uitvoer is de class!!
bovenstaand scriptje zie ik niet terug
[size=xsmall]Toevoeging op 28/04/2014 09:12:40:[/size]
<?php
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5
* @package PHPMailer
* @link https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
* @author Brent R. Matzelle (original founder)
* @copyright 2012 - 2014 Marcus Bointon
* @copyright 2010 - 2012 Jim Jagielski
* @copyright 2004 - 2009 Andy Prevost
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
* @note This program is distributed in the hope that it will be useful - WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* PHPMailer - PHP email creation and transport class.
* @package PHPMailer
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
* @author Brent R. Matzelle (original founder)
*/
class PHPMailer
{
[size=xsmall]Toevoeging op 28/04/2014 09:12:58:[/size]
enz
[size=xsmall]Toevoeging op 28/04/2014 09:13:44:[/size]