Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
Last active November 22, 2021 21:16
Show Gist options
  • Save DominicWatts/bdf27e6023c3340b26b4ded327ad355f to your computer and use it in GitHub Desktop.
Save DominicWatts/bdf27e6023c3340b26b4ded327ad355f to your computer and use it in GitHub Desktop.
Magento 2 Mailhog SMTP config SQL
INSERT INTO core_config_data (`scope`,scope_id,`path`,value)
VALUES ('default',0,'smtp/configuration_option/host','mailhog');
INSERT INTO core_config_data (`scope`,scope_id,`path`,value)
VALUES ('default',0,'smtp/configuration_option/port','1025');
INSERT INTO core_config_data (`scope`,scope_id,`path`,value)
VALUES ('default',0,'smtp/configuration_option/authentication','plain');
INSERT INTO core_config_data (`scope`,scope_id,`path`)
VALUES ('default',0,'smtp/configuration_option/protocol');
INSERT INTO core_config_data (`scope`,scope_id,`path`,value)
VALUES ('default',0,'smtp/general/enabled','1');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment