SendGrid APIを使用するカスタムメールヘッダーを作成しようとしています。カスタムメールヘッダーの作成方法
class Mailman < ActionMailer::Base
default :from => "[email protected]"
def send_message(name, email, message)
@name = name
@email = email
@message = message
mail(:to => '[email protected]',
:from => email,
:subject => "Message from the site",
:headers['X-SMTPAPI'] => "category: Drip Email"
)
end
end
すべてのヘルプは感謝:が、その動作していない -
は、ここで私がやっているものです。あなたがactionmailerのの#headersメソッドを使用することができます
おかげで、 アダム
ありがとうリカルド - 私の顔の前に答えがありました。私はこれを試して、それを働かせました。その後、私の解決策を確認した投稿をしました。再度、感謝します。 – Northband
ニース!フィードバックをお寄せいただきありがとうございます。 –
これは私には役に立たなかった。私の答えを見てください! –