Welcome Guest, Not a member yet? Register   Sign In
From and Reply_to in emails
#1

I am trying to change the emails for a website but soemthing a bit odd is going on


Foir the email to the customer I have

$this->email->from('website-contact@aaaa.com', 'ccc');

$this->email->reply_to('bbb.net', 'cccc');


But the from is coming out as bbb.net not website-contact@aaaa.com

The smtp user is
$config['smtp_user'] = 'bbb.net';

Any idea why the from is bbb.net not website-contact@aaaa.com

I can change the reply_to to website-contact@aaaa.com alright but that isn't what they want

I have spent most of yesterday trying all sorts but got nowhere

Thanks
Reply
#2

(This post was last modified: 05-21-2023, 03:07 AM by JustJohnQ.)

Which version of CodeIgniter are you using?

I did some testing here in CI3 on my local server using sendmail and it looks like sendmail ignores whatever email->to() value you use. It always takes the smtp sender from sendmail.ini.
Reply
#3

I thought the man at the Host had alresdy changed the config but he hadn't. Bit of confusion somewhere. I realised on Saturday that it might be that and got it working. Thanks
Reply
#4

You can't do this with Microsoft 365, they have disabled SMTP for all tenants. What do you recommend for sending SMTP mails?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB