KostyaEsmukov/smtp_to_telegram

Can send picture ?

phicha20224 opened this issue · 1 comments

how to send picture ?
Thank You

Both inline and attachment would work:

// inline image
m.Embed("inline.jpg", goMailBody([]byte("JPG")))
// attachment image
m.Attach("attachment.jpg", goMailBody([]byte("JPG")))