File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
app/code/Magento/Sales/Model/Order/Email Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ public function __construct(
6565 }
6666
6767 /**
68+ * Send order email if it is enabled in configuration.
69+ *
6870 * @param Order $order
6971 * @return bool
7072 */
@@ -81,17 +83,21 @@ protected function checkAndSend(Order $order)
8183
8284 try {
8385 $ sender ->send ();
84- $ sender ->sendCopyTo ();
8586 } catch (\Exception $ e ) {
8687 $ this ->logger ->error ($ e ->getMessage ());
87-
8888 return false ;
8989 }
90-
90+ try {
91+ $ sender ->sendCopyTo ();
92+ } catch (\Exception $ e ) {
93+ $ this ->logger ->error ($ e ->getMessage ());
94+ }
9195 return true ;
9296 }
9397
9498 /**
99+ * Populate order email template with customer information.
100+ *
95101 * @param Order $order
96102 * @return void
97103 */
@@ -113,6 +119,8 @@ protected function prepareTemplate(Order $order)
113119 }
114120
115121 /**
122+ * Create Sender object using appropriate template and identity.
123+ *
116124 * @return Sender
117125 */
118126 protected function getSender ()
@@ -126,6 +134,8 @@ protected function getSender()
126134 }
127135
128136 /**
137+ * Get template options.
138+ *
129139 * @return array
130140 */
131141 protected function getTemplateOptions ()
@@ -137,6 +147,8 @@ protected function getTemplateOptions()
137147 }
138148
139149 /**
150+ * Render shipping address into html.
151+ *
140152 * @param Order $order
141153 * @return string|null
142154 */
@@ -148,6 +160,8 @@ protected function getFormattedShippingAddress($order)
148160 }
149161
150162 /**
163+ * Render billing address into html.
164+ *
151165 * @param Order $order
152166 * @return string|null
153167 */
You can’t perform that action at this time.
0 commit comments