add smtp server to magento
This commit is contained in:
		
							parent
							
								
									7c1f172a60
								
							
						
					
					
						commit
						faf5fe240e
					
				
							
								
								
									
										7
									
								
								.env
								
								
								
								
							
							
						
						
									
										7
									
								
								.env
								
								
								
								
							|  | @ -19,3 +19,10 @@ ADMIN_PASSWORD=admin123 | |||
| # SYSTEM | ||||
| TIMEZONE="Asia/Bangkok" | ||||
| CURRENCY="$" | ||||
| 
 | ||||
| # MAIL | ||||
| MAIL_SERVER=smtp | ||||
| MAIL_HOST=magento.kai.com | ||||
| MAIL_PORT=587 | ||||
| MAIL_USERNAME=magento | ||||
| MAIL_PASSWORD=secret | ||||
|  |  | |||
|  | @ -18,9 +18,10 @@ | |||
|     }, | ||||
|     "version": "2.4.6-p3", | ||||
|     "require": { | ||||
|         "magento/product-community-edition": "2.4.6-p3", | ||||
|         "magento/composer-dependency-version-audit-plugin": "~0.1", | ||||
|         "magento/composer-root-update-plugin": "~2.0" | ||||
|         "magento/composer-root-update-plugin": "~2.0", | ||||
|         "magento/product-community-edition": "2.4.6-p3", | ||||
|         "mageplaza/module-smtp": "^4.7" | ||||
|     }, | ||||
|     "autoload": { | ||||
|         "exclude-from-classmap": [ | ||||
|  | @ -85,4 +86,3 @@ | |||
|         "magento-force": "override" | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -42,3 +42,11 @@ services: | |||
|       - MYSQL_USER=${MYSQL_USER} | ||||
|       - MYSQL_PASSWORD=${MYSQL_PASSWORD} | ||||
|       - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} | ||||
| 
 | ||||
|   smtp: | ||||
|     image: bytemark/smtp | ||||
|     environment: | ||||
|       RELAY_HOST: ${MAIL_HOST} | ||||
|       RELAY_PORT: ${MAIL_PORT} | ||||
|       RELAY_USERNAME: ${MAIL_USERNAME} | ||||
|       RELAY_PASSWORD: ${MAIL_PASSWORD} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue