Fakemail doesn't work

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Fakemail doesn't work

Postby alghorabaa » 01. February 2016 19:44

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
alghorabaa
 
Posts: 7
Joined: 01. February 2016 19:28
Operating System: Windows 10

Re: Fakemail doesn't work

Postby Altrea » 01. February 2016 20:33

Hi Omar,

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

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Fakemail doesn't work

Postby alghorabaa » 01. February 2016 21:52

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?
alghorabaa
 
Posts: 7
Joined: 01. February 2016 19:28
Operating System: Windows 10

Re: Fakemail doesn't work

Postby Nobbie » 01. February 2016 22:09

The error message comes from Mercury SMTP, but you did not tell us about Mercury.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Fakemail doesn't work

Postby alghorabaa » 01. February 2016 22:19

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
alghorabaa
 
Posts: 7
Joined: 01. February 2016 19:28
Operating System: Windows 10

Re: Fakemail doesn't work

Postby Nobbie » 01. February 2016 22:32

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?
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: Fakemail doesn't work

Postby alghorabaa » 01. February 2016 23:01

I want to use fakemail.
Sorry, I though fakemail and Mercury are both necessary.
alghorabaa
 
Posts: 7
Joined: 01. February 2016 19:28
Operating System: Windows 10

Re: Fakemail doesn't work

Postby Nobbie » 02. February 2016 11:56

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).
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 121 guests