Email sending problem

  • Posts: 50
  • Thank you received: 2
5 years 3 weeks ago #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 "FROM" but it use "the hikashop>setting>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" > 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 : This email address is being protected from spambots. You need JavaScript enabled to view it.
  • after creating product or other notification email, hika send all of them to This email address is being protected from spambots. You need JavaScript enabled to view it.
  • 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: 5 years 3 weeks ago by pma.

Please Log in or Create an account to join the conversation.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
5 years 3 weeks ago #304453

Hello,

In the HikaMarket product class, you can see to replace

	$mail->from_email = $shopConfig->get('from_email');
	$mail->from_name = $shopConfig->get('from_name');
By
	if(empty($mail->from_email)) {
		$mail->from_email = $shopConfig->get('from_email');
		$mail->from_name = $shopConfig->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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: pma

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.057 seconds
Powered by Kunena Forum