CONFIGURING php.ini (Setting the SMTP)!!!

liunx

Guest
Hi dudes,
I am new to php.
I want to send a mail via php mail function.
When ever i send a mail from the php mail().
The following error comes.And i could not send any mail.

Please help me in configuring the php.ini.
And what values should be set in

smtp=?
smtp_port=?
sendmail_from=?

My Actual php.ini is
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->

Please Reply the changes

Thanks in advance.
TaMsmtp=the name of the host where the SMTP server you'll be using is running (whoever's responsible for your network connection should know this)
smtp_port=the port on that host the SMTP server is listening on (25 is the conventional choice)
sendmail_from=the email address that the sent mail should say it's fromwhat is that dude i could not get that please help me outdude... thats as easy an explination as ive seen. what dont you understand dude?Hi,

Can you plz help me in configuring PHP.INI file to send mail by php's mail function?

I get the following error message:
PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Inetpub\wwwroot\_debug_tmp.php on line 9

I am running this code on server and i don't know how to configure SMTP server. This is my PHP.INI file.
[mail function]
; For Win32 only.
SMTP = 127.0.0.1
smtp_port = 25

; For Win32 only.
;sendmail_from = <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->

Hope to get your reply soon.;sendmail_from = <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
You'll want to remove the semicolon that's commenting this line out.
 
Back
Top