Additional email onto following code

23 Views Asked by At

How do I add an additional email onto the following:

$shop_email = $site->config->business_email; 

I have already tried a lot of combinations (below), but they don't work:

$shop_email = $site->config->business_email, [email protected]; 

$shop_email = array("$site->config->business_email","[email protected]";

Thanks.

1

There are 1 best solutions below

0
onetimeengineer On

There isn't enough information in your question to provide an informed answer. However, assuming that business_email is an array, you can do something like this:

$shop_email = $site->config->business_email;
$shop_email[] = '[email protected]';

If business_email is not an array but a string, you can do this instead:

$shop_email = [$site->config->business_email,'[email protected]'];

HTH..