|
|
|
|
![]() ![]() |
Nov 2 2007, 04:27 AM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 286 Joined: 18-July 07 From: Slough (UK) Member No.: 46,682 |
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. |
|
|
|
Nov 2 2007, 04:50 AM
Post
#2
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,081 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() |
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(); ?> |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 03:36 PM |