Why my Mercury doesn't start

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

Why my Mercury doesn't start

Postby reynierpm » 30. November 2010 13:50

Hi every:
I've been working with XAMPP Lite 1.7.3 for a while and I'm very happy. Right now I need to test some emails functionality in my application but for a strange reason Mercury doesn't start and can't send any emails. I check all the docs, FAQ's, forums, Google and so on and can't find a solution. Also I check my XAMPP directory and none mercury_start.bat or mercury_stop.bat script exists. I check also the ZIP downloaded from here and doesn't have this files either. What I need to do in order to get Mercury on?
Cheers and thx in advance
reynierpm
 
Posts: 3
Joined: 30. November 2010 13:46

Re: Why my Mercury doesn't start

Postby JonB » 30. November 2010 14:11

Well - do you want to have a 'real mailserver' (which requires lots of work) or do you want to 'send mail'? They are two totally diiferent things. If what you want to do is 'sendmail' from a script or application (could be your own 'program') - then the tool is ~ TADA ~ SENDMAIL - not Mercury which is a full blown SMTP and POP mailserver.

If you need to hitch a PHP program to send mail by way of an e-mail account you may have, its the right tool. Its found in \xampp\sendmail There's a sendmail.ini file that needs configuration to point to the default account, and you will need to make changes to the MailFunction section of php.ini.

Here are two threads that discuss this - (including one about XAMPP lite)

viewtopic.php?f=16&t=42756&p=168406&hilit=sendmail+JonB#p168406

viewtopic.php?f=16&t=39649

and ---

viewtopic.php?f=16&t=41236&start=0&hilit=sendmail+JonB

(does the last one sound familar??? LOL)

IF you really want to run a mailserver (send/receive, and store e-mail for a domain (or localhost) - that is a totally different ball of wax.

Good Luck - and let me know if you actaully need to run a mailserver...
8)
Last edited by JonB on 30. November 2010 14:40, edited 1 time in total.
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: Why my Mercury doesn't start

Postby reynierpm » 30. November 2010 14:45

Ok, I've downloaded XAMPP 1.7.3 and now Mercury appears ;) I have also configured all in sendmail.ini and php.ini as follow:
Code: Select all
logfile "D:\Webserver\sendmail\sendmail.log"

account Mercury
host localhost
from postmaster@localhost
auth off

account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from xxxxxxxxxxx@gmail.com
auth on
user xxxxxxxxxxx@gmail.com
password xxxxxxxxxxx

account default : Gmail

php.ini
Code: Select all
[mail function]
SMTP = localhost
smtp_port = 25

sendmail_path = "D:\Webserver\sendmail\ -t"
mail.add_x_header = Off

Then I have this simple script just for testing purposes:
Code: Select all
<?php
 $subject="Hi There!!";
 $to="reynierpm@gmail.com";
 $body="This is my demo email sent using PHP on XAMPP Lite version 1.7.3";
 if (mail($to,$subject,$body))
  echo "Mail sent successfully!";
 else
 echo "Mail not sent!";
?>

when I execute this "Mail sent successfully!" appears so aparently the mail was sended but in my Gmail account not appears nothing. Any ideas?
PS: I check all the post you let me here @JonB and sounds a little familiar :D
reynierpm
 
Posts: 3
Joined: 30. November 2010 13:46

Re: Why my Mercury doesn't start

Postby JonB » 01. December 2010 04:18

Umm - your php.ini and sendmail configs don't work together - I'll look at it tomorrow.

right now I am toast - :P

:?: Do you also have Mercury started? (its not needed for sendmail to work)

see ya

:)
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


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 117 guests