Forum Moderators: coopster

Message Too Old, No Replies

help with mail function

works on one server, but not another?

         

d40sithui

12:45 pm on Jul 17, 2007 (gmt 0)

10+ Year Member



hey guys, jsut trying to do a simple email. the script below works on one server, but not another. does anyone know whats going on?

<?php
$to = "email@example2.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

[edited by: eelixduppy at 1:51 pm (utc) on July 17, 2007]
[edit reason] removed specifics [/edit]

Habtom

1:05 pm on Jul 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This [webmasterworld.com] and other threads [google.com] in webmasterworld might help you solve your problem.

Habtom

d40sithui

1:24 pm on Jul 17, 2007 (gmt 0)

10+ Year Member



thanks for the reps.