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

#   Email sending problem

##

- **[pma](/forum/user/47766-pma "View pma's Profile")**
- [![pma's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/47766-pma "View pma's Profile") Topic Author
- [ Offline](/forum/user/47766-pma)

Less More

- Posts: 50
- Thank you received: 2
-
-

7 years 8 months ago -  7 years 8 months ago [\#304434](#304434) by [pma](/forum/user/47766-pma "View pma's Profile")  *[Email sending problem](/forum/22-market-bug-report/897041-email-sending-problem#304434 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 4.0.1 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.9 -- PHP version -- : 5.6  Hi  in some case for emails like: creating product email setting I use another Email &quot;FROM&quot; but it use &quot;the hikashop&gt;setting&gt;From email&quot; I mean that it dose not use my selected email for &quot;market:product created&quot;, it use the default in the main setting!  Also I have another problem for spam it just because : in hikashop setting for emails : &quot;From&quot; &gt; it just show the sender of email as you noted on it but in fact hikashop and market sends all emeils to this email, that i have set it for &quot;From&quot;  for example:  &#42; in setting of hikashop: From :  &#42; after creating product or other notification email, hika send all of them to  &#42; at Gamil : it shows that a email :  so the sender and receive are the same! that makes Gmail knows it's spam! How to solve this problem? I want all my notifications and orders to be in my gmail (for example) and when I use it in FROM form in setting it's the same of sender of email If it has way to separate them please help me I think we need the : &quot;TO:&quot; in hikashop or hikamarket emails setting to separate sender and receiver of email  maybe it's complex problem but I say just that : all email that I receive has the same sender and receiver! hika use &quot;FROM MAIL&quot; but also sends emails to &quot;FROM MAIL&quot; FROM MAIL : the email I set for From in hikashop setting")* was created by *[pma](/forum/user/47766-pma "View pma's Profile")*

-- url of the page with the problem -- : localhost
-- HikaShop version -- : 4.0.1
-- HikaMarket version -- : 3.0.0
-- Joomla version -- : 3.9
-- PHP version -- : 5.6

Hi

in some case for emails like: creating product email setting I use another Email "FROM" but it use "the hikashop&gt;setting&gt;From email"
I mean that it dose not use my selected email for "market:product created", it use the default in the main setting!

Also I have another problem for spam it just because :
in hikashop setting for emails : "From" &gt; it just show the sender of email as you noted on it
but in fact hikashop and market sends all emeils to this email, that i have set it for "From"

for example:

- in setting of hikashop: From : example@gmail.com
- after creating product or other notification email, hika send all of them to example@gmail.com
- at Gamil : it shows that a email : From:example@gmail.com to:example@gmail.com

so the sender and receive are the same! that makes Gmail knows it's spam!
How to solve this problem? I want all my notifications and orders to be in my gmail (for example) and when I use it in FROM form in setting it's the same of sender of email
If it has way to separate them please help me
I think we need the : "TO:" in hikashop or hikamarket emails setting to separate sender and receiver of email

maybe it's complex problem but I say just that :
all email that I receive has the same sender and receiver!
hika use "FROM MAIL" but also sends emails to "FROM MAIL"
FROM MAIL : the email I set for From in hikashop setting

Last edit: 7 years 8 months ago by [pma](/forum/user/47766-pma "View pma's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

7 years 8 months ago [\#304453](#304453) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Email sending problem](/forum/22-market-bug-report/897041-email-sending-problem#304453 "-- url of the page with the problem -- : localhost -- HikaShop version -- : 4.0.1 -- HikaMarket version -- : 3.0.0 -- Joomla version -- : 3.9 -- PHP version -- : 5.6  Hi  in some case for emails like: creating product email setting I use another Email &quot;FROM&quot; but it use &quot;the hikashop&gt;setting&gt;From email&quot; I mean that it dose not use my selected email for &quot;market:product created&quot;, it use the default in the main setting!  Also I have another problem for spam it just because : in hikashop setting for emails : &quot;From&quot; &gt; it just show the sender of email as you noted on it but in fact hikashop and market sends all emeils to this email, that i have set it for &quot;From&quot;  for example:  &#42; in setting of hikashop: From :  &#42; after creating product or other notification email, hika send all of them to  &#42; at Gamil : it shows that a email :  so the sender and receive are the same! that makes Gmail knows it's spam! How to solve this problem? I want all my notifications and orders to be in my gmail (for example) and when I use it in FROM form in setting it's the same of sender of email If it has way to separate them please help me I think we need the : &quot;TO:&quot; in hikashop or hikamarket emails setting to separate sender and receiver of email  maybe it's complex problem but I say just that : all email that I receive has the same sender and receiver! hika use &quot;FROM MAIL&quot; but also sends emails to &quot;FROM MAIL&quot; FROM MAIL : the email I set for From in hikashop setting")*

Hello,

In the HikaMarket product class, you can see to replace Code:

$mail-&gt;from_email = $shopConfig-&gt;get('from_email'); $mail-&gt;from_name = $shopConfig-&gt;get('from_name');

By Code:

if(empty($mail-&gt;from_email)) { $mail-&gt;from_email = $shopConfig-&gt;get('from_email'); $mail-&gt;from_name = $shopConfig-&gt;get('from_name'); }

In the different places (3 times in that file) ; so if an email address is already set-up, it won't be override by the default HikaShop configuration setting.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [pma](/forum/user/47766-pma "View pma's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg5NzA0MS1lbWFpbC1zZW5kaW5nLXByb2JsZW0/dG1wbD1tYXJrZG93bg==) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.049 seconds

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