| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hello,
The first bug is a simple one. The word 'from' is mistyped as 'form', line 1251:
$sent = drupal_mail('uc_order', 'action-mail', $email, uc_store_mail_recipient_language($email), $settings, empty($settings['from']) ? uc_store_email_from() : $settings['form']);
The second bug was more difficult to figure out. Once this bug was fixed, I required this field to contain the domain setting for the ubercart store. The token replacements are listed there on the form. I used one of them for the 'From', [order-store-email]. The result was the 'from' address was empty.
There is a third issue, more of a coding issue than a bug, namely, the From field in the invoice action form is set to required in the form definition. The code, however, is programmed to provide a default if the value is empty. In fact, my solution to our problem was to use the form alter hook to set this to not-required and enter an empty value, thereby letting uc_store_email_from() take over, which provided the correct domain-setting-specific email address.
cheers


