Comments (2)
That's weird. As far as I understand MimeKit.BodyBuilder you can set both and it's even preferred.
$BodyBuilder = [MimeKit.BodyBuilder]::new()
if ($HTML) {
$BodyBuilder.HtmlBody = $HTML
}
if ($Text) {
$BodyBuilder.TextBody = $Text
}
if ($Attachment) {
foreach ($A in $Attachment) {
$null = $BodyBuilder.Attachments.Add($A)
}
}
$Message.Body = $BodyBuilder.ToMessageBody()
You can even see example here: https://stackoverflow.com/questions/41160536/how-to-send-html-message-via-mimekit-mailkit/41166746 straight from author.
from mailozaurr.
Well it seems I'm blind.
You are absolutely correct.
from mailozaurr.
Related Issues (20)
- How to specify 'Encoding' when sending mail using '-graph' HOT 3
- How to get <CR><LF> in body text using plain ASCII input from file HOT 18
- FIlename containing ie round brackets dont show correctly in attachment
- Small problem with Email-name
- Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe HOT 3
- how to correctly download attachment HOT 7
- Is there any way how to get path to email item ? HOT 1
- MX Record IPAddress with -Separate HOT 5
- Get 403 after using Send-EmailMessage HOT 6
- From field should be mandatory
- If Path doesn't exists, an error occurs (attachments) HOT 1
- How to delete mail from IMAP ?
- Adapting "from" with custom name HOT 1
- Can't send attachment > 3Mb using Graph HOT 2
- SkipCertificateValidation => wrong naming HOT 2
- Feature Request: SkipCertificateCheck on Connect-IMAP/Connect-POP3
- Logging HOT 5
- Cannot update Mailozaurr 1.0.2 - not trusted any longer HOT 2
- Improve BIMI record analysis
- Domain Health-Check Idea
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailozaurr.