<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBScript: автоматическая отправка письма]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=8</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBScript: автоматическая отправка письма».]]></description>
		<lastBuildDate>Thu, 24 Jan 2008 19:34:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBScript: автоматическая отправка письма]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=8293#p8293</link>
			<description><![CDATA[<p>Вставка картинки в тело письма:<br /></p><div class="codebox"><pre><code>Set Message = CreateObject(&quot;CDO.Message&quot;) 
Message.To = &quot;to@bk.ru&quot;
Message.From = &quot;from@bk.ru&quot;
Message.Subject = &quot;Тема&quot;
Message.BodyPart.Charset = &quot;windows-1251&quot;
Message.AddRelatedBodyPart &quot;C:\Windows\Web\WallPaper\Windows XP.jpg&quot;, &quot;pic&quot;, 1
Message.htmlbody = &quot;&lt;HTML&gt;Текст сообщения&lt;BR&gt;&lt;img src=&quot;&quot;pic&quot;&quot;&gt;&lt;/HTML&gt;&quot;

Set iConf = CreateObject(&quot;CDO.Configuration&quot;)
Set Flds = iConf.Fields
Flds.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 2
Flds.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) = &quot;smtp.bk.ru&quot;
Flds.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&quot;) = 10
Flds.Update
Message.Configuration = iConf

Message.Send</code></pre></div><p>Благодарность за идею - <strong>Xameleon</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (The gray Cardinal)]]></author>
			<pubDate>Thu, 24 Jan 2008 19:34:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=8293#p8293</guid>
		</item>
		<item>
			<title><![CDATA[VBScript: автоматическая отправка письма]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=18#p18</link>
			<description><![CDATA[<p>Отправка письма с вложением с помощью библиотеки CDO (библиотека входит в поставку MS Outlook и устанавливается из дистрибутива MS Outlook - компонент &quot;Collaboration Data Objects&quot; или &quot;Объекты для совместной работы&quot;). На сервере вполне возможна установка <strong>только</strong> этого компонента MS Office.<br /></p><div class="codebox"><pre><code>Call SendPost(&quot;smtp.mail.ru&quot;, &quot;to@mail.ru&quot;, &quot;from@mail.ru&quot;, &quot;Subj&quot;, &quot;Body&quot;)
Function SendPost(strSMTP_Server, strTo, strFrom, strSubject, strBody)
    Set iMsg = CreateObject(&quot;CDO.Message&quot;)
    Set iConf = CreateObject(&quot;CDO.Configuration&quot;)
    Set Flds = iConf.Fields
    Flds.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 2
    Flds.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) = strSMTP_Server
    Flds.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&quot;) = 10
    Flds.Update
    iMsg.Configuration = iConf
    iMsg.To = strTo
    iMsg.From = strFrom
    iMsg.Subject = strSubject
    iMsg.TextBody = strBody
    iMsg.AddAttachment &quot;C:\boot.ini&quot;
    iMsg.Send
End Function</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (The gray Cardinal)]]></author>
			<pubDate>Fri, 07 Jul 2006 15:14:19 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=18#p18</guid>
		</item>
	</channel>
</rss>
