Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring local SMTP Server for using mail function 1

Status
Not open for further replies.

kyru

Programmer
Jan 17, 2009
45
ES
This is not really a PHP question but it's related so I think it's worth putting on here. Also I believe anyone that has wanted to test this function or PHPMailer has fallen into the same situation.

It would also be ok if someone knows an online SMTP server to practice but I suppose that's imposible to find this days.

Can anyone help me? Thanks in advance.



 
You could use your ISP's SMTP server if you have an email account with them. Which is what I do.

Alternatively you can use one of the many SMPT server daemons available such as this one:





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Sigh :(. I get an Internet or DNS Server inaccesible error, and the program doesn't even start,seems there isn't any SMTP server that fits my computer, I've tried a lot of them and I don't achieve to make any of them work properly. Anyway I was asking more about someone telling me how he configured his own SMTP Server to check if I was doing something wrong. Thanks a lot, anyway.
 
What Operating system are you trying to run this on.

The error you mention is it from PHP? Or is it from the Free SMTP server I linked?

Alternatively you can try one of these servers:





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I'm using Windows XP.
It's an error from the Free SMTP server, as I have said I've checked a lot of SMTP Servers but none of them seems to work, I think I've configured them correctly and I've also disabled any program that could bug them like antispyware, antivirus and the like. Anyway I'm asking to see if someone says how he cofigured his own one, in the case I would be forgetting something.

I'll try to use one SMTP server from your list anyway, let's see if I'm lucky. Thanks.
 
Ok. I was finally able to make the program working there was an strange application that was blocking port 25. Anyway it doesn't seem to work yet. How is an e-mail direction supposed to be added in the free SMTP server program?

Apart from that I believe in php.ini the following is needed:

SMTP=localhost

sendmail_from=whatever.watever.whatever

Am I right?






 
No direction should be needed. The program just sends the email to the address you provide either to the mail function in PHP or in any email application.

Yes the PHP.ini should reflect the SMTP config.
localhost and whatever you want the "from" field in the email to have.

You can of course modify the from header at runtime when you call the mail function by supplying the appropriate headers.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Ok. The problem I had was that program didn't register the emails and all emails servers deny any email that is sent by your own machine. So I didn't know if they were created correctly or not. The following one does register them and allows to see they are correct, if it helps anyone:
Well. Thanks a ton.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top