Microsoft.Protocols.TestSuites.Common.Common.CreateMeetingRequestMime C# (CSharp) Method

CreateMeetingRequestMime() public static method

Create a meeting request mime
public static CreateMeetingRequestMime ( string from, string to, string subject, string body, string icalendarContent ) : string
from string The from address of mail
to string The to address of the mail
subject string The subject of the mail
body string The body content of the mail
icalendarContent string The content of iCalendar required by this meeting
return string
        public static string CreateMeetingRequestMime(string from, string to, string subject, string body, string icalendarContent)
        {
            string meetingRequestMime =
@"From: {0}
To: {1}
Subject: {2}
Content-Type: multipart/alternative;
    boundary=""---Next Part---""
MIME-Version: 1.0

-----Next Part---
Content-Type: text/plain; charset=""us-ascii""

{3}

-----Next Part---
Content-Type: text/calendar; charset=""us-ascii""; method=REQUEST

{4}

";
            return FormatString(meetingRequestMime, from, to, subject, body, icalendarContent);
        }
Common