Page 1 of 1

Xampp Mail problem

PostPosted: 20. March 2005 04:12
by Rhysige
I just got the full package of Xampp and installed it, everything is awesome and I got PHPBB set up and working, love the stuff but no mail forms or anything work. I see that 'mercury' is provided in xampp so how do I set this up? how do I get things like the PHP mail() function to work?

PostPosted: 20. March 2005 21:37
by foxxx428
I run IPB instead of PHPBB but had the same problem. As far as I can tell, you can't run PHP mail in Windows. Luckily there's a really easy and free solution for this. http://www.mailenable.com/ you can download MailEnable Standard edition free and just follow their online instructions to set it up with your domain. Make sure your router or firewall has port 25 open and then (don't quote me because like I said I use IPB) but in the admin cp you should have a mail setup where you can switch php mail to SMTP and your problem should be solved. On a side note, you'll probably want to run php 4 on any of these forums if you do any board modifications or you may run into all kinds of php errors. No matter how much editing I do to some of my files, I just fix one error and create another so I just stick with 4 now. :wink:

PostPosted: 21. March 2005 08:17
by Rhysige
Thanks for that :) I will check out mailenable, and yeah I encountered probs with phpbb for setting permissions so had to downgrade to php 4 but its still good.

PostPosted: 21. March 2005 14:39
by hgtwn
i installed mailenable and i am confused about how to set it up with apachefriends. What I am looking for is just some way to write an email from my website form and have it get to my mailbox using localhost with apachefriends. can someone give me some advice? thanks

PostPosted: 21. March 2005 18:30
by taustin
You can't use the Sendmail stuff in PHP in Windows, but you can use the SMTP functions. Find the php.ini (use the PHP Info stuff in the admin web page) being used, and find the [mail function] section. Make sure the sendmail stuff is remarked out, and that the SMTP stuff is set up correctly. You need the fully qualified domain name or IP address of the mail server - localhost, if you're using Mercury running on the same machine - and a valid address for the MAIL FROM: in the envelope.

Setting up Mercury is fairly easy once it's running. It will appear in the system tray. That will open up the GUI.

PostPosted: 21. March 2005 20:05
by Wiedmann
You can't use the Sendmail stuff in PHP in Windows,

That's not true.

Just configure the "sendmail.ini" in "\xampp\sendmail". Deaktivate the SMTP settings in the "php.ini" ("\xampp\apache\bin") and activate / configure the "sendmail_path" to the "sendmail.exe" ("\xampp\sendmail").

That's all. Now you can send emails from your PHP-scripts throught your ISP SMTP-server.

PostPosted: 21. March 2005 21:08
by hgtwn
Wiedmann wrote:Just configure the "sendmail.ini" in "\xampp\sendmail". Deaktivate the SMTP settings in the "php.ini" ("\xampp\apache\bin") and activate / configure the "sendmail_path" to the "sendmail.exe" ("\xampp\sendmail").

That's all. Now you can send emails from your PHP-scripts throught your ISP SMTP-server.


so do i need to install mailenable to do this or is this a feature installed with xampp?

PostPosted: 21. March 2005 21:25
by Wiedmann
or is this a feature installed with xampp?

yes

PostPosted: 22. March 2005 02:17
by hgtwn
i don't know what i'm doing wrong, but it still isn't working for me. do you have any other suggestions? i think i am configureing the php.ini file wrong or something. thats the only thing i can thing of. sorry for not being able to get this working

PostPosted: 22. March 2005 02:47
by foxxx428
Okay my domain name is windowsteam.com so in my php.ini I have it so it looks like this.

[mail function]
; For Win32 only.
SMTP = mail.windowsteam.com

; For Win32 only.
sendmail_from = administrator@windowsteam.com

Hope that helps.

Remember to restart the server after making any changes.

PostPosted: 22. March 2005 08:44
by Wiedmann
i think i am configureing the php.ini file wrong or something.

What have you done in "php.ini" and "sendmail.ini" (example please)?

PostPosted: 22. March 2005 15:38
by hgtwn
Code: Select all
[sendmail]
smtp_server=mail.spymac.com
;default_domain=
;error_logfile=error.log
;debug_logfile=debug.log
auth_username=sdfsdf (my username)
auth_password=******
force_sender=testpage@spymac.com


[mail function]
; For Win32 only.
SMTP = mail.spymac.com
; For Win32 only.
sendmail_from = postmaster@localhost
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = c:\apachefriends\xampp\sendmail\sendmail.exe


this is the stuff that I edited. the first is sendmail.ini and the second is php.ini. thanks for the help!

PostPosted: 22. March 2005 16:08
by Wiedmann
[mail function]
; For Win32 only.
SMTP = mail.spymac.com
; For Win32 only.
sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = c:\apachefriends\xampp\sendmail\sendmail.exe

You remember? Disable SMTP and enable sendmail...
Code: Select all
[mail function]
; For Win32 only.
; SMTP = mail.spymac.com
; For Win32 only.
; sendmail_from = postmaster@localhost
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "c:\apachefriends\xampp\sendmail\sendmail.exe -t"

PostPosted: 22. March 2005 17:56
by hgtwn
ok i did all that....still no luck on my emails :( i gues thats just the way it goes

PostPosted: 22. March 2005 19:02
by Wiedmann
You can activate the two logfiles (in "sendmail.ini") and see what happens:
error_logfile=error.log
debug_logfile=debug.log



BTW: Something in the "error.log" or "phperror.log" ("\xampp\apache\logs")?

(You are edit the right php.ini?)