Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]Include sender in header for PostalAdapter #179

Open
xelasax opened this issue Jan 9, 2023 · 0 comments
Open

[enhancement]Include sender in header for PostalAdapter #179

xelasax opened this issue Jan 9, 2023 · 0 comments

Comments

@xelasax
Copy link

xelasax commented Jan 9, 2023

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

@xelasax xelasax changed the title Include sender in header for PostalAdapter [Feature Request ]Include sender in header for PostalAdapter Jan 9, 2023
@xelasax xelasax changed the title [Feature Request ]Include sender in header for PostalAdapter [enhancement]Include sender in header for PostalAdapter Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant