Back to Custom Forms Support

cryonos
cryonos

Hello, I wanted to configure the Reply-To header when sending the notification but I can't find how with the abweb.forms.beforeSendNotification can you help me? Thank you

Last updated

abwebdevelopers
abwebdevelopers

Hi cryonos,

Thanks for using our plugin. I actually overlooked the possibility of someone wanting to modify the $message instance :o

If you upgrade to 1.0.6 you will have access to 2 new Events just for what you're after where you can modify the $message instance (add a bcc, bc, to, reply to, etc):

Event::listen('abweb.forms.onSendNotification', function (CustomForm $customForm, &$message, $to) {
    $message->replyTo('noreply@domain.com');
});
// and
Event::listen('abweb.forms.onSendAutoReply', function (CustomForm $customForm, &$message, $to) {
    $message->bcc('mwahahaha@domain.com');
});

If you find anything else or have any suggestions for our plugins, please don't hesitate to let us know.

cryonos
cryonos

I was to make a PR but you were too fast hehe

Thank you very much

1-3 of 3