Forum Moderators: coopster

Message Too Old, No Replies

configuration of php.ini to send email

         

Ananthi

11:19 am on Jan 12, 2007 (gmt 0)

10+ Year Member



what values can i set for these variables in php.ini inorder to send email

SMTP

smtp_port

sendmail_from

coopster

12:50 pm on Jan 12, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Ananthi.

The configuration directives listed only pertain to a Windows installation. You can set them to your own internal SMTP server or sometimes you can use an external SMTP server.

Ananthi

1:14 pm on Jan 13, 2007 (gmt 0)

10+ Year Member



what is the procedure to use an external SMTP server.

coopster

1:38 pm on Jan 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If it is just for testing purposes locally you can often just set the SMTP directive to your local ISP (the same as what you setup in your outgoing mail server for your local email client) or your own external smtp server.
SMTP = smtp.my_local_isp.net

Ananthi

4:27 pm on Jan 15, 2007 (gmt 0)

10+ Year Member



Thanks.

could you please give me sample php code for email.

eelixduppy

4:38 pm on Jan 15, 2007 (gmt 0)



Welcome, Ananthi!

Check up on some of the examples at php.net: mail [us2.php.net].

good luck :)