PDA

View Full Version : how do I use xammps mail server mercury mail


karlosio
01-12-2007, 06:30 PM
Hi,

Ive just installed xampp for local development and would like to use the mercury mail server that comes bundled to test email scripts.

How do I configure this for my email client on my local machine (I use mozilla thunderbird)?

_Aerospace_Eng_
01-12-2007, 09:22 PM
Default user for Mercury mail with XAMPP is newuser@localhost

For your scripts to work the Mercury mail server will have to be running. Default settings in php.ini should be left alone.

karlosio
01-13-2007, 04:24 AM
Default user for Mercury mail with XAMPP is newuser@localhost

For your scripts to work the Mercury mail server will have to be running. Default settings in php.ini should be left alone.

what about pop mail server, username and do i need a password

when entering
pop mail server: localhost
username: newuser
password: <no password>

i am getting the message when trying to retrieve in thunderbird: sending the username did not succeed, mail server localhost responded: undefined is a unsupported domain

karlosio
01-13-2007, 04:28 AM
just seen page that advises to use xampp as password but still get same error as above :(

Big-Pat
01-22-2007, 05:25 AM
I don't know if you still need help, but I just setup an mercury mail server that came with xampp. I don't know about the default password, but you can setup a new user by going to:
Configuration> Manage Local Users > ADD
then
User: whatever you want (will be <what you entered>@localhost)
Personal Name: Real Name
Password: take a guess
APOP : I just left this blank, I think this only matters if you are using their mail client
Admin Priv.: again only matters with their mail client.
Copy Default...: again only matters with their mail client.

To get a more detailed description click the help button in this window.

_Aerospace_Eng_
01-22-2007, 07:05 AM
what about pop mail server, username and do i need a password

when entering
pop mail server: localhost
username: newuser
password: <no password>

i am getting the message when trying to retrieve in thunderbird: sending the username did not succeed, mail server localhost responded: undefined is a unsupported domain

smtp server should also be localhost and you must be sure that apache is running. Username snould be
newuser@localhost not just newuser.

utenteprova
07-09-2009, 12:33 AM
Hi all!

Thanks to your great suggestions. I had widely looked on the Internet for a complete tutorial for do this, but I have a permanent problem on my test platform. It would be wonderful if you can help me.
This is the situation: the installation of mercury/32 is completely fresh (never used it before), I updated the php.ini file like I heard on some online tuts, set user accounts, provided similar accounts on thunderbird client.
After the setup phase, I prepared a simple php script just like this:

mail('testuser@email.it', 'test mail function', 'Hey hey, message body here!');

It gave me this error message
Warning -> mail() [function.mail]: SMTP server response: 502 negative vibes

:confused:

I also tried to change destination address with an online real user, but nothing happened.

Into thunderbird, it continues to say:
localhost is a unsupported domain

Any help would be greatly appreciated.
Have a nice day

Luca

_Aerospace_Eng_
07-09-2009, 04:43 PM
You need a real SMTP server to get mecurymail to send out mail to an address out side of your system (localhost).

Without an SMTP server you can only send mail to localhost which is why I said what the default user was. Get a real SMTP server and your mail function should work properly.

utenteprova
07-10-2009, 01:25 AM
Yeah, thank you Aerospace.

In facts, the purpose of sending emails via localhost to localhost, without any external connection and smtp, was exactly what I am trying to obtain. Basically, it would be nicely useful for me to setup the php script to send mails to mercury software (just for website debugging purpose), on which the client is listening.

I tested the mercury platform, and it just works (I sent a message directly from mercury (admin account), and I found the .cnm file in testuser folder.

The matter is, I don't know how to make mercury receive commands from php mail('testuser@localhost', 'Hello, world!', 'Simple test message') (it gives: 502 error message), subsequently I will need to connect thunderbird to that account. I tried all the accounts that are on mercury installation, but it won't function properly.

Thanks for your help and patience, that's great :D

Luca

_Aerospace_Eng_
07-10-2009, 04:44 AM
What do you have in your php.ini file for smtp settings?

utenteprova
07-10-2009, 12:34 PM
i found on phpinfo() that the php.ini applied is into C:\xampp\php.
Here is the smtp part of the file. (Note: also uncommenting the sendmail_from row and changing the username doesn't work).

///////////////////////////////////

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = postmaster@localhost

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "\xampp\sendmail\sendmail.exe -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

///////////////////////////////////

Thank you again for your help.

Bye,
Luca

_Aerospace_Eng_
07-10-2009, 07:29 PM
Okay and what username are you using in thunderbird?

utenteprova
07-10-2009, 11:18 PM
In thunderbird, i made an account with username postmaster@localhost and no password. When i try to receive mail, it just says "localhost is a unsupported domain". btw, the problem isn't only in mail reception, but also for php sending. (i also looked at the fake sendmail xampp's attachment, I didn't touched it at all, but it seems all right yet).

If you think it would be better, I can maybe contact you privately.
Please make me know.

Thank you so much,
Luca

_Aerospace_Eng_
07-11-2009, 08:57 AM
Did you create a user called postmaster@localhost? Or did you just use it to check?

utenteprova
07-13-2009, 11:13 AM
sure :)

at this link

http://img37.imageshack.us/gal.php?g=screenshot1r.jpg

i posted some screenshots of my actual settings. here you can see the current setup of the localhost mail server.
Please tell me if you need some more.

Thank you again for helping, you're great!

Bye,
Luca

utenteprova
07-18-2009, 12:29 AM
no updates? give me a hand, please

Cheers,
Luca

_Aerospace_Eng_
07-18-2009, 09:37 AM
Please learn to be patient. I don't like helping impatient people. We are all here on our own free time (keyword free). We aren't here 24/7.

Did you give a password to the postmaster account?

red dog
07-23-2009, 09:21 PM
i have a similar problem but with outlook 2007. i can't send email from it to localhost:
here's my relevant php.ini file

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = erictest1@localhost

i think i've set up mercury correctly: don't know how to send a test email from there though.
when i go to send from outlook the message says:
cannot connect to incoming pop3 account:
cannot connect to outgoing smtp account:
what gives is it a config problem or is my isp blocking emails to and from localhost??

red dog
07-23-2009, 10:28 PM
getting close now it says error in connecting username or password incorrect??
any help in showing how i set up username in outlook to match mercury with the correct syntax would be great.

_Aerospace_Eng_
07-24-2009, 11:53 AM
Your username should be testuser@localhost

By default the password for testuser is xampp.

You won't be able to send emails from an account that has an external mail server. You will need to try emailing yourself using localhost as your smtp mail server.

You could also use the php mail() function to email yourself. Did you create the user erictest1 in mercury mail?

red dog
07-24-2009, 10:38 PM
i made an account in mercury mail erictest1 and set up outlook 2007 to use localhost. and in control panel mail same thing. i entered erittest1at localhost for email everywhere.i called my isp and they said it won't work ..so as per ur suggestion to change email to my isp's email do i change it in all text boxes mentioned above? confused. and at my wit's end.

_Aerospace_Eng_
07-25-2009, 07:35 AM
Not once did I say to change to your ISP's email address. It will work. There is nothing stopping it. Your ISP didn't know what they were talking about. As long as mercury is running you can send mail to your self ONLY from files that are on your localhost in the xampp htdocs folder.

red dog
07-25-2009, 04:53 PM
oops, i apologize i guess i misread or was looking at an earlier post of some one else's.
so in all cases i use testuser@localhost for my username even in outlook and the password u say is the default. i just want to get this clear in my mind. i'v tried so many other variables. thanks for your help. i await your response.

_Aerospace_Eng_
07-25-2009, 08:51 PM
Yes that is what I said.

red dog
07-25-2009, 09:41 PM
thanks now i have entered all that u have suggested and when i go to test configuration in add new in outlook 2007 i get the message error 0x80040607
looked it up but don't know how to fix. can u help, Aerospace.
for "your name" in mercury i put dan and for "your name" in outlook i put dan the rest is all that u suggested. testuser@localhost and the password.

_Aerospace_Eng_
07-26-2009, 12:41 AM
You need to change the outgoing server to localhost. You can't use your isp's server.

red dog
07-26-2009, 07:51 PM
hi,thanks i did not mention it but i did put localhost for incoming and outgoing server. now when i try to log in error message: cannot log into pop3 email
server. unsure how to repair that? i'm not getting paid for this work i'm a volunteer trying to test some web pages. i thought u should know that.

_Aerospace_Eng_
07-26-2009, 08:46 PM
I'm not sure what to tell you other than make sure your username is testuser@localhost and your password is xampp.

You may also need to make sure your smtp server requires authentication.

If you none of that works then you are on your own. I've run out of ideas, sorry.

red dog
07-26-2009, 11:43 PM
Thanks aerospace. hmm was looking around xampp in explore and noticed folder for sendmail. do i need to configure it to testuser@localhost? just a guess but thought i'd mention it; to see what u had to say.

red dog
07-27-2009, 04:01 AM
i've got this:.

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = testuser@localhost

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

should the sendmai_from be uncommented?
also should this be adjusted:


smtp_server=mail.mydomain.com

; smtp port (normally 25)

smtp_port=25

i'm about to give up also.

_Aerospace_Eng_
07-27-2009, 06:04 AM
smtp_server should be localhost not mail.mydomain.com

red dog
07-27-2009, 08:52 PM
well, i give up, my isp is to protective and won't allow localhost accounts. at least that's finally what one tech support told me. so now do i need an smtp server on my pc if so what do u suggest and will it be difficult to set up?

utenteprova
07-28-2009, 05:26 PM
sorry for "impatience", aerospace. it wasn't in my purpose :)

christopherc
01-26-2012, 09:20 AM
I found this thread very useful, actually solved my problem. Here's what I did:

Created new user in mercury mail by going to configuration>Manager local users then clicking on add. Entered ff.:
Username: username
Personal Name: personalname@localhost
Mail Password:[same password you'll enter in thunderbird]

Created account using Thunderbird with ff. credentials:
Your name: personalname
Email Address: username@localhost
password:[password set up in mercury mail]
Server Type: POP3

If you go to Server Settings under Account Settings, you should see:
Server Type: POP Mail Server
Server Name: localhost
port: 110
User name: username

Uncommented sendmail_from in php.ini(didn't change the value) or this error will be thrown:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\try.php on line 31


I hope this will help other newbee developers like me who wants to test the mail() php function in their localhost. I also want to thank Aerospace for sharing his knowledge, keep up the good job! :)