Page 1 of 1

Can I send mail from localhost [@xampp] to web mail servers?

PostPosted: 22. July 2010 13:37
by marjan
I have XAMPP as localhost platform on my web server, and i didn't configure any mail configuration yet, just created username: "marjan" with password: "marjan" in mercury mail. What should i do to be able to send mail with php function mail() to all web servers like gmail, hotmail, yahoo... At the end i will use it for CKforms on Joomla 1.5 (also uses mail() function).

I am not forced to use mercury, I just want easy and final option that works.

Thank you in advance,
Marjan

Re: Can I send mail from localhost [@xampp] to web mail servers?

PostPosted: 22. July 2010 21:21
by JonB
Hi

That's what c:\xampp\sendmail\sendmail.exe is for. its an MTA (Mail Transfer Agent) and is a stand-in for the popular *nix sendmail. you can configuer it to use almost any e-mail account you may have and the SMTP server associated with that account.

In order to use sendmail, you modify its sendmail.ini file (examples guven in file, and the mail_function section in php.ini.

In order to use Mercury, you iwll have to set up Mercury as one of the SMTP servers for your own domain (if you wish to be able to send and recieve mail form other mailservers).

You could look in these threads:

viewtopic.php?f=16&t=41163&p=162625&hilit=sendmail#p162625

viewtopic.php?f=16&t=41236&p=163093&hilit=sendmail#p163093

or search on 'sendmail' in the Forum Search box.

:)

Re: Can I send mail from localhost [@xampp] to web mail servers?

PostPosted: 23. July 2010 10:22
by marjan
Finally clear and working solution. Thank you very much! :P