<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; Почтовый терминальный клиент - дайте совет.]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=8387</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8387&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Почтовый терминальный клиент - дайте совет.».]]></description>
		<lastBuildDate>Mon, 17 Jun 2013 14:09:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=73002#p73002</link>
			<description><![CDATA[<p><strong>dab00</strong><br />Я бы тоже предложил (у меня правда слегка пооптимизированней вариант с автоподстановкой портов и инпутбоксами). Но тут про терминал спросили. Видимо, нужно из окна консоли работать..</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Mon, 17 Jun 2013 14:09:00 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=73002#p73002</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72988#p72988</link>
			<description><![CDATA[<p>На VBS <a href="http://blog.daspot.ru/2012/02/e-mail-sms.html">вот так</a> можно, через CDO (Collaboration Data Objects):<br /></p><div class="codebox"><pre><code>
&#039;для примера используем сервер mail.ru
Const Login = &quot;mymyail@mail.ru&quot;
Const PW = &quot;mypassword&quot;
Const SMTPSrv = &quot;smtp.mail.ru&quot;
 
Set objMail = New MailNotification
&#039;можно изменить порт, аутентификацию, таймаут подключения,
&#039;кодировку и использовать SSL
&#039;With objMail
&#039; .Port = 465 &#039;gmail
&#039; .UseSSL = True
&#039;End With
&#039;можно добавить несколько вложений - вместо Nothing - какие-нибудь логи например
&#039;arrLogs = Array(&quot;c:\temp\1.log&quot;,&quot;c:\temp\2.log&quot;)
If objMail.Send(SMTPSrv, Login, PW, Login, &quot;Заголовок&quot;, &quot;Содержание&quot;, Nothing) Then
 MsgBox &quot;Сообщение отправлено&quot;, vbInformation
Else
 MsgBox &quot;Не удалось отправить сообщение&quot;, vbCritical
End If
Set objMail = Nothing
 
Class MailNotification
 Private m_Msg, m_Conf
 Private m_SMTPPort, m_SMTPAuth, m_SMTPUseSSL, m_SMTPTimeout, m_Charset
   
 Private Sub Class_Initialize()
  Set m_Msg = CreateObject(&quot;CDO.Message&quot;)
  Set m_Conf = CreateObject(&quot;CDO.Configuration&quot;)
  &#039;значения по умолчанию
  m_SMTPPort = 25 &#039;порт
  m_SMTPAuth = 1 &#039;базовая аутентификация    
  m_SMTPUseSSL = False &#039;не использовать SSL
  m_SMTPTimeout = 60 &#039;таймаут подключения
  m_Charset = &quot;windows-1251&quot; &#039;кодировка  
 End Sub
 Private Sub Class_Terminate()
  Set m_Msg = Nothing
  Set m_Conf = Nothing
 End Sub
  
 Public Property Let Port(i)
  m_SMTPPort = i
 End Property
 Public Property Let Auth(i)
  m_SMTPAuth = i
 End Property
 Public Property Let UseSSL(b)
  m_SMTPUseSSL = b
 End Property
 Public Property Let Timeout(i)
  m_SMTPTimeout = i
 End Property
 Public Property Let Charset(s)
  m_Charset = s
 End Property
  
 Public Function Send(sSMTPSrv, sLogin, sPW, sTo, sSubject, sBody, arrAttachment)
  On Error Resume Next
  With m_Conf.Fields
   &#039;значение 1, которое используется по умолчанию – использовать каталог Pickup
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 2
   &#039;1 - базовая аутентификация, 0 – без аутентификации (анонимно), 2 – аутентификация NTLM
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&quot;) = m_SMTPAuth
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) = sSMTPSrv
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot;) = m_SMTPPort
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusername&quot;) = sLogin
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendpassword&quot;) = sPW
   &#039;использовать ssl
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpusessl&quot;) = m_SMTPUseSSL
   &#039;таймаут
   .Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&quot;) = m_SMTPTimeout
   .Update
  End With
  With m_Msg
   .Configuration = m_Conf
   .From = sLogin
   .To = sTo  
   .Subject = sSubject
   .TextBody = sBody
   .Bodypart.Charset = m_Charset &#039; выставляем кодировку
   If IsArray(arrAttachment) Then
    For i = 0 To UBound(arrAttachment)
     .AddAttachment arrAttachment(i)
    Next
   End If
   .Send
  End With
  If Err.Number = 0 Then Send = True 
 End Function
