【问题标题】:send email with specified name as from address in ci从 ci 中的地址发送具有指定名称的电子邮件
【发布时间】:2016-01-15 06:52:40
【问题描述】:

我正在使用 CI

我使用 CI 库发送电子邮件。它工作正常。 我想要一点点改变。当我从 abc@test.com 发送电子邮件时。然后是收件箱标题 abc。我想将其更改为“调度程序”。

例如:

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

发送邮件后。收件箱显示 abc 作为标题。我想换。

谢谢

【问题讨论】:

    标签: php codeigniter email


    【解决方案1】:

    这样试试

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

    【讨论】:

    • 标题是 abc@test.com。不是调度器
    • 没有。我正在使用它。单引号也没有帮助??
    • @AdarshMPallickal 删除您收到的旧邮件并重试
    • @AdarshMPallickal 乐于助人 :)
    猜你喜欢
    • 2018-07-02
    • 1970-01-01
    • 1970-01-01
    • 2011-07-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-20
    • 2011-05-16
    • 2015-06-27
    相关资源
    最近更新 更多