php - Laravel Mailable attached already save PDF Error -
i'm using laravel mailable class send mail saved pdf in host in project folder (assets/uploads/pdf/123.pdf) (not in public folder public/assets/uploads/pdf/123.pdf this). when give path attach gives following error; otherwise normal mails been sent.
expected response code 250 got code "502", message "502 5.5.2 error: command not recognized" mailabel code
public function build(){ return $this->view('mail.email') ->attach($this->pdf, ['as' => 'ew.pdf','mime' =>'application/pdf',]); } sendemailcontroller code
$model = model::create($requestdata); mail::to($model->email)->send(new sendmail($model->saved_pdf)); i'm using mailtrap. attached file 901kb. please me kind of appreciated
Comments
Post a Comment