Jump to content

Sara_Sa

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Sara_Sa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. frost110 My basic problem was in mail() function I can't send email messages from local server When I test that script I see the following error message: Warning: mail(): Failed to connect to mailserver at "localhost" port 25 ..etc ??? But I learned important lesson today >> Never refer to POST or GET variable just by their name, always define them.. << Thank you so much frost110
  2. This is the code: <html> <head><title>Send Email</title></head> <body bgcolor="#EEEEEE"> <center> <form action="mail.php" method="post"> <table cellpadding=2 cellspacing=0 border=0> <tr><td><b>Sender</b></td><td><input type="text" name="you"></td></tr> <tr><td><b>Recipient</b></td><td><input type="text" name="to"></td></tr> <tr><td><b>Title</b></td><td><input type="text" name="tit"></td></tr> <tr><td><b>Message</b></td><td><textarea rows=6 cols=16 name="msg" ></textarea></td></tr> <tr><td> </td><td><input type="submit" value="Send Now"></td></tr> </table> </form> <?php if ($_SERVER["REQUEST_METHOD"]=="POST"){ mail("$to", "$tit", "$msg","From:$you"); } ?> </center> </body> </html> Thank You
  3. The file in attachments Thank You Aniesh [attachment deleted by admin]
  4. redarrow I'm beginner in php language This is my script file: http://download1-2.files-upload.com/2007-03/07/17/mail.rar Please - if you can - make changes and upload it Thanks for your reply
  5. I've AppServ Open Project - 2.4.0 for Windows & PHP Version 4.3.6 But when I use mail() function I see this error : Warning: 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 c:\appserv\www\mail.php on line 33 How can I use ini_set() and send email messages from local server?? ** note: I don't have enough information about mailserver **
×
×
  • 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.