![]() |
Strange sender of emali... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Strange sender of emali... (/showthread.php?tid=81866) |
Strange sender of emali... - Codinglander - 05-12-2022 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 ? RE: Strange sender of emali... - datamweb - 05-12-2022 (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. ![]() RE: Strange sender of emali... - Codinglander - 05-12-2022 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... RE: Strange sender of emali... - kenjis - 05-12-2022 Check with printDebugger: https://codeigniter4.github.io/CodeIgniter4/libraries/email.html#printDebugger 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. |