here is what I’m using:
[php]
$subject = $sys[‘name’]." Validation Email Link";
$message = $subject."\r\n\r\n";
$message.= “Your Validation Email Link: \r\n”;
$message.= $sys[‘home’].“index.php?sess=”.$urow[‘sess’];
user_text($message,$subject,$urow[‘email’],$sys[‘email’]);
[/php]
to send to a php function called user_text
the variables are filled in according to what user email
is entered and the database fills in the $sys variables.
this is the code it is sent to:
[php]
function user_text($message,$subject,$useraddress,$address){
// Recipients
$mailTo = $useraddress;
// From
$mailFrom = $address;
// Reply address
$mailReplyTo = $address;
// Message subject and contents
$mailSubject = $subject;
$mailMessage = $message;
// Text message charset
$mailCharset = "windows-1252"; // must be accurate (e.g. "Windows - 1252" is invalid)
// Create headres for mail() function
$headers = "Content-type: text/plain; charset=$mailCharset\n";
$headers .= "From: ".$mailFrom."\n";
$headers .= "Reply-To: $mailReplyTo\n";
$headers .= "Return-Path: $mailReplyTo\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\n";
// Send mail
mail($mailTo, $mailSubject, $mailMessage, $headers);
}
[/php]
this php script works great if the $sys[‘home’] in the database
has a domain of something.com or something.net or even a
miss type of something.ne but when I decided to use my domain
of something.us email will not be sent. The .us for some reason
keeps the mail() from sending the email.
have any ideal??