Embedding a sender mail in email Task

crazygangcrazygang BDMember ✭✭

Hi. I have used the library Messaging Plugin for Xamarin to implement the following functionality. I have the following code which I want to send a file as an attachment to an email support upon a button click. But one thing I note is that there are no sender method where I can put the sender's email. Any help on this on how can I implement this ? Thanks in advance.

            if (emailTask.CanSendEmail)
            {
                var email = new EmailMessageBuilder()
                    .To("[email protected]")
                    .Subject("Testing Mail")
                    .Body("An Email with attachment")
                    .WithAttachment(path)
                    .Build();

                emailTask.SendEmail(email);
            }
Sign In or Register to comment.