<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4442861564658029135.post9197474709039992775..comments</id><updated>2009-08-06T19:56:39.805-07:00</updated><title type='text'>Comments on Grinding-IT-Out: Powershell and E-mail</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://grinding-it-out.blogspot.com/feeds/9197474709039992775/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442861564658029135/9197474709039992775/comments/default'/><link rel='alternate' type='text/html' href='http://grinding-it-out.blogspot.com/2009/07/powershell-and-e-mail.html'/><author><name>Derek Mangrum</name><uri>http://www.blogger.com/profile/05932163848657045446</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4442861564658029135.post-8259146311194164533</id><published>2009-08-06T19:56:39.805-07:00</published><updated>2009-08-06T19:56:39.805-07:00</updated><title type='text'>The easiest way, I think, would be to create the b...</title><content type='html'>The easiest way, I think, would be to create the body of the e-mail in a variable.&lt;br /&gt;&lt;br /&gt;$body = &amp;quot;This is the body of the email, including the date, which is $(Get-Date)&amp;quot;&lt;br /&gt;&lt;br /&gt;You can pass any variable, cmdlet, etc. into this.&lt;br /&gt;&lt;br /&gt;Then, just use the $body var in the $mail.Body = statement.&lt;br /&gt;&lt;br /&gt;$mail.Body = $body</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442861564658029135/9197474709039992775/comments/default/8259146311194164533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442861564658029135/9197474709039992775/comments/default/8259146311194164533'/><link rel='alternate' type='text/html' href='http://grinding-it-out.blogspot.com/2009/07/powershell-and-e-mail.html?showComment=1249613799805#c8259146311194164533' title=''/><author><name>Derek Mangrum</name><uri>http://www.blogger.com/profile/05932163848657045446</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='06106917718758965303'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://grinding-it-out.blogspot.com/2009/07/powershell-and-e-mail.html' ref='tag:blogger.com,1999:blog-4442861564658029135.post-9197474709039992775' source='http://www.blogger.com/feeds/4442861564658029135/posts/default/9197474709039992775' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-4442861564658029135.post-511866960284428323</id><published>2009-08-06T18:59:53.488-07:00</published><updated>2009-08-06T18:59:53.488-07:00</updated><title type='text'>Any ideas on how to add a variable to the email bo...</title><content type='html'>Any ideas on how to add a variable to the email body ?&lt;br /&gt;&lt;br /&gt;I have a script that processes a third party csv file and AD information.  The csv file contains information on when their remote access tokens expire.  I would like to use this date in the email body.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4442861564658029135/9197474709039992775/comments/default/511866960284428323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4442861564658029135/9197474709039992775/comments/default/511866960284428323'/><link rel='alternate' type='text/html' href='http://grinding-it-out.blogspot.com/2009/07/powershell-and-e-mail.html?showComment=1249610393488#c511866960284428323' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://grinding-it-out.blogspot.com/2009/07/powershell-and-e-mail.html' ref='tag:blogger.com,1999:blog-4442861564658029135.post-9197474709039992775' source='http://www.blogger.com/feeds/4442861564658029135/posts/default/9197474709039992775' type='text/html'/></entry></feed>