I have a problem to make diffrent mail template. When I got email from sender I would like to responce "Thank you" email to him or her. Sametime I would like to get the email details as diffrent type of tempate.
Here is my controller
Mail::send('contacttext', $data, function ($message) use ($request){
$to_email = "myemail@yahoo.co.jp"; // webmaster
$to_name = "webmaster";
$subject = "Thank you!";
$message->subject ($subject);
$message->from ($request->email, $request->name);
$message->to ($request->email, $to_name);
$message->bcc ('webmasteremail@yahoo.co.jp')
->from ($request->email, $request->name)
->subject ('for web master ');
contacttext.blade.php
<html>
<head>Thank you! here is your summary</head>
<body>
<p><strong>name:</strong> </p>
<p><strong>email:</strong> </p>
<p><strong>message:</strong> </p>
</body>
</html>
Email Sender can recive "Thank you" email. Webmaster can recive the email too but title and subject are overwrite as contacttext template Could someone teach me what is worng? I'm thinking it would be great to make as for webmaster template . I'm using Laravel 5.6
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wR3b3E
via IFTTT
Aucun commentaire:
Enregistrer un commentaire