PHP MYSQL 将文本区域文本附加到电子邮件
我正在开发一个 PHP MYSQL 项目工作板,它需要我将简历上传或保存到数据库中。
我想将文本区域 (CV) 字段中的文本附加到电子邮件中并发送给用户。
如何将文本区域文本附加为文档并通过电子邮件发送?
I'm working on a PHP MYSQL project Job board which requires me to upload or save CV into database.
I would like to attach text from a textarea (CV) field to an email and send to user.
How can I attach textarea text as a doc and send it with email?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从数据库中获取简历并保存到 tmp 文件夹。使用邮件库,例如 PHPMailer 或 Swift Mailer 用于撰写和添加附件。
使用这些电子邮件库之一可以大大简化该过程。例如,使用 PHPMailer,发送电子邮件将包括:
Grab the CV from the database and save to tmp folder. Use a mail library such as PHPMailer or Swift Mailer to compose and add the attachment.
Using one of these email libraries greatly simplifies the process. For instance, using PHPMailer, sending an email would comprise: