blahblahHi knows how to install the FROM part from email. In config for email you can set it there, but I want to use noreply@whatever.comsomething like this, for example. the code below does not work tho
Mail::send('emails.auth.activate', array('link' => URL::route('account-activate', $code), 'username' => $username), function($message) use ($user) {
$message->from('noreply@whatever.com', 'Activate Account');
$message->to($user->email, $user->username)->subject('Activate your account');
});
I just want to use noreplay@whatever.cominstead of using configuration settings inmail.php
when i use $message->from('noreply@whatever.com', 'Activate Account');it still shows my gmail account insteadnoreply@whatever.com
<?php
return array(
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => array('address' => 'admin@blahblah.com', 'name' => 'SuperStore'),
'encryption' => 'tls',
'username' => 'blahblah@gmail.com',
'password' => '**********',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);
source
share