Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Mail() setup

the mail() function

Moderators: macek, egami, gesf

Mail() setup

Postby border20 » Fri Jan 31, 2003 11:05 am

How do you setup a server to provide the mail function ??
border20
New php-forum User
New php-forum User
 
Posts: 32
Joined: Tue Jan 28, 2003 10:19 am
Location: Québec

Postby Oleg Butuzov » Mon Feb 03, 2003 1:00 am

php.ini

;[mail]

smtp adress
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

problem in smtp_port

Postby aijazasoomro » Fri Mar 07, 2003 2:48 am

Hi dear i am trying to use main function so i get this error so please tell me the solution






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 c:\apache\htdocs\ch25\sendmail.php on line 3
Message Sent! Back to menu


I will be thank ful for this act of kindness
aijazasoomro
New php-forum User
New php-forum User
 
Posts: 3
Joined: Fri Mar 07, 2003 1:51 am

Re: problem in smtp_port

Postby quantm » Sat Apr 19, 2003 2:54 am

In linux
You should make sure that Sendmail Daemon are running on port 25 by typing:
nmap -sT localhost
,if not then type
/etc/rc.d/init.d/sendmail start


For more information, type
rpm -qc sendmail

Hope that helps! I will help you as far as i can


aijazasoomro wrote:Hi dear i am trying to use main function so i get this error so please tell me the solution

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 c:\apache\htdocs\ch25\sendmail.php on line 3
Message Sent! Back to menu

I will be thank ful for this act of kindness
User avatar
quantm
New php-forum User
New php-forum User
 
Posts: 7
Joined: Mon Apr 07, 2003 8:00 pm
Location: Vietnam

Re: problem in smtp_port

Postby WiZARD » Thu Apr 24, 2003 4:28 am

i'm tell it about before....
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

mail

Postby ruturajv » Tue Jan 20, 2004 10:09 pm

be sure that you have the smtp server running when you are using the win2000

you can see if its running
by typing "inetmgr" in the run window

this will open the internet manager, here you can see if the smtp server is running.!

AND check for the configuration in php.ini
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India


Return to PHP coding => Mail

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.