Sublime directory Surf the web anonymous Pagerank Monitor


Register.php not sending email

nortont
Mon 12 March 2007, 10:25 am GMT +0100
I am trying to test the access_user Register.php class but can not get the user to register


I fill in all fields but get the error Sorry, an error occurred please try it again.
which looking through the code appears to be an error due to the email not being able to be sent.

I am hosing the site on a Diskstation DS106.
I can not see ho the email is to be sent as there is no where specifying the SMPT or POP3 addresses.

Tim Norton

olaf
Mon 12 March 2007, 11:48 am GMT +0100
Hello Tim,

do you tried to send a mail with the mail() function without using the class?

nortont
Mon 12 March 2007, 12:19 pm GMT +0100
Hello Tim,

do you tried to send a mail with the mail() function without using the class?

I just tried this with no luck. Am id missing something
<?php
include($_SERVER['DOCUMENT_ROOT']."/classes/access_user/access_user_class.php");

$test_page_protect = new Access_user;
$test_page_protect->send_mail('tnorton@adam.com.au')


?>

nortont
Mon 12 March 2007, 12:23 pm GMT +0100
Whats throwing me here is there is no settings for the POP3 or SMTP servers so what is sending  the email?

function send_mail($mail_address, $num = 29) {
$header = "From: \"".$this->webmaster_name."\" <".$this->webmaster_mail.">\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Mailer: Olaf's mail script version 1.11\r\n";
$header .= "Content-Type: text/plain; charset=\"iso-8859-1\"\r\n";
$header .= "Content-Transfer-Encoding: 7bit\r\n";
if (!$this->auto_activation) {
$subject = "New user request...";
$body = "New user registration on ".date("Y-m-d").":\r\n\r\nClick here to enter the admin page:\r\n\r\n"."http://".$_SERVER['HTTP_HOST'].$this->admin_page."?login_id=".$this->id;
} else {
$subject = $this->messages(28);
$body = $this->messages($num);
}
if (mail($mail_address, $subject, $body, $header)) {
return true;
} else {
return false;
}
}

olaf
Mon 12 March 2007, 12:49 pm GMT +0100
try this first:

mail('caffinated@example.com', 'My Subject', $message);

more infois  here: http://php.net/manual/en/function.mail.php

olaf
Mon 12 March 2007, 12:51 pm GMT +0100
Quote
Whats throwing me here is there is no settings for the POP3 or SMTP servers so what is sending  the email?

this script is not a desctop mail client, the mail is send bt PHP and doesn't need extra configurartion

nortont
Mon 9 April 2007, 02:02 pm GMT +0200
After much stuffing around, I realized that the problem was my ISP was rejecting the email SMTP request due to an unknown IP address as a suspect spammer - Returned Error 550

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional