Skip to content
Snippets Groups Projects
Commit 431237c4 authored by rswindell's avatar rswindell
Browse files

If the configured "from" address doesn't contain '@', automatically append

"@<system.inet_addr>".
parent 0380989f
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,9 @@ for(i in area) {
from = area[i].from;
if(from.indexOf('@')<0) // automaticalliy append system's e-mail host/domain name
from+=('@'+system.inet_addr);
msgbase = new MsgBase(sub);
if(msgbase.open!=undefined && msgbase.open()==false) {
log(LOG_ERR,format("!ERROR %s opening msgbase: %s\r\n",msgbase.last_error,sub));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment