Sendmail for Windows

0 like 0 dislike
7 views
Once upon a time met program, I can't find it.
Works as a local mail server, but all "sent" mail does not send, it will open in a separate window. It was very convenient to test mail sent from the site during development.
Maybe someone knows the name?
by | 7 views

4 Answers

0 like 0 dislike
by
0 like 0 dislike
<?php\r/*\r* Скрипт перехватывает поток, предназначенный для программы sendmail\r*\r* Настройка:\r* 1. в php.ini прописать путь к этому файлу\r*    sendmail_path = "php -f c:\\Tools\\mailtool\\mailtool.php"\r*\r* 2. указать в переменной $mailDir путь к каталогу, куда будут складываться\r*    отправленные письма\r*/\r\r\r$mailDir = "c:\\\\server\\\\mail\\\\";\r$fileName = date('d.m.Y-H.i.s') . "[". round(microtime(), 3) ."]";\r\r// получаем поток\r$contents = file_get_contents("php://stdin");\r\r// Нужно все одиночные \ Заменить на \\r\\r$pattern = "/(\\\(\\\\r)?)|(\\\\r(\\\)?)/m";\r$replacement = "\\r\";\r$contents = preg_replace($pattern, $replacement, $contents);\r\r// запишем в файл\rfile_put_contents($mailDir . "{$fileName}.eml", $contents);\r\r?>\r
by
0 like 0 dislike
IndigoMail?
by
0 like 0 dislike
In Denwer ( www.denwer.ru/ ) implemented a stub. All mail is stored in a specific folder.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
asked Mar 28, 2019 by ASP
110,608 questions
257,186 answers
0 comments
28,892 users