Laravel – Attempt to read property "email_from" on string
Having error from this $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; } $mail->Port = $config->port; $mail->CharSet = 'UTF-8'; //Recipients $mail->setFrom($gnl->email_from, $gnl->sitetitle); $mail->addAddress($receiver_email, $receiver_name); $mail->addReplyTo($gnl->email_from, $gnl->sitename); // Content $mail->isHTML(true); $mail->Subject = $subject; This is were my error is from $mail->setFrom($gnl->email_from, $gnl->sitetitle);