.env 파일에서 `MAIL_DRIVER`를 선언하시면,
```
MAIL_DRIVER=mail
```
config/mail.php 에서 메일 발송 드라이버가 선택됩니다.
```
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may specify which one you're using throughout
| your application here. By default, Laravel is setup for SMTP mail.
|
| Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log"
|
*/
'driver' => env('MAIL_DRIVER', 'smtp'),
```
즉, .env 파일에서 `MAIL_DRIVER=mail` 로 선언하면, Laravel 에서 PHP mail() 함수 실행을 통한, 메일 큐 처리 까지는 가능합니다.
이후 실제 메일 발송까지는 from 주소, SPF, rDNS 등 여러 조건들의 영향을 받겠지만요...
오오! 감사합니다!! 처음 질문남겨봤는데.. 이렇게 빨리 답변 주실줄이야!!^^
기본적인 예제로는 거의 SMTP 메일 서비스 하는 (gmail, mailgun) 으로만 나와있는데
내부적으로 sendmail 을 사용할 때는 어떻게 해야되나요. ?
smtp 는 localhost 로 잡고있고 포트는 25
계정은 설정되어있지 않아서 바로 발송됩니다.