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
settings of php.ini
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: settings of php.ini
What OS are you running?
-
junjustkim
- Forum Commoner
- Posts: 44
- Joined: Thu May 22, 2008 8:48 pm
Re: settings of php.ini
Thanks for your immediate replied, I am using windows xp.
Thanks
Thanks
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: settings of php.ini
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.
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.
-
junjustkim
- Forum Commoner
- Posts: 44
- Joined: Thu May 22, 2008 8:48 pm
Re: settings of php.ini
Hi, could you more elaborate what did you mean for me to do, I am a newbie with this environment.
Thanks
Thanks
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: settings of php.ini
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.