Comments on: Send-MailMessage – Exchange 2007 sp2 and Exchange 2010/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/Microsoft Exchange & OWA Resources, Information - Optimize, Support, Manage | How-To | Guides | Reference | AdminThu, 05 Aug 2010 09:41:37 +0000hourly1http://wordpress.com/By: Krishna/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-152Thu, 05 Aug 2010 09:41:37 +0000/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-152Hi Chandran,

You shold be able to use multiple lines. Below is the example of how you can use html with multiline

$BodyMessage = @”
This is the test body of the message with multiline.. wanted to test on this This data will be printed on the next line “@

Send-MailMessage –From Krishna.k@domain.com –To Rajesh@domain.com –Subject “Send-MailMessage Test” –Body $BodyMessage -Attachments “c:\Attachment.txt” –SmtpServer Hubserver.domain

Below link has some details on html sytax

Exchange 2007/2010 – Custom System message – HTML format

Please Let me know if you need any more information..
Regards,
Krishna

]]>
By: Chandran/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-151Wed, 04 Aug 2010 12:48:08 +0000/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-151Hi,

Thanks, its a cool option i was looking for.

How can we add multiple lines to the body (i.e. one sentence in the first line and second sentence in second line)

]]>
By: lee/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-107Thu, 29 Apr 2010 18:10:33 +0000/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-107Hi Krishna:

Good command but I am having an error from powershell in exchange 2010. Send-MailMessage : Service not available, closing transmission channel. The server response was: 4.3.2 Service not available

Any ideas
lee

]]>
By: Krishna/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-106Wed, 28 Apr 2010 14:37:33 +0000/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-106In reply to lz.

Hi,

STMP Server is hub 🙂

Regards,
Krishna

]]>
By: lz/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-105Tue, 27 Apr 2010 16:03:42 +0000/2009/11/26/send-mailmessage-exchange-207-sp2-and-exchange-2010/#comment-105hi, if on Exchange 2010, param -SmtpServer is hub server or CAS server? thanks.

]]>