In all the email templates, I have:

{{depend store_email}}
    <b>Email:</b> <a href="mailto:{{var store_email}}">{{var store_email}}</a>

However, this is outputting the "Customer Support" email address.

  1. How can I change that so it is show the "General Contact" or "Sales Representative" email address in the template?
  2. Why is the "Customer Support" email address the one that is output for the variable store_email?
  • Is your issue resolved ? Commented Nov 29, 2016 at 9:49

2 Answers 2


Try this,

Use this:

$email = Mage::getStoreConfig('trans_email/ident_general/email');

in your php file then make it as variable then use it

$templateVars = array('variablename' => $email);

then use your mail:

{{var variablename}}
  • Based on your answer, it sounds like it may be possible to change what is assigned to the store_email variable. Where might that be defined? Commented Nov 16, 2016 at 14:58

You can use this line of code in email template to get any of store config value :

General Store Email address:

{{config path="trans_email/ident_general/email"}}

Follow this link for detail.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.