我正在使用Mail Gem发送电子邮件。我正在尝试.PNG
使用如下内联图像标签发送文件
record_stream << "<br /> <p>Jeff added an image today.</p>"
.concat( "<img src="pngImagePath" /> " )
mail = Mail.new do
from 'from@gmail.com'
to 'some@gmail.com'
subject "Automated Report
html_part do
body "<i>This is an automated email. All data in this email was generated automatically.</i>
#{record_stream}
"
end
end #### End of mailer
但是当我检查我的gmail时record_stream
没有出现。既不是字符串也不是图像。我想在电子邮件正文中显示两者。任何帮助将不胜感激。谢谢