Hoi mensen,

mail('mijn@mailadres', 'Bericht van mijndomein.nl', $message, 'From: '.$email);

werkt niet bij mij.
hij geeft geen fout melding maar de mailo komt niet aan.

Iemand een idee?

groet Ronald

niet al mijn mails volgens mij.
De laatste met subject test 4 gaf rare responses.

Die gaat via server6 naar buiten, de andere via server8.
heb er 2 binnen. test en tst2
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:

<?php

error_reporting(E_ALL);
ini_set("display_errors", 1);

$message = "Dit is het bericht";

$headers = 'MIME-Version: 1.0' . "\n" .
'Content-type: text/html; charset=UTF-8' . "\n" .
'From: [email protected]' . "\n" .
'Reply-To: [email protected]' . "\n" .
'X-Mailer: PHP/' . phpversion();

if(mail('[email protected]', 'Bericht van mijndomein.nl', $message, $headers))
{
echo 'Mail has been sent';
}
else
{
echo 'Failed sending';
}
echo ' (' . date('H:i:s') . ')';
?>

Wie o wie helpt mij uit deze impasse!!!
Ronald Platje op 28/04/2014 08:52:58

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.

Leg eens uit?

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->From = '[email protected]';
$mail->FromName = 'Mailer';
$mail->addAddress('[email protected]'); // Add a recipient
$mail->addAddress('[email protected]'); // Name is optional
$mail->addReplyTo('[email protected]');
$mail->addCC('');
$mail->addBCC('');

$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;
}

echo 'Message has been sent';

?>
Gewoon de inhoud van dat PHP-script?
Wordt er in het geincludeerde bestand wel bovenaan gebruik gemaakt van <?php-tags?
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]

dit is de uitvoer

Reageren