电子邮件主题行在codeigniter 3.1中以?utf-8?Q?
开头
当我通过电子邮件库发送电子邮件时,电子邮件传递正确但主题未正确显示,看起来像?utf-8?Q?====? sdfdfd ?utf-8?Q?
我也在使用ion_auth发送电子邮件。
如有任何建议,请添加
答案 0 :(得分:1)
将此代码替换为文件
\ system \ libraries Email.php文件
group by
收件人
class user {
...
}
ngOnInit(){
storeSubsc = this.store.select('users').subscribe(user => {
this.user = user;
});
}
login(){
Object.keys(this.user).forEach()... --> working fine
I want it like
this.user.forEach() {... }
}
并在您的电子邮件配置中设置电子邮件配置
const fetch = require('node-fetch')
const https = require('https')
const express = require('express')
const app = express()
const agent = new https.Agent({
rejectUnauthorized: false
})
//-- HTTP --
app.get('/test-no-ssl', function(req, res){
fetch('http://jsonplaceholder.typicode.com/users')
.then(res => res.json())
.then(users => {
res.send(users)
}).catch(function(error) {
res.send(error)
})
})
//-- HTTPS --
app.get('/test-ssl', function(req, res){
fetch('https://jsonplaceholder.typicode.com/users', { agent })
.then(res => res.json())
.then(users => {
res.send(users)
}).catch(function(error) {
res.send(error)
})
})
app.listen(3003, () =>
console.log('Listening on port 3003...')
)