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

If email form field specified, use that as message 'from' field.

parent 14dfb57b
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,9 @@ var hdr = { from: http_request.query.from,
to: http_request.query.to,
subject: http_request.query.subject };
if(http_request.query.email) // Use form-specified email address
hdr.from=http_request.query.email;
hdr.to_net_type=netaddr_type(hdr.to);
if(hdr.to_net_type!=NET_NONE)
hdr.to_net_addr=hdr.to;
......
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