开发者

I need to send the mail with particular format in PHP what to do?

开发者 https://www.devze.com 2023-02-16 11:36 出处:网络
I am using codeignitor email .... I am fetching the body content from database,such that my subject is already stor开发者_JS百科ed in database,

I am using codeignitor email ....

I am fetching the body content from database,such that my subject is already stor开发者_JS百科ed in database,

hello
     subject
regards

but while i receiving msg i am getting like this, hellosubjectregards

any solutions???


Seems like you are sending HTML encoded email. Since you have no html tags, you might want to send a text encoded email. Try to set the 'mailtype' preference after loading the email library.

$config['mailtype'] = 'text';
$this->email->initialize($config);

If you want nicer emails, build a complete html email (with <html>, <head> and <body> tags)

0

精彩评论

暂无评论...
验证码 换一张
取 消