Skip to content

Mail not sent in production server #42510

Answered by kon3ko
kon3ko asked this question in Q&A
May 25, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

In short, the system just doesn't have a destination for the mail to send and therefore stops working.

Mail::to(env('MAIL_SENT_CONTACT_US'))
    ->send(new ContactUsMail($name, $email, $tel, $organization, $message));

It seems that if we use config:cache , the env cannot be read.
now it's working normally

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@brunogaspar
Comment options

@systemsolutionweb
Comment options

Answer selected by kon3ko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #42506 on May 25, 2022 07:28.