![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2008
Posts: 3
Rep Power: 0
![]() |
PHP mail function
guys need help about this program.. i want to practice the PHP mail() function... using my own pc.(which is installed with PHP,Apache, and Dreamweaver CS3) I'm trying to mail my own account but this problem always occur..
Warning: mail() [function.mail]: Failed to connect to mailserver at "dark_angel_05318617@yahoo.com.ph" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\PHPProjects\mySite\mailcomment.php on line 8 Mail Sent. and this is my code <?php $to = "erwinechon@yahoo.com.ph"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "dark_angel_05318617@yahoo.com.ph"; $headers = "From: $from"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> can anyone tell me how to solve this kind of problem.. and also please tell me how to configure the SMTP in php.. thanks a lot guys |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mail sent by PHP | Logical1 | PHP | 6 | Jun 7th, 2008 12:48 PM |
| Php Tutorial 3 | bulio | PHP | 4 | Jul 16th, 2006 4:00 AM |
| mail() function | Obtruse_Man4 | PHP | 9 | Oct 6th, 2005 5:54 PM |
| Mail function of this server doesn't work | Polyphemus_ | Coder's Corner Lounge | 0 | Aug 21st, 2005 4:15 PM |
| Working with mail function | dmorales | PHP | 8 | Feb 12th, 2005 8:30 AM |