Page 1 of 1

Fakemail doesn't work

PostPosted: 01. February 2016 19:44
by alghorabaa
hello,
Today I installed xampp, last version that supports php v7.0.2, I installed it under its default settings, and didn't change anything, and everything seems to work just fine except (fakemail), when I try to send from mail forms, it is supposed to send txt files to the folder (mailoutput), but the folder is empty even though the mailform confirms that the sending process is completed successfully, any idea how can I get it to send txt files to the folder (mailoutput)?

thanks,
Omar

Re: Fakemail doesn't work

PostPosted: 01. February 2016 20:33
by Altrea
Hi Omar,

If you are starting Apache as elevated Administrator, your mailoutput will be in \xampp\apache\mailoutput\.

best wishes,
Altrea

Re: Fakemail doesn't work

PostPosted: 01. February 2016 21:52
by alghorabaa
Thanks,
The folder is empty, and I get this error:
Warning: mail(): SMTP server response: 553 We do not relay non-local mail, sorry.

Any idea?

Re: Fakemail doesn't work

PostPosted: 01. February 2016 22:09
by Nobbie
The error message comes from Mercury SMTP, but you did not tell us about Mercury.

Re: Fakemail doesn't work

PostPosted: 01. February 2016 22:19
by alghorabaa
Sorry but I didn't get error message until I removed (@) before mail() to see if there are any messages, it was @mail(), but now it is mail(), I was able to fix the error by editing Mercury configuration, and no error messages now, but still, the folder is empty, are there any further adjustments on php.ini?

Anyway, this is how I fixed 553 error:

1. Open XAMPP Control Panel
2. Click "Admin..." next to Mercury.
3. In the Mercury/32 window click "Configuration"
4. Click "MercuryS SMTP Server".
5. Click the "Connection control" tab.
6. Take the check out of "Do not permit SMTP relaying of non-local mail" and click "OK".
7. Close the "Mercury/32" window and run your script again.

Thanks

Re: Fakemail doesn't work

PostPosted: 01. February 2016 22:32
by Nobbie
Fakemail is Fakemail, Mercury is Mercury. Like New York is New York and San Francisco is San Francisco. And like Internet Explorer is Internet Explorer and Firefox is Firefox. Fakemail has not anything to do with Mercury Mail and vice verse. Do you want to work with Fakemail or with Mercury Mail?

Re: Fakemail doesn't work

PostPosted: 01. February 2016 23:01
by alghorabaa
I want to use fakemail.
Sorry, I though fakemail and Mercury are both necessary.

Re: Fakemail doesn't work

PostPosted: 02. February 2016 11:56
by Nobbie
No, you dont need Mercury for Fakemail. Dont even start Mercury.

Instead edit php.ini and:

a) search for "SMTP" and comment out that line (should look like SMTP = localhost or similar). Put a '#' in the first column to comment out.

b) search for "sendmail_path" and provide the full path to the Fakemail executable (i.e. c:/xampp/mailtodisk/mailtodisk.exe). There is also a readme.txt in the mailtodisk folder which explains exactly the same. If there is a '#' in front of the line, remove that in order to "uncomment" that line.

Finally restart Apache and send Email via php mail() function, it should be stored in the folder c:/xampp/mailoutput (this is also explained in the readme.txt).