smtp setting for gmail
irs_spryker
Posts: 16 🧑🏻🚀 - Cadet
I am working on sending mail through gmail smtp but dont know where to do the smtp settings for the same, can anyone help me please. i tried to do settings in config_default but i dont thing it is the correct place.
Tagged:
0
Answers
-
config_default is the correct place.
$config[MailConstants::SMTP_HOST] = env('SPRYKER_SMTP_HOST') ?: null; $config[MailConstants::SMTP_PORT] = env('SPRYKER_SMTP_PORT') ?: null; $config[MailConstants::SMTP_ENCRYPTION] = env('SPRYKER_SMTP_ENCRYPTION') ?: null; $config[MailConstants::SMTP_AUTH_MODE] = env('SPRYKER_SMTP_AUTH_MODE') ?: null; $config[MailConstants::SMTP_USERNAME] = env('SPRYKER_SMTP_USERNAME') ?: null; $config[MailConstants::SMTP_PASSWORD] = env('SPRYKER_SMTP_PASSWORD') ?: null;These are you configs, just get the values from your GMail account, and put here.
It might require you to enable unsafe sending of emails, at least that's what I remember doing last time some years ago.
p.s. for local testing using MailCatcher is usually enough.
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 92 Spryker News
- 1K Developer Corner
- 855 Spryker Development
- 93 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 35 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 34 Product & Business Questions
- 70 Spryker Safari Questions
- 51 Random
