demand: send birthday cards on employees" birthdays
- birthday cards (with different subjects each month) are made and uploaded in the system. Birthday cards are composed of problems and pictures, the text floats on the pictures, and the text field is replaced with the corresponding name
- replace text
- send regularly
Plan: replacement text is replaced by freemarker, mail is sent using springboot mail service (content format is HTML format, pictures are inserted in the corresponding location), and a scheduled task is written for scheduled delivery
question: the card is in the making of birthday cards
problem description:
1, initially intended to use a rich text editor, but found that the rich text editor can not float the text on the picture
2, write a div, to set its background, add a textarea, to set the background is transparent, but you can achieve text floating on the picture, but can not set fonts and other properties, do not know how to transfer to the back end and maintain the format unchanged.
finally: do not know how other companies" solutions are implemented, please do not hesitate to comment!