<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Почтовый терминальный клиент - дайте совет.]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=8387&amp;type=atom" />
	<updated>2013-06-17T14:09:00Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=8387</id>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=73002#p73002" />
			<content type="html"><![CDATA[<p><strong>dab00</strong><br />Я бы тоже предложил (у меня правда слегка пооптимизированней вариант с автоподстановкой портов и инпутбоксами). Но тут про терминал спросили. Видимо, нужно из окна консоли работать..</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2013-06-17T14:09:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=73002#p73002</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72988#p72988" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dab00]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27085</uri>
			</author>
			<updated>2013-06-17T07:33:16Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72988#p72988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72976#p72976" />
			<content type="html"><![CDATA[<p>На форуме же было куча примеров на VBS и JS, связанных с отправкой почты. Зачем что-то стороннее искать?</p>]]></content>
			<author>
				<name><![CDATA[JSmаn]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24434</uri>
			</author>
			<updated>2013-06-15T11:49:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72976#p72976</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72975#p72975" />
			<content type="html"><![CDATA[<p>Да да да, из FARa выковыренный бы.</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2013-06-15T07:18:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72975#p72975</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72972#p72972" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-06-14T22:48:57Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72972#p72972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72966#p72966" />
			<content type="html"><![CDATA[<p>edit недостаточно консольный?</p>]]></content>
			<author>
				<name><![CDATA[Serge Yolkin]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27503</uri>
			</author>
			<updated>2013-06-14T19:21:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72966#p72966</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72963#p72963" />
			<content type="html"><![CDATA[<p>Парни, а есть у кого, консольный текстовый редактор?</p>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2013-06-14T14:42:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72963#p72963</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72960#p72960" />
			<content type="html"><![CDATA[<p>спасиб. за информацию комрады! -&nbsp; буду разбираться.</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-06-14T11:00:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72960#p72960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72933#p72933" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>isemen84 пишет:</cite><blockquote><p>Какие из них на русском?</p></blockquote></div><p>А на вьетнамском не надо?<br />Покажите мне консольные программы под Windows с синтаксисом, отличным от английского.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2013-06-13T06:26:56Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72933#p72933</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72925#p72925" />
			<content type="html"><![CDATA[<p>Какие из них на русском?</p>]]></content>
			<author>
				<name><![CDATA[isemen84]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30276</uri>
			</author>
			<updated>2013-06-12T13:48:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72925#p72925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72922#p72922" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2013-06-12T07:35:22Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72922#p72922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72921#p72921" />
			<content type="html"><![CDATA[<p><a href="http://www.interlog.com/~tcharron/getmail.html">GetMail for Windows</a>.</p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2013-06-11T19:21:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72921#p72921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72920#p72920" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[DnsIs]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26282</uri>
			</author>
			<updated>2013-06-11T17:04:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72920#p72920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Почтовый терминальный клиент - дайте совет.]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=72918#p72918" />
			<content type="html"><![CDATA[<p>Всем привет!<br />Мне нужна command-line почтовая програмка которая выполнялась когда ее вызывают и закрывалась после успешной отправки сообщения. Под винды.<br />Возможности:<br />- отправлять вложения<br />- писать логи -&gt; отправлено/не отправлено<br />- если возможно хранить&nbsp; логин.пароль в зашифрованном виде</p><p>Кто чем пользуется?</p>]]></content>
			<author>
				<name><![CDATA[Dr.Hofmann]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=29448</uri>
			</author>
			<updated>2013-06-11T13:10:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=72918#p72918</id>
		</entry>
</feed>
