Page 1 of 1

mail2disk not working

PostPosted: 16. October 2012 15:29
by Bhujang
Hello friends, Pardon me for using poor English. I recently installed latest version of XAMPP, when I tried to sent a sample email locally with built-in mail form with XAMPP although the mail sent message came but mailTOdisk folder was empty, beneath the mail form I saw that mailtodisk is default option in XAMPP and we don't need to configure anything in php.ini file then what is the problem?
Another strange thing is that when I deleted the default sender and recipient fields ( which were postmaster@localhost and admin@localhost probably ) from the mail form and kept all fields empty event then the mail sent message appeared.

If someone can help me I would be very helpful to him as I searched on Google for solution but can't find a solution, I also searched in my PHP books but they were also of no use. Thanks.


XAMPP VERSION: 1.8.1
OS: VISTA SP2 HOME BASIC
INSTALLATION DIRECTORY: C:/XAMPP

Re: mail2disk not working

PostPosted: 16. October 2012 18:03
by WilliL
Hello Bhujang
I've got the same result:
sending a mail by "mailTOdisk" and no message was found in folder c:\xampp\mailoutput.

For I've been puzzeld, so I looked in folder c:\xampp\tmp because the date was changed.
There was a new folder created "c:\xampp\tmp\mailoutput" and the massege I sent by my template was found there.

Have a look, if it fits to you too.

Re: mail2disk not working

PostPosted: 17. October 2012 10:46
by Bhujang
Thanks WilliL you are rights the mails are in c:\xampp\temp\mailoutput, but why are they going to that directory have you any clue about it?

And if I keep sender and recipient fields blank still I am finding it in directory mentioned by you,why WilliL?

And what exactly is mailtodisk if you can tell me aur give me a link on net which explains it, then it will be so kind of you.

Re: mail2disk not working

PostPosted: 17. October 2012 12:56
by WilliL
Hello Bhujang
Thanks WilliL you are rights the mails are in c:\xampp\temp\mailoutput, but why are they going to that directory have you any clue about it?
just a guess: a bug in mailtodisk.exe (I didn't found an ini file) or a misspelling of the path in readme file
And if I keep sender and recipient fields blank still I am finding it in directory mentioned by you,why WilliL?
just a guess: for no smtp is used there's no check / error massage. OMO its on yours to secure your script by checks (sender/ receiver mustn't be empty)
And what exactly is mailtodisk if you can tell me aur give me a link on net which explains it, then it will be so kind of you.
mailtodisk saves the sent mails on your drive, instead of using smtp (like eg sendmail, mercury). To find more information I please you to use google in your prefered language

Re: mail2disk not working

PostPosted: 17. October 2012 15:26
by Altrea
WilliL wrote:
And what exactly is mailtodisk if you can tell me aur give me a link on net which explains it, then it will be so kind of you.
mailtodisk saves the sent mails on your drive, instead of using smtp (like eg sendmail, mercury). To find more information I please you to use google in your prefered language

MailtoDisk is a new XAMPP component written with Python by kvo (Kay Vogelgesang - developer of XAMPP for Windows). The sourcefiles are contained in the src folder.
A google search will not give any helpful results on that.

Re: mail2disk not working

PostPosted: 17. October 2012 16:48
by Bhujang
Thanks both of you and Altrea you are right there is not any helpful information on net about mailtodisk and how to use it with XAMPP, actually before raising my query in this forum I searched on Google and when I didnt find anything useful only then I asked here.

I think XAMPP lacks a proper help documentation, and the people behind this should start creating proper help documentation. I know that it will take time and money so all of should contribute by supporting either financly or by contributing to help documentation.

Re: mail2disk not working

PostPosted: 17. February 2015 21:15
by wantedxnn
is working....
1. when you use normal start apache not as service will write corect output file in directory ...\xampp\mailoutput\
2. when you use apache installed as service you will find output file in ...\xampp\apache\mailoutput\