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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby marjan » 22. July 2010 13:37

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
marjan
 
Posts: 2
Joined: 22. July 2010 13:27

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

Postby JonB » 22. July 2010 21:21

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.

:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

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

Postby marjan » 23. July 2010 10:22

Finally clear and working solution. Thank you very much! :P
marjan
 
Posts: 2
Joined: 22. July 2010 13:27


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests