SendGrid API を使用するカスタム メール ヘッダーを作成しようとしています。
これが私がやっていることですが、うまくいきません:
class Mailman < ActionMailer::Base
default :from => "info@sample.com"
def send_message(name, email, message)
@name = name
@email = email
@message = message
mail(:to => 'info@sample.com',
:from => email,
:subject => "Message from the site",
:headers['X-SMTPAPI'] => "category: Drip Email"
)
end
end
どんな助けでも感謝します。
ありがとう、アダム