📜  如何在 Laravel 中制作一个没有视图或通知的简单邮件系统 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:22.578000             🧑  作者: Mango

代码示例1
$name        = "User Name";
$fromEmail = "akash@devsenv.com";
$toEmail   = "manirujjamanakash@gmail.com";
$subject   = "Simple Mail in Laravel";
$mailBody  = "

From: $fromEmail

Details...
"; \Mail::html( $mailBody, function( $message ) { $message->subject( $subject ) ->to( $toEmail ); });