Next.js Discord

Discord Forum

SMTP Server Email Format in env.local

Answered
Prairie yellowjacket posted this in #help-forum
Open in Discord
Prairie yellowjacketOP
Which one is correct format for Email configuration?
Image 1: Without Quotation Mark
or
Image 2: With Quotation Mark
Answered by dumbboy
You have probably configured it wrong, it is not .env problem, you can create a new issue with your problem and code. And please mark this as solution.
View full answer

19 Replies

@Prairie yellowjacket Which one is correct format for Email configuration? Image 1: Without Quotation Mark or Image 2: With Quotation Mark
with " then it will definitely work. without " then it depends on the parser
in cases like this i always add "
@joulev with " then it will definitely work. without " then it depends on the parser
Prairie yellowjacketOP
Quotation mark for both EMAIL_SERVER and EMAIL_FROM?
Prairie yellowjacketOP
I tried without " " and when I enter an email on login page then it try to send email but it does not come in my inbox. Also the page which tell that "you may have received an email with verification link" does not come.
Prairie yellowjacketOP
Im trying right now
IG it's probably your email service issue
Prairie yellowjacketOP
No, I tested the smtp detail using GMass SMTP tester. It send test email correctly
Tested using this - https://www.gmass.co/smtp-test
Prairie yellowjacketOP
Wait for a minute please
No, it does not send. I think something else is wrong in the codebase
@Prairie yellowjacket No, it does not send. I think something else is wrong in the codebase
As I said, both works, it's issue with email API.
Prairie yellowjacketOP
It can be
This is 2nd smtp provider I tested. Both didn't worked on this. Even though they working for my another laravel based site
You have probably configured it wrong, it is not .env problem, you can create a new issue with your problem and code. And please mark this as solution.
Answer
Prairie yellowjacketOP
Im new to this group. Where is marking option
@Prairie yellowjacket Im new to this group. Where is marking option
Right click (or open the three dots menu bar) on the message you think solved your issue, then apps->mark as solution.