您好,我目前在发送电子邮件时遇到一些问题,当我执行heroku日志时,会给我这个错误:
ArgumentError (An SMTP From address is required to send a message. Set the message smtp_envelope_from, return_path, sender, or from address.):
我目前正在使用MailChimp的Mandrill作为我的邮件程序,这也是添加它的代码
if current_user.invite @user
set_activity(current_user, @user, "connection.request")
FriendshipMailer.requesting(current_user, @user).deliver
redirect_to user_path(@user), notice: "Successfully invited a user"
else
redirect_to user_path(@user), alert: "Error was encountered"
end
任何人都可以帮助我,因为idont知道该做什么我也添加了什么,因为我在rails 4中相当新,并且有点被命令所困惑,任何帮助都将非常感谢并感谢!