• Hi,

    When sending messages via form plugins, the FROM address gets set in the form settings. However in the email header there is also a Sender value, that is set in the From value on the Message tab in SMTP Post SMTP.

    So for the normal user, they will see the correct From address in the email, however a tool I use uses the Sender field, and for all forms that is always the same address that’s set in the Post SMTP settings.

    Is there a way, some kind of hook, that I can use in code to change this FROM/Sender field ? That way I could code it that it will change the Sender depending on the form that was used.

    Thx for getting back to me!
    G.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support M Haseeb

    (@haseeb0001)

    @gleysen Hi,

    Hope you are doing good.

    Go to Post SMTP -> Settings -> Message -> Uncheck from Email Address field, Prevent plugins and themes from changing this and then check.

    Thanks

    Thread Starter gleysen

    (@gleysen)

    I already did that… It works to set the FROM property in the mail header… however there is also a SENDER property… and that always stays the same, and I want to be able to change the SENDER value to a different value for every form separately

    Plugin Support M Haseeb

    (@haseeb0001)

    @gleysen

    Ok share the Diagnostic test report of Post SMTP so then I can test this on my staging website.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set Sender address in code (depending on used form)’ is closed to new replies.