function uc_store_email_from in Ubercart 5
Same name and namespace in other branches
- 8.4 uc_store/uc_store.module \uc_store_email_from()
- 6.2 uc_store/uc_store.module \uc_store_email_from()
- 7.3 uc_store/uc_store.module \uc_store_email_from()
8 calls to uc_store_email_from()
- uc_cart_complete_sale in uc_cart/
uc_cart.module - Completes a sale, including adjusting order status and creating user account.
- uc_notify_checkout in uc_notify/
uc_notify.module - Send new order confirmation e-mail to customer and/or administrator.
- uc_notify_order_update in uc_notify/
uc_notify.module - uc_order_mail_invoice_form_submit in uc_order/
uc_order.module - uc_order_select_customer in uc_order/
uc_order.module
File
- uc_store/
uc_store.module, line 2629 - Contains global Ubercart functions and store administration functionality.
Code
function uc_store_email_from() {
$email_from = variable_get('uc_store_email', '');
if (empty($email_from)) {
$email_from = variable_get('site_mail', ini_get('sendmail_from'));
}
// 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)) {
$store = variable_get('uc_store_name', '');
if (!empty($store)) {
$email_from = '"' . $store . '" <' . $email_from . '>';
}
}
return $email_from;
}