我从数据库中获取了以下记录
post_name post_detail Technology
SE Software Enginner C,Java
SSE Senior Software Engineer C,Java,PHP
TL Tech Lead ios
现在我有3个用户让X,Y,Z
我需要以下列格式向每位用户发送电子邮件
用户X邮件模板
Software Engineer | C,Java
Need a Software Engineer for C and Java and PHP
Tech Lead | Ios
Need a Tech lead for ios
用户Y邮件模板
Senior Software Engineer | C,Java,PHP
Need a Senior Software Engineer for C and Java
Tech Lead | Ios
Need a Tech lead for ios
我尝试使用for循环发送电子邮件,但我无法以上述格式发送电子邮件,我一次只能向用户发送一份作业(如果我有三个用户的作业,那么我必须发送每个作业的三封邮件)我想通过一封电子邮件将所有提取的作业以上述格式发送给用户。
提前致谢!!