Swiftpack.co -  0xLeif/EmailCourier as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
0xLeif/EmailCourier
Just MFMailComposeViewController
.package(url: "https://github.com/0xLeif/EmailCourier.git", from: "0.1.0")

EmailCourier

Just MFMailComposeViewController

Create an Email

let email = Email(
    recipients: "some@email.com",
    sender: "me@email.com",
    subject: "Important Subject!",
    message: "Lorem Ipsum health is wealth buckwheat freekeh corn whole wheat health is wealth parma sheese nutrisoya soy coconut trader joe's lightlife's teese rice dream nut lightlife's smart bacon sheese tofu"
)

Email init

init(
    recipients: String...,
    ccRecipients: [String]? = nil,
    bccRecipients: [String]? = nil,
    sender: String? = nil,
    subject: String? = nil,
    message: String? = nil,
    isMessageBodyHTML: Bool = false,
    attachments: [EmailAttachment]? = nil
)

Send an Email

try EmailController(presentingViewController: self).send(email: email)

GitHub

link
Stars: 3
Last commit: 5 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

🔵 👖
5 days ago

EmailCourier

Just MFMailComposeViewController

Create an Email

let email = Email(
    recipients: "some@email.com",
    sender: "me@email.com",
    subject: "Important Subject!",
    message: "Lorem Ipsum health is wealth buckwheat freekeh corn whole wheat health is wealth parma sheese nutrisoya soy coconut trader joe's lightlife's teese rice dream nut lightlife's smart bacon sheese tofu"
)

Email init

init(
    recipients: String...,
    ccRecipients: [String]? = nil,
    bccRecipients: [String]? = nil,
    sender: String? = nil,
    subject: String? = nil,
    message: String? = nil,
    isMessageBodyHTML: Bool = false,
    attachments: [EmailAttachment]? = nil
)

Send an Email

try EmailController(presentingViewController: self).send(email: email)

emojvar: ⭕️.🦺.🐌

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API