End Class
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (dab00)]]></author>
			<pubDate>Mon, 17 Jun 2013 07:33:16 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72988#p72988</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72976#p72976</link>
			<description><![CDATA[<p>На форуме же было куча примеров на VBS и JS, связанных с отправкой почты. Зачем что-то стороннее искать?</p>]]></description>
			<author><![CDATA[null@example.com (JSmаn)]]></author>
			<pubDate>Sat, 15 Jun 2013 11:49:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72976#p72976</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72975#p72975</link>
			<description><![CDATA[<p>Да да да, из FARa выковыренный бы.</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Sat, 15 Jun 2013 07:18:57 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72975#p72975</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72972#p72972</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Парни, а есть у кого, консольный текстовый редактор?</p></blockquote></div><p>У меня, например, есть <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" />: <a href="http://www.farmanager.com/download.php?l=ru">Far Manager Official Site : загрузить</a>.</p><div class="quotebox"><blockquote><p>edit недостаточно консольный?</p></blockquote></div><p>Обычно подразумевают всё-таки Win32-приложения.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Fri, 14 Jun 2013 22:48:57 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72972#p72972</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72966#p72966</link>
			<description><![CDATA[<p>edit недостаточно консольный?</p>]]></description>
			<author><![CDATA[null@example.com (Serge Yolkin)]]></author>
			<pubDate>Fri, 14 Jun 2013 19:21:42 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72966#p72966</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72963#p72963</link>
			<description><![CDATA[<p>Парни, а есть у кого, консольный текстовый редактор?</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Fri, 14 Jun 2013 14:42:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72963#p72963</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72960#p72960</link>
			<description><![CDATA[<p>спасиб. за информацию комрады! -&nbsp; буду разбираться.</p>]]></description>
			<author><![CDATA[null@example.com (Dr.Hofmann)]]></author>
			<pubDate>Fri, 14 Jun 2013 11:00:09 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72960#p72960</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72933#p72933</link>
			<description><![CDATA[<div class="quotebox"><cite>isemen84 пишет:</cite><blockquote><p>Какие из них на русском?</p></blockquote></div><p>А на вьетнамском не надо?<br />Покажите мне консольные программы под Windows с синтаксисом, отличным от английского.</p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Thu, 13 Jun 2013 06:26:56 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72933#p72933</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72925#p72925</link>
			<description><![CDATA[<p>Какие из них на русском?</p>]]></description>
			<author><![CDATA[null@example.com (isemen84)]]></author>
			<pubDate>Wed, 12 Jun 2013 13:48:07 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72925#p72925</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72922#p72922</link>
			<description><![CDATA[<p><a href="http://www.softspecialists.com/DownloadHandler.ashx?pg=7ee0e215-f530-427c-957d-fc0b0546d95d&amp;section=a2fde6a7-e2e5-4409-be50-f0519ab65207&amp;file=eMail.zip">EMail</a><br /><a href="http://retired.beyondlogic.org/consulting/cmdlinemail/cmdlinemail.htm">bmail</a><br /><a href="http://sourceforge.net/projects/gbmailer/">gbmail</a> (аттач через текст/MIME)<br /><a href="http://virdi-software.com/vmailer/desc.shtml">VMailer</a> (аттач через текст/MIME)<br /><a href="http://caspian.dotconf.net/menu/Software/SendEmail/">SendEmail</a><br /><a href="http://www.mactechnologies.com/index.php?page=downloads#mtcmail">mtcmail</a></p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Wed, 12 Jun 2013 07:35:22 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72922#p72922</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72921#p72921</link>
			<description><![CDATA[<p><a href="http://www.interlog.com/~tcharron/getmail.html">GetMail for Windows</a>.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 11 Jun 2013 19:21:03 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72921#p72921</guid>
		</item>
		<item>
			<title><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72920#p72920</link>
			<description><![CDATA[<p><a href="http://www.blat.net/">blat</a> - Только отправка<br /><a href="http://www.infradig.com/command-line-email/download.html">Postie</a> - прием/отправка, платная.</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Tue, 11 Jun 2013 17:04:38 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72920#p72920</guid>
		</item>
		<item>
			<title><![CDATA[Почтовый терминальный клиент - дайте совет.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=72918#p72918</link>
			<description><![CDATA[<p>Всем привет!<br />Мне нужна command-line почтовая програмка которая выполнялась когда ее вызывают и закрывалась после успешной отправки сообщения. Под винды.<br />Возможности:<br />- отправлять вложения<br />- писать логи -&gt; отправлено/не отправлено<br />- если возможно хранить&nbsp; логин.пароль в зашифрованном виде</p><p>Кто чем пользуется?</p>]]></description>
			<author><![CDATA[null@example.com (Dr.Hofmann)]]></author>
			<pubDate>Tue, 11 Jun 2013 13:10:01 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=72918#p72918</guid>
		</item>
	</channel>
</rss>
