Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field accessors for MailBuilder #260

Closed
andylibrian opened this issue Aug 14, 2022 · 1 comment
Closed

Field accessors for MailBuilder #260

andylibrian opened this issue Aug 14, 2022 · 1 comment

Comments

@andylibrian
Copy link
Contributor

andylibrian commented Aug 14, 2022

Hi, thanks for the project. It's really helpful.

What I want to do:

I want to access MailBuilder fields from other functions. Apparently the fields are private and there is no accessor available.

func SendEmail(mail *enmime.MailBuilder) error {
        bcc := mail.GetBcc()
}

What I expected:

I would like to access the fields before / without building the MIME part.

What I got:

No function

Release or branch I am using:

master

Note

If you agree to support this, I'm interested to submit a PR to implement it

@jhillyerd
Copy link
Owner

Sure, I'd accept a PR to add getter funcs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants