Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Smtp Settings, PHP.ini does not seem to listen.
mrdee
post 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.
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

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
Spam Patrol



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();
?>
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. What Sort Of Music Do You Listen To?(72)
  2. Mail Settings To Configure Outlook Express(10)
  3. They Never Listen(17)
  4. Do You Listen To Radio Talk Stations?(1)
  5. Sendmail Vs Mail() And Smtp(3)
  6. Genuine Help With Smtp And Php Mail() Function(3)
  7. Smtp Server Is Not Working...?(4)
  8. Change In Invision Gallery Settings(2)
  9. How To Download Any Music (mp3), The Legal Way. Hot!(39)
  10. Error On Emailer.php & Smtp.php At Phpbb(2)
  11. Is There A Freebie For? Smtp Hosts?(2)
  12. I Made These With Sony Acid Pro(10)
  13. Trap17 Ftp Settings(3)
  14. Is It Possible To Run Two Copies Of Firefox On Different Settings?(7)
  15. Send Emails Without Smtp(10)
  1. Trap17 Has Smtp?(3)
  2. New Twist On An Old Backdoor Trojan(2)
  3. Whats Music Type Of Music Do You Listen To?(5)
  4. Smtp Mail Issue(2)
  5. How To Reset Internet Explorer 7.0 Settings (ries)(1)
  6. When Mountains Speak, Wise Men Listen(2)
  7. Let's Listen To A Hawthorne Heights Album And Sob... Slit My Wrists And Black My Eyes =](0)
  8. Smtp Authentication Error [resolved](3)
  9. Ch Customer. - Need Help W/ Php/mysql Settings. System() Passthru() Mysqldump(1)
  10. On Line Proxies!(11)
  11. Anywhere Fm(0)
  12. A Question About Php Mail(1)
  13. Listen To The Musice You Want When You Want.(0)


 



- Lo-Fi Version Time is now: 12th October 2008 - 03:36 PM