Welcome Guest, Not a member yet? Register   Sign In
Config mail using settings
#1

HI,
is there a way to use https://github.com/codeigniter4/settings to config email instead of  Config/Email
i try to use : 
Code:
      service('settings')->set('Email.protocol', 'smtp');
      service('settings')->set('Email.SMTPHost', 'smtps.xxxxx.it');
      service('settings')->set('Email.SMTPUser', '[email protected]');
      service('settings')->set('Email.SMTPPass', 'xxxxxx');
      service('settings')->set('Email.SMTPPort', '465');
      service('settings')->set('Email.SMTPCrypto', 'ssl');
But if i try to send email i have no smtp configured
Reply


Messages In This Thread
Config mail using settings - by pippuccio76 - 10-31-2024, 12:40 AM
RE: Config mail using settings - by InsiteFX - 10-31-2024, 11:10 PM
RE: Config mail using settings - by pippuccio76 - 11-01-2024, 01:26 AM
RE: Config mail using settings - by warcooft - 11-01-2024, 01:05 PM
RE: Config mail using settings - by InsiteFX - 11-01-2024, 08:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB