Send an image in an email with Grails

后端 未结 3 1928
攒了一身酷
攒了一身酷 2020-12-30 16:28

I am using the Grails mail plugin to send emails and I want to send images in the body of the email, not as attachment. What I want is for images to be shown in the email bo

3条回答
  •  时光说笑
    2020-12-30 17:06

    In general, most "newsletter" type emails are just HTML emails and don't in-line the images within the body of the emails. In fact, many email servers will outright reject emails that are too big, and putting the image data inside the body of the email can easily run this risk.

    Instead, the way to do with this is to just have HTML emails with the images you wish to include as normal HTML image links.

    Please refer to the Mail plugin documentation for more info on how to send HTML emails.

提交回复
热议问题