Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Email 无法使用sendgrid通过发送CSV/文本文件_Email_Csv_Email Attachments_Sendgrid - Fatal编程技术网

Email 无法使用sendgrid通过发送CSV/文本文件

Email 无法使用sendgrid通过发送CSV/文本文件,email,csv,email-attachments,sendgrid,Email,Csv,Email Attachments,Sendgrid,我在spring boot项目中使用sendgrid(2.2.2版本)发送包含附件的电子邮件(要求-发送CSV文件) SendGrid.Email有三种方法: email.addAttachment(字符串名称,字符串文件)-以名称和文件路径作为内容的CSV文件 email.addAttachment(字符串名称,文件文件)-未发现包含逗号分隔内容的CSV/文本文件与邮件一起附加。 但是,邮件中会附加一个包含一些垃圾邮件数据的示例文本文件 我做错了什么 谢谢, Harsha你能显示你的代码吗?代

我在spring boot项目中使用sendgrid(2.2.2版本)发送包含附件的电子邮件(要求-发送CSV文件)

SendGrid.Email有三种方法:

email.addAttachment(字符串名称,字符串文件)-以名称和文件路径作为内容的CSV文件

email.addAttachment(字符串名称,文件文件)-未发现包含逗号分隔内容的CSV/文本文件与邮件一起附加。 但是,邮件中会附加一个包含一些垃圾邮件数据的示例文本文件

我做错了什么

谢谢,
Harsha

你能显示你的代码吗?代码正在设置附件?代码不起作用。不看你写的东西就很难猜出哪里错了