Next.js Discord

Discord Forum

SMTP Server Email Format in env.local

Answered
Prairie yellowjacket posted this in #help-forum
Open in Discord
Avatar
Prairie yellowjacketOP
Which one is correct format for Email configuration?
Image 1: Without Quotation Mark
or
Image 2: With Quotation Mark
Image
Image
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

Avatar
with " then it will definitely work. without " then it depends on the parser
in cases like this i always add "
Avatar
Prairie yellowjacketOP
Quotation mark for both EMAIL_SERVER and EMAIL_FROM?
Avatar
It's your wish
Avatar
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.
Avatar
With quotation mark, you get it correctly?
Avatar
Prairie yellowjacketOP
Im trying right now
Avatar
IG it's probably your email service issue
Avatar
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
Avatar
It works without quotes "" ?
Avatar
Prairie yellowjacketOP
Wait for a minute please
No, it does not send. I think something else is wrong in the codebase
Avatar
As I said, both works, it's issue with email API.
Avatar
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
Avatar
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
Avatar
Prairie yellowjacketOP
Im new to this group. Where is marking option
Avatar
Right click (or open the three dots menu bar) on the message you think solved your issue, then apps->mark as solution.