Skip to content

Cannot add attachment on iOS #109

@pirhano

Description

@pirhano

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.

Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.

Bug Information

Version Number of Plugin: 5.2.0

Device Tested On: iPad v 12

Simulator Tested On:

Version of VS: 2017

Version of Xamarin: 4.11

Versions of other things you are using:

Steps to reproduce the Behavior

Expected Behavior

pop up email with attachment

Actual Behavior

the email setup without attachment

Code snippet

      _emailMessenger = CrossMessaging.Current.EmailMessenger;

        var email = new EmailMessageBuilder().To(to)
            .Subject(subject)
            .Body(body)
            .WithAttachment(zipPath, "application/zip")
            .Build();
        var fileEx = File.Exists(zipPath);
        if (_emailMessenger.CanSendEmail && _emailMessenger.CanSendEmailAttachments)
        {
            _emailMessenger.SendEmail(email);
        }

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions