Page 1 of 1
settings of php.ini
Posted: Mon Jun 02, 2008 8:27 pm
by junjustkim
Hi to all
I just want to ask what is the approriate settings of my php.ini to send email from local host. I am using xampp as my local server. I have read some forums saying that I need to change "localhost" as the value of smtp into local ISP. I don't know how to locate ISP on my PC. Please help me in order for me to send email.
Thank you
Re: settings of php.ini
Posted: Mon Jun 02, 2008 11:07 pm
by RobertGonzalez
What OS are you running?
Re: settings of php.ini
Posted: Mon Jun 02, 2008 11:41 pm
by junjustkim
Thanks for your immediate replied, I am using windows xp.
Thanks
Re: settings of php.ini
Posted: Tue Jun 03, 2008 12:46 am
by RobertGonzalez
There is a good chance that PHP is still looking for sendmail to use as the mail agent.
You could tell it to use your ISPs smtp server (check whatever mail client you use for the account settings for their smtp server settings). Just be watchful with this as every mail you send will be counted toward you and too many mails in a short period of time might be considered spam by some ISPs.
Re: settings of php.ini
Posted: Tue Jun 03, 2008 4:07 am
by junjustkim
Hi, could you more elaborate what did you mean for me to do, I am a newbie with this environment.
Thanks
Re: settings of php.ini
Posted: Tue Jun 03, 2008 10:19 am
by RobertGonzalez
PHP by default will look for sendmail as the mail server. You can tell it to use a SMTP server in the php.ini file. Your ISPs SMTP server (the server that they use to send mail when you compose a message in Thunderbird, Evolution or Outlook) can be used for testing on your local installation. However, each time you send a message your ISP will know about it. Repeated messages being sent by their server could show up to them as SPAM and they could potentially shut your account down for that.