Skip to content

[enhancement]Include sender in header for PostalAdapter #179

@xelasax

Description

@xelasax

If a settings param by name default_mail_sender exist or is not empty or null, it should be assigned to the header variable in the postal api.

+ if(!empty(Arr::get($this->config, 'default_mail_sender'))){
+       $message->sender(Arr::get($this->config, 'default_mail_sender'));
+}

This should come before the

  $message->send()

Also a modification to resources/views/email_services/options/postal.blade.php to include default_mail_sender

+ <x-sendportal.text-field name="settings[default_mail_sender]" :label="__('Default Sender Address')" :value="Arr::get($settings ?? [], 'default_mail_sender')" autocomplete="off" /> 

This will allow postal users send emails using the header parameter as verification for the MTA instead of the FROM.

This will enable users achieve proxy mailing. Example sent from [email protected] via mailer.absolute.com.
Screenshot 2023-01-09 005327

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions