Jump to content

christite214

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

christite214's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i just learnt that windows don't have a mail server installed by default and i belive this might be the reason that i am unable to send mails using the php mail function. guys can u help me with what kind of mail server needs to be installed for win xp. also i used this code in my web hosting service. it gives me a mail sent message, however i don't receive any mail in my mailbox.it's a valid email id.. let me know if any corrections need to be made in the code. <?php if (@mail("modernite_19@rediffmail.com" ,"hi" , "hello")) { echo('<p>Mail sent successfully.</p>'); } else { echo('<p>Mail could not be sent.</p>'); } ?>
  2. [!--quoteo(post=365914:date=Apr 18 2006, 02:44 AM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ Apr 18 2006, 02:44 AM) [snapback]365914[/snapback][/div][div class=\'quotemain\'][!--quotec--] Just google... Here's one I found using: mysql php tutorial. [a href=\"http://www.freewebmasterhelp.com/tutorials/phpmysql\" target=\"_blank\"]http://www.freewebmasterhelp.com/tutorials/phpmysql[/a] Orio. [/quote] Use a select query and use mysql_fetch array to view a particular coloum. Eg: try understanding the following code.. it gives the value of email stored in the database. $name=$_POST['txt_name']; $query="Select email from emp where Name ='$name'" $result=mysql_query($query) or die(mysql_error()); //$numrows=mysql_numrows($resultset); if(mysql_num_rows($result)==1 ) { $row=mysql_fetch_array($result); $email= $row['email']; echo $email; }
  3. [!--quoteo(post=365023:date=Apr 15 2006, 04:22 AM:name=legendary ssj goku)--][div class=\'quotetop\']QUOTE(legendary ssj goku @ Apr 15 2006, 04:22 AM) [snapback]365023[/snapback][/div][div class=\'quotemain\'][!--quotec--] Ok.... i tried to do a mail thing in php//.... and i couldn't get it to work... so someone who had already done and got it working sent me the files.... i then tried it on my computer and it didn't work... the error is this... 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 E:\Websites\Server\www\jstest\register.php on line 121 On 121 is just the mail part..... now i am running PHP, apache, etc... on my computer..... on WINDOWS XP pro... According to my research on google i am meant to put in some ISP or something...... but i don't know where to find it or anything... I just want to be able to run everything off my computer currently. thanks in advance to anyone that helps... [/quote] dude i am also facing the same problem.....let me know in case u get a valid reply.
  4. My settings in the php.ini are as follows:- [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com The code i am using to test the mail facility is this:- <?php if (@mail("modernite_19@rediffmail.com" ,"hi" , "hello")) { echo('<p>Mail sent successfully.</p>'); } else { echo('<p>Mail could not be sent.</p>'); } ?> However i get this message mail could not be sent...... Wen i run the same code from a webhosting service i get mail sent message but i never receive the mail in my mailbox....i have put a valid mail id. Guys i need help desperately!!!!!!!
×
×
  • 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.