Support Center

Recent questions

About Koken

This Help Center provides support for Koken, a free content management system designed for photographers, artists and designers.

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Email plugin modded to solve a problem.

Riccardo

May 14, 2017 09:44AM EDT

Today I faced a problem with the email plugin because I misunderstood how it is supposed to work. Maybe someone else has the same problem.
The email plugins when used in smtp mode setup the sender and the destination email to the same address. The problem is when you setup an account for sending email to another account you look everyday.
I've edited the plugin adding an SMTP sender address used in the send process and now it works flawlessly.

in plugin.php change from:
->setFrom(array($toEmail))
to:
->setFrom(array($this->data->smtp_from_email))

and in plugin.json add:
,
"smtp_from_email": {
"type": "string",
"header": "Sender address",
"info": "Set the sender address",
"dependencies": {
"evaluate": "all",
"conditions": [
{
"option": "provider",
"equals": "smtp"
}
]
}
}

That's all!
Regards!

Up 0 rated Down

Chris

Jun 05, 2017 10:10AM EDT
Hi Riccardo!

Thanks a lot for your input! Already had a case where i could use your custom code to solve a similar issue. IMHO this should make it into the plugin as a standard feature.

Many email providers block sending mails that are sent with an alternate "from address" to avoid SPAM.

----------------------
Regards, Chris
Koken Community Support - http://kokensupport.com/

This question has received the maximum number of answers.

support@koken.me
http://assets2.desk.com/
false
koken
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete