<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blogotec, VMWare, Hyper-v, NetApp &#187; un</title>
	<atom:link href="http://www.blogotec.fr/tag/un/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogotec.fr</link>
	<description>VMware vSphere, Microsoft Hyper-v, NetApp, SCOM, Virtualisation</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:36:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Powershell : Comment envoyer un email en powershell</title>
		<link>http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-comment-envoyer-un-email-en-powershell</link>
		<comments>http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 12:26:43 +0000</pubDate>
		<dc:creator>Rémy</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[courriel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[envoyer]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[ps1]]></category>
		<category><![CDATA[un]]></category>

		<guid isPermaLink="false">http://www.blogotec.fr/?p=543</guid>
		<description><![CDATA[ Comment envoyer un email en powershell how to send e-main powershell using powershell Ci-dessous un petit script qui vous permet<a href="http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/" class="searchmore">Lire la suite...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<h1> Comment envoyer un email en powershell</h1>
<p>how to send e-main powershell using powershell</p>
<p>Ci-dessous un petit script qui vous permet d&#8217;envoyer des e-mails de puis un simple script powershell.<br />
<code><br />
$serveur = "monserveursmtp.domaine.com"<br />
$expediteur = "expe@domaine.com"<br />
$destinataire = "dest@domaine.com"<br />
$objet = "Objet du mail "<br />
$texte = " Texte de l'e-mail : Message envoyé par un script powershell "<br />
$message = new-object System.Net.Mail.MailMessage $expediteur, $destinataire, $objet, $texte<br />
$client = new-object System.Net.Mail.SmtpClient $serveur<br />
$client.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials$client.Send($message)<br />
</code><br />
Si vous souhaitez ajouter une piède jointe au mail, utilisez le script ci-dessous : <code><br />
$serveur = "monserveursmtp.domaine.com"<br />
$expediteur = "expe@domaine.com"<br />
$destinataire = "dest@domaine.com"<br />
$fichier = "c:\fichier.txt"<br />
$objet = "Objet du mail "<br />
$texte = " Texte de l'e-mail : Message envoyé par un script powershell "</code></p>
<div><code>$message = new-object System.Net.Mail.MailMessage $expediteur, $destinataire, $objet, $texte</code></div>
<div><code>$attachment = new-object System.Net.Mail.Attachment $fichier<br />
$message.Attachments.Add($attachment)<br />
$client = new-object System.Net.Mail.SmtpClient $serveur<br />
$client.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials</code></div>
<div><code>$client.Send($message)</code></div>
<div><code> </code></div>
<div>Rémy</div>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Powershell+%3A+Comment+envoyer+un+email+en+powershell&amp;link=http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/&amp;notes=%C2%A0Comment%20envoyer%20un%20email%20en%20powershell%0D%0Ahow%20to%20send%20e-main%20powershell%20using%20powershell%0D%0A%0D%0ACi-dessous%20un%20petit%20script%20qui%20vous%20permet%20d%27envoyer%20des%20e-mails%20de%20puis%20un%20simple%20script%20powershell.%0D%0A%0D%0A%24serveur%20%3D%20%22monserveursmtp.domaine.com%22%0D%0A%24expediteur%20%3D%20%22expe%40domaine.com%22%0D%0A%24destinataire%20%3D%20%22dest%40domain&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-mail">
			<a href="http://www.shareaholic.com/api/share/?title=Powershell%20%3A%20Comment%20envoyer%20un%20email%20en%20powershell&amp;link=http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/&amp;notes=%C2%A0Comment%20envoyer%20un%20email%20en%20powershell%0D%0Ahow%20to%20send%20e-main%20powershell%20using%20powershell%0D%0A%0D%0ACi-dessous%20un%20petit%20script%20qui%20vous%20permet%20d%27envoyer%20des%20e-mails%20de%20puis%20un%20simple%20script%20powershell.%0D%0A%0D%0A%24serveur%20%3D%20%22monserveursmtp.domaine.com%22%0D%0A%24expediteur%20%3D%20%22expe%40domaine.com%22%0D%0A%24destinataire%20%3D%20%22dest%40domain&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-printfriendly">
			<a href="http://www.shareaholic.com/api/share/?title=Powershell+%3A+Comment+envoyer+un+email+en+powershell&amp;link=http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/&amp;notes=%C2%A0Comment%20envoyer%20un%20email%20en%20powershell%0D%0Ahow%20to%20send%20e-main%20powershell%20using%20powershell%0D%0A%0D%0ACi-dessous%20un%20petit%20script%20qui%20vous%20permet%20d%27envoyer%20des%20e-mails%20de%20puis%20un%20simple%20script%20powershell.%0D%0A%0D%0A%24serveur%20%3D%20%22monserveursmtp.domaine.com%22%0D%0A%24expediteur%20%3D%20%22expe%40domaine.com%22%0D%0A%24destinataire%20%3D%20%22dest%40domain&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=236&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Send this page to Print Friendly">Send this page to Print Friendly</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Powershell+%3A+Comment+envoyer+un+email+en+powershell&amp;link=http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/&amp;notes=%C2%A0Comment%20envoyer%20un%20email%20en%20powershell%0D%0Ahow%20to%20send%20e-main%20powershell%20using%20powershell%0D%0A%0D%0ACi-dessous%20un%20petit%20script%20qui%20vous%20permet%20d%27envoyer%20des%20e-mails%20de%20puis%20un%20simple%20script%20powershell.%0D%0A%0D%0A%24serveur%20%3D%20%22monserveursmtp.domaine.com%22%0D%0A%24expediteur%20%3D%20%22expe%40domaine.com%22%0D%0A%24destinataire%20%3D%20%22dest%40domain&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-viadeo">
			<a href="http://www.shareaholic.com/api/share/?title=Powershell+%3A+Comment+envoyer+un+email+en+powershell&amp;link=http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/&amp;notes=%C2%A0Comment%20envoyer%20un%20email%20en%20powershell%0D%0Ahow%20to%20send%20e-main%20powershell%20using%20powershell%0D%0A%0D%0ACi-dessous%20un%20petit%20script%20qui%20vous%20permet%20d%27envoyer%20des%20e-mails%20de%20puis%20un%20simple%20script%20powershell.%0D%0A%0D%0A%24serveur%20%3D%20%22monserveursmtp.domaine.com%22%0D%0A%24expediteur%20%3D%20%22expe%40domaine.com%22%0D%0A%24destinataire%20%3D%20%22dest%40domain&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=92&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Viadeo">Share this on Viadeo</a>
		</li>
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Powershell+%3A+Comment+envoyer+un+email+en+powershell&amp;link=http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/&amp;notes=%C2%A0Comment%20envoyer%20un%20email%20en%20powershell%0D%0Ahow%20to%20send%20e-main%20powershell%20using%20powershell%0D%0A%0D%0ACi-dessous%20un%20petit%20script%20qui%20vous%20permet%20d%27envoyer%20des%20e-mails%20de%20puis%20un%20simple%20script%20powershell.%0D%0A%0D%0A%24serveur%20%3D%20%22monserveursmtp.domaine.com%22%0D%0A%24expediteur%20%3D%20%22expe%40domaine.com%22%0D%0A%24destinataire%20%3D%20%22dest%40domain&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D%2Bvia%2B%2540Shareaholic&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.blogotec.fr/powershell/powershell-comment-envoyer-un-email-en-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

