#1 July 14, 2016 9:19am

doon.mok
Member
Registered: May 6, 2015
Posts: 141

Change email delivery reply-to

Hello,

In Developer > Email Delivery, we added a default email address for when bigtree sends emails. The From address is correct but we would like to change the default reply-to: email address, currently it is no-reply@...   Can we change the email through bigtree or do we make the change in admin.php?

admin.php

if ($es->Settings["bigtree_from"]) {
	$reply_to = "no-reply@".(isset($_SERVER["HTTP_HOST"]) ? str_replace("www.","",$_SERVER["HTTP_HOST"]) : str_replace(array("http://www.","https:  //www.","http://","https://"),"",DOMAIN));
        $es->sendEmail("$site_title Daily Digest",$body,$user["email"],$es->Settings["bigtree_from"],"BigTree CMS",$reply_to);
} else {
	BigTree::sendEmail($user["email"],"$site_title Daily Digest",$body);

Offline

#2 July 14, 2016 1:03pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Change email delivery reply-to

There's no reply-to support for emails that the admin sends (due to them being automated messages -- it doesn't make sense in most cases to support replying).

If you really need a reply-to email, I'd suggest extending the admin class and just overriding the single method or methods you need rather than editing admin.php:

See "Extending without Overriding" here:
https://www.bigtreecms.org/docs/dev-gui … ding-core/

Offline

#3 July 14, 2016 1:16pm

doon.mok
Member
Registered: May 6, 2015
Posts: 141

Re: Change email delivery reply-to

Thanks Tim, we changed our minds and will not change the reply-to.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.