Strange sender of emali... |
Hello there, here I am (again)...
I want to use SMTP in a project, and it work. BUT I set the Code: $email->setFrom('[email protected]', 'MySender'); and in the recieved mail is given following: SandBox CI4 ([email protected]), but I want to get THIS: MySender ([email protected]) Where the hell is the "SandBox CI4" from ?!? I searched the folder of my installation, but I got no results... Where to set the correct sender of the email ? (05-12-2022, 03:07 AM)Codinglander Wrote: but I want to get THIS: MySender ([email protected]) I checked, there is no problem. Providing more code details can help solve your problem. ![]()
Here are all the settings I made related to the email class:
Controller: PHP Code: public function testEmail() .env file PHP Code: email.SMTPHost = 'myhost.provider.com' Email-Config: PHP Code: <?php Nowhere I can see "SandBox CI4", but in my eMail Client this is the sender...
Check with printDebugger:
https://codeigniter4.github.io/CodeIgnit...ntDebugger The values are CI's email values. If you do not see the same sender name, this may be due to your SMTPHost or your email client. |
Welcome Guest, Not a member yet? Register Sign In |