Page 1 of 1

mailtodisk - weird saving location

PostPosted: 22. August 2017 18:44
by arxeiss
I have new installation of XAMPP on Windows, but I did few changes.
  • Installation path: C:\web\xampp
  • htdocs location: D:\www
  • Running as FastCGI

Everything works great, but problem is with email sending.
I have my webpage on http://localhost/myweb/ which is located in D:\www\myweb\.
When I sent email, C:\web\xampp\mailoutput is empty, no file inside. Then I found that folder was created and email is saved in D:\www\myweb\mailoutput\.

Is this new behaviour of mailtodisk utility? Because in readme just next to mailtodisk.exe is still written in should be in xampp\mailoutput folder.
I guess, that mailtodisk has no configuration file, right? Is there a way, how to change it, to save emails into xampp\mailoutput folder?

Thank you

Re: mailtodisk - weird saving location

PostPosted: 22. August 2017 20:53
by Altrea
arxeiss wrote:Is this new behaviour of mailtodisk utility? Because in readme just next to mailtodisk.exe is still written in should be in xampp\mailoutput folder.

No, the mailtodisk.exe has not changed for years. The script has problems with the output directory. It is based on the current working directory.

arxeiss wrote:I guess, that mailtodisk has no configuration file, right? Is there a way, how to change it, to save emails into xampp\mailoutput folder?

There is no configuration file, but each XAMPP version ships the python script sources so you can edit and compile it yourself if wanted.
These sources are present in the src folder.

Re: mailtodisk - weird saving location

PostPosted: 22. August 2017 21:02
by arxeiss
Altrea wrote:No, the mailtodisk.exe has not changed for years. The script has problems with the output directory. It is based on the current working directory.

Can you explain it more please? What you mean problem with output directory?

I have installed XAMPP many times before with similar configuration (Only FastCGI is new now), so XAMPP was always in C:\web\xampp and document root in D:\www and emails were written in C:\web\xampp\mailoutput folder.