mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update contact us to prevent email rejections
This commit is contained in:
@@ -32,6 +32,6 @@ class SendContactUsEmail implements ShouldQueue
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
Mail::to($this->mailTo)->send(new ContactUs($this->email, $this->mailBody));
|
||||
Mail::to($this->mailTo)->send(new ContactUs($this->mailTo, $this->email, $this->mailBody));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,8 +17,9 @@ class ContactUs extends Mailable
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*/
|
||||
public function __construct($mailFrom, $mailBody)
|
||||
public function __construct($mailTo, $mailFrom, $mailBody)
|
||||
{
|
||||
$this->mailTo = $mailTo;
|
||||
$this->mailFrom = $mailFrom;
|
||||
$this->mailBody = $mailBody;
|
||||
}
|
||||
@@ -31,6 +32,6 @@ class ContactUs extends Mailable
|
||||
*/
|
||||
public function build(): static
|
||||
{
|
||||
return $this->from($this->mailFrom)->subject('Contact form submitted')->replyTo($this->mailFrom)->view('emails.contactUs')->with(['mailBody' => $this->mailBody]);
|
||||
return $this->from($this->mailTo)->subject('Contact form submitted')->replyTo($this->mailFrom)->view('emails.contactUs')->with(['mailBody' => $this->mailBody]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user