Click to See Complete Forum and Search --> : CONFIGURING php.ini (Setting the SMTP)!!!


tamill
08-28-2005, 05:06 AM
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 = me@localhost.com

Please Reply the changes

Thanks in advance.
TaM

Weedpacket
08-28-2005, 08:42 AM
smtp=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 from

tamill
08-30-2005, 10:24 AM
what is that dude i could not get that please help me out

thorpe
08-30-2005, 11:03 AM
dude... thats as easy an explination as ive seen. what dont you understand dude?

prince09
09-04-2005, 10:15 PM
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 = gth838t@mail.gatech.edu

Hope to get your reply soon.

Weedpacket
09-05-2005, 05:45 AM
;sendmail_from = gth838t@mail.gatech.edu
You'll want to remove the semicolon that's commenting this line out.