Track My Order Email Not Showing From Admin Email Id

Hello Dear all cs cart experts

please take a look of snapshot name : cs1.JPG when a user/customer provide his/hire email id or order id for track order states here

than he/she will be get email from vendor email id as example : vendor@gmail.com please see in snapshot cs2.JPG

but we want all these email need to go with admin Order department e-mail address as example

orders@domain_name.com

Please help us with code & file name ??

Thanks in advance

cs1.JPG

cs2.jpg

Hello Dear all cs cart experts

please take a look of snapshot name : cs1.JPG when a user/customer provide his/hire email id or order id for track order states here

than he/she will be get email from vendor email id as example : vendor@gmail.com please see in snapshot cs2.JPG

but we want all these email need to go with admin Order department e-mail address as example

orders@domain_name.com

Please help us with code & file name ??

Thanks in advance

Hello!

Please find this code in app/controllers/frontend/orders.php file:

$result = Mailer::sendMail(array(
    'to' => $order_info['email'],
    'from' => 'company_orders_department',
    'data' => array(
        'access_key' => $ekey,
        'o_id' => $order_info['order_id'],
    ),
    'tpl' => 'orders/track.tpl',
    'company_id' => $company_id,
), 'C', $order_info['lang_code']);

and add

$company_id = 0; 

before it.

Hello!

Please find this code in app/controllers/frontend/orders.php file:

$result = Mailer::sendMail(array(
    'to' => $order_info['email'],
    'from' => 'company_orders_department',
    'data' => array(
        'access_key' => $ekey,
        'o_id' => $order_info['order_id'],
    ),
    'tpl' => 'orders/track.tpl',
    'company_id' => $company_id,
), 'C', $order_info['lang_code']);

and add

$company_id = 0; 

before it.

Thanks a lot for this help its working very good now :)

1) one more think i want to know after click here http://prntscr.com/cno7n8 than here http://prntscr.com/cno8cc we selected Notify user

But after <> there is no email receive to vendor from Order department

2) & If we do it active like this http://prntscr.com/cno93othan vendor received mail from his/hire email id like this http://prntscr.com/cno9gu

Please provide solution for both issue

Thanks a lot for this help its working very good now :)

1) one more think i want to know after click here http://prntscr.com/cno7n8 than here http://prntscr.com/cno8cc we selected Notify user

But after <> there is no email receive to vendor from Order department

2) & If we do it active like this http://prntscr.com/cno93othan vendor received mail from his/hire email id like this http://prntscr.com/cno9gu

Please provide solution for both issue

1. Looks like a bug.

2. Find "update_status" mode in app/controllers/backend/profiles.php:

if ($mode == 'update_status') {

and replace this code:

Mailer::sendMail(array(
    'to' => $user_data['email'],
    'from' => 'company_users_department',
    'data' => array(
        'user_data' => $user_data,
    ),
    'tpl' => 'profiles/profile_activated.tpl',
    'company_id' => $user_data['company_id'],
), fn_check_user_type_admin_area($user_data['user_type']) ? 'A' : 'C', $user_data['lang_code']);

with this:

Mailer::sendMail(array(
    'to' => $user_data['email'],
    'from' => 'company_users_department',
    'data' => array(
        'user_data' => $user_data,
    ),
    'tpl' => 'profiles/profile_activated.tpl',
    'company_id' => 0,
), fn_check_user_type_admin_area($user_data['user_type']) ? 'A' : 'C', $user_data['lang_code']);

1. Looks like a bug.

2. Find "update_status" mode in app/controllers/backend/profiles.php:

if ($mode == 'update_status') {

and replace this code:

Mailer::sendMail(array(
    'to' => $user_data['email'],
    'from' => 'company_users_department',
    'data' => array(
        'user_data' => $user_data,
    ),
    'tpl' => 'profiles/profile_activated.tpl',
    'company_id' => $user_data['company_id'],
), fn_check_user_type_admin_area($user_data['user_type']) ? 'A' : 'C', $user_data['lang_code']);

with this:

Mailer::sendMail(array(
    'to' => $user_data['email'],
    'from' => 'company_users_department',
    'data' => array(
        'user_data' => $user_data,
    ),
    'tpl' => 'profiles/profile_activated.tpl',
    'company_id' => 0,
), fn_check_user_type_admin_area($user_data['user_type']) ? 'A' : 'C', $user_data['lang_code']);

Thank again after it No 2) issue has been solved

but no. 1) '' one more think i want to know after click here http://prntscr.com/cno7n8 than http://prntscr.com/cno8cc we selected Notify user

But after <> there is no email receive to vendor from Order department ''

still vendor not receive any email !!

Thank again after it No 2) issue has been solved

but no. 1) '' one more think i want to know after click here http://prntscr.com/cno7n8 than http://prntscr.com/cno8cc we selected Notify user

But after <> there is no email receive to vendor from Order department ''

still vendor not receive any email !!

I mean that this is default bug. Please post it in Bug tracker.

I mean that this is default bug. Please post it in Bug tracker.

Ok i add this issue to bug tracker

one last issue is when i try to send Newslatter from Marketing > Newslatters emails are not sending & there error showing like this :

errorMessage could not be sent.
Mailer Error: SMTP connect() failed.

Now in this case i open support ticket on cs cart & git a replay frm tham that we need to contact our hosting service

So our hosting first check our SMTP detail like host , Username etc.. all correct

After to much work they finally find where is the problem & replay this

'' have checked your case in details and managed to find the cause of the case in the server logs:

Code:
2016-07-11 05:39:39 [14108] SMTP syntax error in "?g?3?@?k?8?9?\234?\235?\244?\240???>?2?1?0\3001\300-\300)\300%\300\016\300\004? 2016-07-11 05:39:39 [14108] SMTP syntax error in "?\377\001?\001????\034?\032??\027securesgp7.sgcpanel.com?\v?\004\003?\001\002?" H=[119.81.15.199]:34404 I=[119.81.15.199]:25 NULL character(s) present (shown as '?')
2016-07-11 05:39:39 [14108] SMTP syntax error in "?\034?\032?\027?\031?\034?\033?\030?\032?\026?\016?\r?\v?\f? ?" H=[119.81.15.199]:34404 I=[119.81.15.199]:25 NULL character(s) present (shown as '?')
2016-07-11 05:39:39 [14108] SMTP call from [119.81.15.199]:34404 I=[119.81.15.199]:25dropped: too many syntax or protocol errors (last command was "?\034?\032?\027?\031?\034?\033?\030?\032?\026?\016?\r?\v?\f? ?")
2016-07-11 05:39:39 [14108] no MAIL in SMTP connection from [119.81.15.199]:34404 I=[119.81.15.199]:25 D=0s
2016-07-11 05:39:40 [14122] cwd=/ 2 args: /usr/sbin/exim -bpc
2016-07-11 05:39:40 [46929] SMTP connection from [218.73.141.39]:1107 I=[181.224.157.56]:25 (TCP/IP connection count = 8)


Your application is not using proper encoding for the headers of the message which results in SMTP error. For example:

?g?3?@?k?8?9?\234?\235?\244?\240???>?

should be your email address. As you can see it is not properly formatted which is causing the case.

Unfortunately I couldn't find any option to change the encoding and this is why you should contact the application's developers for further assistance.

If you have any further questions don't hesitate to contact us again.

Best Regards,

Lubomir


Technical Support Supervisor''

Can you please help us in this case ??