Jump to content

Recommended Posts

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 :
[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);
[/code]

Well i get this error everytime i try this :
[code]
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
[/code]

Any help would be extrmly appricated. thanks
Link to comment
https://forums.phpfreaks.com/topic/13258-challenging-problem/
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.