<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: отправка писем адресату]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5724&amp;type=atom" />
	<updated>2011-04-26T09:12:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5724</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47833#p47833" />
			<content type="html"><![CDATA[<p>Мне кажется я сделал немного проще.<br /></p><div class="quotebox"><blockquote><p>Loop,<br />{<br />IfExist, A_WorkingDir\текстСообщения.txt<br />run, blat.exe текстСообщения.txt -q -server smtp.yandex.ru -port 587 -u ВАШ_ЛОГИН -pw ВАШ_ПАРОЛЬ<br /> -to ПОЛУЧАТЕЛЬ@gmail.com -f ВАШ_ЛОГИН@yandex.ru -s ТЕМА -log log.txt<br />IfNotExist, A_WorkingDir\текстСообщения.txt<br />sleep, 10000<br />	}</p></blockquote></div><p>Таким образом у меня идет постоянная проверка на наличие файла с сообщением <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" />. Может быть можно было как то по другому это воплотить в жизнь, но моих способностей хватило пока, что только на это <img src="//forum.script-coding.com/img/smilies/tongue.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-26T09:12:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47833#p47833</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47802#p47802" />
			<content type="html"><![CDATA[<p>Нужно создать таймер с командой <strong><a href="http://script-coding.com/AutoHotkey/IfExistIfNotExist.html">IfExist</a></strong> или функцией <a href="http://script-coding.com/AutoHotkey/IfExistIfNotExist.html"><strong>FileExist(</strong>FilePattern<strong>)</strong></a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-25T12:13:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47802#p47802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47800#p47800" />
			<content type="html"><![CDATA[<p>Подскажите пожалуйста. Возможно ли сделать так, что бы команда RUN производилась по выполнению определенного условия. А именно появления в папке C:\Dir\ файла text.txt?</p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-25T11:16:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47800#p47800</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47621#p47621" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>DaVinchi пишет:</cite><blockquote><p>Оформить посторался, не знаю как вышло, очень спешил <img src="//forum.script-coding.com/img/smilies/tongue.png" width="15" height="15" /></p></blockquote></div><p><strong>DaVinchi</strong>, <a href="http://forum.script-coding.com/viewtopic.php?pid=47593#p47593">ещё раз</a> (надеюсь, последний) напоминаю о правильном написании &quot;AHK&quot;. Отредактируй свой пост.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-14T20:27:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47621#p47621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47620#p47620" />
			<content type="html"><![CDATA[<p>Спасибо. Я действительно не корректно ставил запрос и поэтому ничего не нашел.<br />Возможно кто то столкнется с подобной ситуацией и ему понадобится, я напишу что нашел.<br />Так как и в первом посте написано, я хотел связать AHK с консольным почтовиком <a href="http://www.blat.net">Blat</a>. В его состав входит 3 файла: blat.exe, blat.lib, blat.dll.<br />Распакуем в папку и там же добавим файл со скриптом следующего содержания:<br /></p><div class="codebox"><pre><code>run, blat.exe текстСообщения.txt -q -server smtp.yandex.ru -port 587 -u ВАШ_ЛОГИН -pw ВАШ_ПАРОЛЬ
 -to ПОЛУЧАТЕЛЬ@gmail.com -f ВАШ_ЛОГИН@yandex.ru -s ТЕМА -log log.txt</code></pre></div><p><em>ВЕЗДЕ ГДЕ НАПИСАНО <strong>ВАШ_ЛОГИН</strong> И <strong>ВАШ_ПАРОЛЬ</strong>, НАДО НАПИСАТЬ ЛОГИН И ПАРОЛЬ ОТ ДЕЙСТВУЮЩЕГО МЕЙЛА, С КОТОРОГО БУДЕТ ИДТИ ОТПРАВКА!!!</em><br />Порт 587 это для яндекса, видел что вроде как по умолчанию почтовики используют 25й порт. текстСообщения.тхт это файл содержащий нужное вам сообщение(у меня оно постоянно разно - это IP). Но так же можно вместо файла с тхт использовать построение сообщения (читаем синтаксис на домашнем сайте производителя почтовика!). Скажу лишь, что прикрепляется файл следующим образом: <strong>-attach ваш_файл</strong> (файл должен лежать в папке с почтовиком, либо пишите точный адрес!!!).<br />Так же Регистр <strong>-q</strong> делает невидным действия почтовика в консольном оконе, т.е. будет окно cmd пустым до тех пор, пока не отправится письмо. После же будет просто закрыто!<br /><strong>-log</strong> это регистр записи лога, записывающегося в файл log.tx. Это может вам и не нужно. Я просто долго мучался и мне было удобно видеть результат, прошло письмо или какая то ошибка. Можно удалить если пожелаете=)<br />Оформить посторался, не знаю как вышло, очень спешил <img src="//forum.script-coding.com/img/smilies/tongue.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-14T19:20:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47620#p47620</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47615#p47615" />
			<content type="html"><![CDATA[<p><strong>DaVinchi</strong>, Вы пробовали перебирать ссылки по такому запросу: <a href="http://www.google.ru/search?hl=ru&amp;newwindow=1&amp;safe=off&amp;client=firefox&amp;hs=XDg&amp;rls=org.mozilla%3Aru%3Aofficial&amp;q=AutoHotKey+SMTP+mail&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=">AutoHotKey SMTP mail</a>?</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2011-04-14T11:24:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47615#p47615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47604#p47604" />
			<content type="html"><![CDATA[<p>Я лично не в курсе.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-14T06:56:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47604#p47604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47601#p47601" />
			<content type="html"><![CDATA[<p>Подскажите - это вообще реально? Или может лучше бросить эту затею и взять сорсы с С++, которых куча в свободном плавании по интернету можно найти?</p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-14T06:36:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47601#p47601</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47593#p47593" />
			<content type="html"><![CDATA[<p><span style="color: green">Всё-таки лучше писать AHK. Я поправил твой пост.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-13T18:54:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47593#p47593</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: отправка писем адресату]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47571#p47571" />
			<content type="html"><![CDATA[<p>Возможно ли AHK научить отправлять письма с прикрепленными файлами? Я видел только привязку к Бату, но это не серьезно=). Возможно можно научить AHK работать с Blat (консольный почтовик. Маленький, незаметный, быстрый). По мне так это хорошая альтернатива Бату.</p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-04-12T18:26:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47571#p47571</id>
		</entry>
</feed>
