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

Add option to the Send-MTMail function to only create and return the HTML body #470

Open
magnusjak opened this issue Sep 16, 2024 · 3 comments
Labels
good first issue Good for newcomers

Comments

@magnusjak
Copy link

As #407 I also want to be able to send e-mails outside of this built-in method. So I modified the Send-MTMail function to have a 'CreateBodyOnly' switch that basically skips the mail-send and just returns the body it creates.

This way I can re-use the amazing HTML-body you guys have created, and add this into my own way of sending e-mails.
Or another choice would be to just create a separate function to create the body.

So people like me with this need don't have to manually update the module for each version released 😄

@merill
Copy link
Contributor

merill commented Nov 19, 2024

That's a neat idea.

@merill
Copy link
Contributor

merill commented Nov 19, 2024

Would you like to create a PR for this @magnusjak ?

@merill merill added the good first issue Good for newcomers label Nov 19, 2024
@magnusjak
Copy link
Author

Hi @merill and thanks for the response!
Actually, I already did :) in #539.

I ended up not commenting here about it since it automatically noted that i mentioned this issue in the PR.
Let me know if there's anything I can do better in the PR.

merill added a commit that referenced this issue Dec 8, 2024
…o-Send-MtMail

Added the 'CreateBodyOnly' parameter to Send-MtMail.ps1. #470
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants