Jump to content


Photo

Challenging Problem !


  • Please log in to reply
2 replies to this topic

#1 Monshery

Monshery
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 29 June 2006 - 10:17 PM

Thanks for helpers or anyone.
I am trying to send a mail via php. and i dont know much about it :
i uses this code :
$to = $_POST['REMAIL'];
      $subject = "Activation details - MMODATE -";
      $message = "Congratulation \r".$_POST['RUSERNAME']." \r for signing up with MMODATE your one step from beeing an active memeber of MMODATE<BR><BR>". 'Please click on this link to activate your account <BR> <a href= "http://localhost/Yanivs/MMO-Date/Activation.PHP?USDC='.$checkbig .'&USDP='.$_POST['RPASSWORD'] .'">http://localhost/Yanivs/MMO-Date/Activation.PHP?<a>';
      $message = wordwrap($message, 70);
      $headers  = 'MIME-Version: 1.0' . "\r\n";
      $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
      $headers .= 'From: MMODATE <monshery@MMODATE.com>' . "\r\n";/* well i just used some random names here i dont know what sould i fill in here*/
      mail($to, $subject, $message, $headers);

Well i get this error everytime i try this :
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 3306, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\Yanivs\MMO-Date\Register.PHP on line 451

Any help would be extrmly appricated. thanks

#2 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 29 June 2006 - 10:43 PM

What this is saying is that you a) do not have an SMTP enabled machine or b) your settings for SMTP in the php.ini file are incorrect



#3 Monshery

Monshery
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 30 June 2006 - 09:02 AM

well you know how do i correct it ?
basicaly for a) i dont know if i have a a working machin and for 4 i set. SMTP = localhost and smtp_port =3306 which is my MYSQL server details i might be doing something wrong . you have any idea how i solve it ?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users