첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
if(Email.Default.IsComposeSupported)
{
    string[] recipientArray = new[] { "john@contoso.com", "jane@contoso.com" };
    string   subject        = "Hello friends!";
    string   body           = "It was great to see you last weekend. I've attached a photo of our adventures together.";

    EmailMessage message = new EmailMessage
    {
        To         = new List<string>(recipientArray),
        Subject    = subject,
        BodyFormat = EmailBodyFormat.PlainText,
        Body       = body
    };

    string filePath = Path.Combine(FileSystem.CacheDirectory, "memories.jpg");

    message.Attachments.Add(new EmailAttachment(filePath));

    await Email.Default.ComposeAsync(message);
}
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요