mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-04-24 00:30:34 +02:00
print inline attachments in the dev mail send
This commit is contained in:
parent
3e5e02a32c
commit
0d720c3c9d
@ -601,6 +601,14 @@ func (app *BaseApp) NewMailClient() mailer.Mailer {
|
|||||||
fmt.Fprintf(mailLog, "├─ Attachments: %v\n", attachmentKeys)
|
fmt.Fprintf(mailLog, "├─ Attachments: %v\n", attachmentKeys)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(ae.Message.InlineAttachments) > 0 {
|
||||||
|
attachmentKeys := make([]string, 0, len(ae.Message.InlineAttachments))
|
||||||
|
for k := range ae.Message.InlineAttachments {
|
||||||
|
attachmentKeys = append(attachmentKeys, k)
|
||||||
|
}
|
||||||
|
fmt.Fprintf(mailLog, "├─ InlineAttachments: %v\n", attachmentKeys)
|
||||||
|
}
|
||||||
|
|
||||||
const indentation = " "
|
const indentation = " "
|
||||||
if ae.Message.Text != "" {
|
if ae.Message.Text != "" {
|
||||||
textParts := strings.Split(strings.TrimSpace(ae.Message.Text), "\n")
|
textParts := strings.Split(strings.TrimSpace(ae.Message.Text), "\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user