Jump to content

smtp mail error.... HELP????? :'(


PC Nerd

Recommended Posts

i want to send an email from my localhost server, but i get this error on the page

" Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in ***File Name***/B_A-New_Player_Create.php on line 59

my code for sending the email is:


[code]$to = $Email;
$subject = "New Battle Ages Acccount Confirmation";
$Message = "To ".$F_Name."<br>";
$Message = $Message."User Name :".$User_Name."<br>";
$Message = $Message."Password :".$Password."<br>";
$Message = $Message."Security Number :".$Security_Number."<br><br>";
$Message = $Message."Please type your Security Number into the field below ( with no spaces or dash's), to activate your account";
$Message = $Message."Thankyou for signing up to Battle-Ages.  Please email us a the above address for help and support.<br><br>Yours, Battle-Ages Administration Team";
$header = "From: admin@battle-ages.itsmyland.com";

$Send_Mail = mail($to, $subject, $Message, $header);[/code]


i googled it, but i got really confused..... can anyone PLEASE help me
Link to comment
Share on other sites

ok. im running on windows, i think i have a mail server locally, its mercury mailserver32 but i have no idea how to run it??? it comes with xampp i think, but i do have the option of reinstalling it seperately........ and if i run the mail through my isp would that mean that the email would be displayed as being a) from the email in the header ie( "From: email@address.com") or b) come from my email from the isp ( ie myemail@isp.net or something)???

thanks for all your help
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.