简体   繁体   中英

send email with specified name as from address in ci

I am using CI

I send email using CI library. Its working fine. I want a slight change. When i send email from abc@test.com. then the inbox title abc. i want to change that to 'scheduler'.

Eg:

        $this->email->to('adarsh@gmail.com');
        $this->email->from('abc@test.com');
        $this->email->subject('Meeting Reminder');

After sending the mail. The inbox display abc as heading. Iwant to change it.

Thanks

这样尝试

$this->email->from('abc@test.com',"Scheduler"); # can use Single quote('Scheduler') as well

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM