[Skip to main content](#vessel-content)

#   E-mail to Custom field

##

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

4 years 9 months ago [\#339200](#339200) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339200 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")* was created by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")*

-- HikaShop version -- : 4.4.5

Hi,

I would like to email the orderstatus to a Hikashop User Custom Field.
I have created a field (user_customemail) and in the CC of the email {VAR:customer.user_customemail}
This doesn't seem to work.

On Google i found this plugin: [ www.hikashop.com/support/documentation/3...iltocustomfield.html](https://www.hikashop.com/support/documentation/345-hikaserial-plugins-mailtocustomfield.html)
But i can't find it on my installation.

What is the way to get this work?
Thanks in advance!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

4 years 9 months ago [\#339201](#339201) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339201 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")*

Hi,

So if I understand correctly, you want to send the "order status notification" email to the email address filled in the custom user field with the column name "user_customemail" instead of the normal user_email field.
It's possible but it requires modifying the "preload" section of the "order status notification" email via the menu System&gt;Emails.
There, you need to add such code at the end : Code:

$data-&gt;customer-&gt;user_email = $data-&gt;customer-&gt;user_customemail;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

4 years 9 months ago [\#339221](#339221) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339221 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")*

Not exactly, i need this customemail as an additional address in the CC.
The user_email needs to be the usual emailaddress.
But some clients (not all) need to send their invoices also to an invoice/bookkeeping-emailaddress.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

4 years 9 months ago [\#339236](#339236) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339236 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")*

Hi,

In that case, you should be able to do it with this code: Code:

$this-&gt;mailer-&gt;addCC($data-&gt;customer-&gt;user_customemail);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

4 years 9 months ago [\#339332](#339332) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339332 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")*

Hi,
I have added this code at the end of the preload field in the email setting.

But no emails are sent to the CC.
In the email history i also see the CC is empty.

Is there something else i need to setup?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

4 years 9 months ago [\#339334](#339334) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339334 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")*

Hi,

Try like this instead then:
Code:

$mail-&gt;cc_email = $data-&gt;customer-&gt;user_customemail;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

4 years 9 months ago [\#339375](#339375) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  Replied by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")* on topic *[E-mail to Custom field](/forum/35-orders-management/903932-e-mail-to-custom-field#339375 "-- HikaShop version -- : 4.4.5  Hi,  I would like to email the orderstatus to a Hikashop User Custom Field. I have created a field (user&#95;customemail) and in the CC of the email {VAR:customer.user&#95;customemail} This doesn't seem to work.  On Google i found this plugin:   www.hikashop.com/support/documentation/3...iltocustomfield.html  But i can't find it on my installation.  What is the way to get this work? Thanks in advance!")*

Thank you, this works fine!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMzkzMi1lLW1haWwtdG8tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
