<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; VBS: Отправка почты с содержимым файла в теле почты]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10666&amp;type=atom" />
	<updated>2015-05-26T10:29:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10666</id>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Отправка почты с содержимым файла в теле почты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94210#p94210" />
			<content type="html"><![CDATA[<p>Все работает. Большое спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Александр_foxware]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26976</uri>
			</author>
			<updated>2015-05-26T10:29:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94210#p94210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: VBS: Отправка почты с содержимым файла в теле почты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94209#p94209" />
			<content type="html"><![CDATA[<p>CreateObject(&quot;Scripting.FileSystemObject&quot;).OpenTextFile(&quot;C:\1.txt&quot;).ReadAll вместо &quot;BodyMail&quot;.</p>]]></content>
			<author>
				<name><![CDATA[Flasher]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27593</uri>
			</author>
			<updated>2015-05-26T09:37:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94209#p94209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[VBS: Отправка почты с содержимым файла в теле почты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=94208#p94208" />
			<content type="html"><![CDATA[<p>Добрый день!</p><p>Подскажите возможно ли вставить содержимое текстового файла ( например по пути &quot;C:\1.txt&quot; ) в тело сообщения электронной почты в данном скрипте:</p><div class="codebox"><pre><code>

























Dim o_Mess, v_Conf
v_Conf = &quot;http://schemas.microsoft.com/cdo/configuration/&quot;
Set o_Mess = CreateObject(&quot;CDO.Message&quot;)
With o_Mess
    .To = &quot;support@apple.com&quot; &#039;куда отправляем
    .From = &quot;Alex &lt;xxx@yandex.ru&gt;&quot; &#039;имя отправителя + Email
    .Subject = &quot;Subj&quot; &#039;Тема письма
    .TextBody = &quot;BodyMail&quot; &#039;Сообщение
    .AddAttachment &quot;C:\RemoveDrive.exe&quot; &#039;Прикрепить файл
    .TextBodyPart.Charset = &quot;windows-1251&quot; &#039;русская кодировка
With .Configuration.Fields
    .Item(v_Conf &amp; &quot;sendusing&quot;) = 2 &#039;без использования каталога Server Exchange
    .Item(v_Conf &amp; &quot;smtpserver&quot;) = &quot;smtp.yandex.ru&quot; &#039;Адрес SMTP-сервера
    .Item(v_Conf &amp; &quot;smtpauthenticate&quot;) = 1 &#039;Тип авторизации
    .Item(v_Conf &amp; &quot;sendusername&quot;) = &quot;xxx&quot; &#039;здесь имя пользователя без @
    .Item(v_Conf &amp; &quot;sendpassword&quot;) = &quot;pass&quot; &#039;пароль
    .Item(v_Conf &amp; &quot;smtpserverport&quot;) = 25 &#039;порт (альтернативный - 465)
    .Item(v_Conf &amp; &quot;smtpusessl&quot;) = False &#039;использовать ли шифрованое подключение SSL
    .Item(v_Conf &amp; &quot;smtpconnectiontimeout&quot;) = 60 &#039;Время до завершения повторных попыток подключения
    .Update
End With
    .send
End With
Set o_Mess = Nothing
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Александр_foxware]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26976</uri>
			</author>
			<updated>2015-05-26T09:19:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=94208#p94208</id>
		</entry>
</feed>
