• I’m failing to find the source but I thought you could overwrite the sender address by passing the new one through the header vars.

    We have quite a few clients that ask for things like info@ for information services, jobs@ for job listings, etc, but this plugin only allows one config option. Now, I get that part. Sure, only define one system address. But why not allow us to override the from address so long as it is an address that has a verified signature?

    Or can I do it? I tried using something like this:
    $headers = "From:Some Company <[email protected]>\r\n";

    but clearly that didn’t do it. I tried trolling around in the plugin’s source and it does look like the sender address is pretty static.

    Is there a way to override the system from address?

    https://www.ads-software.com/plugins/postmark-approved-wordpress-plugin/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I have no problem to override the system from address with any contact form plugin which works well.

    So just check that header if it’s the right format.
    From their API, it should be something like this
    “From”: “John Smith <[email protected]>” but I am not familiar with this. Just notice, that you can override the sender.

    Thread Starter solisis

    (@solisis)

    That’s exactly what I’m doing. I cannot use a plugin. it has to go through the wp_mail() function as stated in this plugin’s docs. The forms are complex and require additional processing, which goes beyond the scope of all contact plugins.

    Chances are yours may be working because the plugins bypass wp_mail and shoot straight from php’s mail() function, which is also not an option in my case because mail() is disabled on the system and we have no authority to override that, which is why we use postmark.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Overriding From Address (multiple signatures defined)’ is closed to new replies.