Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email Config $fromEmail not work #1021

Closed
HieuPT7 opened this issue May 10, 2018 · 1 comment
Closed

Email Config $fromEmail not work #1021

HieuPT7 opened this issue May 10, 2018 · 1 comment

Comments

@HieuPT7
Copy link
Contributor

HieuPT7 commented May 10, 2018

Hi
I set $fromEmail in App\Config\Email.php but not working when send email.
I set $email->setFrom('email@email.com', 'Email name');

Expected result:

$email = \Config\Services::email();
$email->setTo($member->user_email);
$email->setSubject('Email title');
$email->setMessage($body);
$email->send();

Actual result:

$email = \Config\Services::email();
I set $email->setFrom('email@email.com', 'Email name');
$email->setTo($member->user_email);
$email->setSubject('Email title');
$email->setMessage($body);
$email->send();
@JordyDew
Copy link

Hi there. Thanks for sharing this. When you set the actual $email-setFrom(); to an email address. Does it send the mail then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants