You are here

function uc_store_email_from in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_store/uc_store.module \uc_store_email_from()
  2. 5 uc_store/uc_store.module \uc_store_email_from()
  3. 6.2 uc_store/uc_store.module \uc_store_email_from()

Returns store name and e-mail address in an RFC 2822 compliant string.

The return string is intended for use as a "From" address when sending e-mail to customers. It will look something like: Store Name <store@example.com>

Return value

An RFC 2822 compliant e-mail address.

13 calls to uc_store_email_from()
hook_uc_stock_adjusted in uc_stock/uc_stock.api.php
Allows modules to take action when a stock level is changed.
uc_cart_complete_sale_account in uc_cart/uc_cart.module
Link a completed sale to a user.
uc_cart_default_rules_configuration in uc_cart/uc_cart.rules_defaults.inc
Implements hook_default_rules_configuration().
uc_file_default_rules_configuration in uc_file/uc_file.rules_defaults.inc
Implements hook_default_rules_configuration().
uc_order_action_email in uc_order/uc_order.rules.inc
Sends an email concerning an order.

... See full list

File

uc_store/uc_store.module, line 1669
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_email_from() {
  $email_from = uc_store_email();

  // Add the store name to the e-mail "From" line.
  // Must be optional to prevent server conflicts.
  if (variable_get('uc_store_email_include_name', TRUE)) {
    $email_from = uc_store_rfc2822_display_name(uc_store_name()) . ' <' . $email_from . '>';
  }
  return $email_from;
}