Sendmail for Windows

Asked byhagay

Once upon a time I met a program, now I can't find it.
It works as a local mail server, but does not send all “sent” mail, but simply opens it in a separate window. It was very convenient to test mail sent from the site during development.
Maybe someone knows the name?

Answers

Replies:
habrahabr.ru/blogs/php/26518/ - see comments - preethy
YES !!! Thank you so much.
The program I was looking for - Test Mail Server Tool - denise
Test Mail Server Tool - the best. I open a letter in Thunderbird - danelle
tyler menz
<?php
/*
 * Скрипт перехватывает поток, предназначенный для программы sendmail
 * 
 * Настройка: 
 * 1. в php.ini прописать путь к этому файлу 
 *    sendmail_path = "php -f c:\Tools\mailtool\mailtool.php"
 * 
 * 2. указать в переменной $mailDir путь к каталогу, куда будут складываться 
 *    отправленные письма
 */


$mailDir = "c:\server\mail\";
$fileName = date('d.m.Y-H.i.s') . "[". round(microtime(), 3) ."]";

// получаем поток
$contents = file_get_contents("php://stdin");

// Нужно все одиночные 
Заменить на \r
$pattern = "/(
(\r)?)|(\r(
)?)/m"; $replacement = "\r
"; $contents = preg_replace($pattern, $replacement, $contents); // запишем в файл file_put_contents($mailDir . "{$fileName}.eml", $contents); ?>
jill lambert johnson
IndigoMail?
martinez
In Denwer (www.denwer.ru/) such a cap is implemented. All mail is stored in a separate folder.
Code folding in Netbeans (php)? :: HTC Desire size avatars? :: Virtualmin. Where can I get the devoltny config for Postfix? :: How to properly use the Zend Framework Programmer's Reference Guide? :: Sending letters through exim4 to a domain equal to the hostname, if the mx entry points to another host
Leave Repply forSendmail for Windows
Useful Links