Jul 9, 2008

Smtp Settings - PHP.ini does not seem to listen.

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

free web hosting

Smtp Settings - PHP.ini does not seem to listen.

mrdee
I have been trying to set my SMTP server so I can test out scripts in which sending email is involved.
As I mentioned in another topic, i am using EasyPHP 1.8, a combined package of Apache server, PHP 4 and MySQL.
When executing a script on my local machine, a script that normally works online tells me I have a 530 error and I need to authenticate.
So, I looked things up in the PHP manual where I found to go to the php.ini file and find [mail function], and underneath that, to set your SMTP server to the one of your own ISP.
Furthermore, it told me to set sendmail_from to the email address you want to send from.
I did all that, but after restarting the Apache server, and even after re-booting the machine, i still get the same error, and when I look in phpinfo(), my SMTP server still appears at localhost, while my email address still appears as root@localhost.
Yet, in the php.ini file, the values are retained as the ones I set them to.
Does anyone know why this is happening?

BTW I use EasyPHP in order to avoid having to upload all the time and to be able to test scripts and do exercises on my own machine.

Thanks in advance for any help.

 

 

 


Reply

jlhaslip
You will need to run a phpinfo() to find out the exact path to your ini file.
If easyphp is like WAMP ad XAMPP, there are several places where they stash spare copies and sample ini files, so do the phpinfo(),
(I'll post some code for you in a minute), and travel the path to find the right one.

results for the php.ini are the 7th line down in the phpinfo()

Put this code in a file in your server path, like htdocs folder, and browse to it.
CODE
<?php
phpinfo();
?>

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. drupal localhost xampp outlook express does not send mail - 294.79 hr back.
  2. how to check smtp setting using phpinfo() - 650.15 hr back.
  3. drupal smtp settings php.ini - 738.92 hr back.
Similar Topics

Keywords : smtp settings php ini


    Looking for smtp, settings, php, ini, listen,

Searching Video's for smtp, settings, php, ini, listen,
advertisement



Smtp Settings - PHP.ini does not seem to listen.



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE