Author Topic: Cannot Send Email to Shopper and Vendor  (Read 1016 times)

kentcheung2000

  • Beginner
  • *
  • Posts: 23
Cannot Send Email to Shopper and Vendor
« on: November 19, 2016, 01:20:23 am »
Joomla 2.5.27
Virtuemart 2.0.26
Php version 5.3

I am unable to receive emails in the vendor and shoppers end...I went to the configuration's checkout and select all in the default order status email to senders and vendors.

However,  I am able to send and receive in the joomla contact us.

Is there anyone who can resolve this problem for me?...Thanks.

KC

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Cannot Send Email to Shopper and Vendor
« Reply #1 on: November 19, 2016, 23:19:47 pm »
Hi, try if you can send other mails in Joomla else check your main joomla config.
But best is to update Joomla+virtuemart.

stAn99

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 67
    • One Page Checkout for Virtuemart 2
Re: Cannot Send Email to Shopper and Vendor
« Reply #2 on: November 23, 2016, 11:01:31 am »
hello, this is the most common issues with the emails:

- first as stated above, make sure that emails work at all - for example by using joomla test email (at general config) or mass email to super administrators, sometimes SMTP is quite tricky (joomla's smtp does not support your own CA chains and thus some 3rd party sites are not properly recognized and joomla refuses the send the mail -> to fix this make a global CA chain for PHP (in php.ini) that includes your server's certificated and it's chain). some types of encryption are not supported at all by joomla smtp handler
- php's mail function should be rather avoided as it's the most attacked function in joomla (to disable it, you can remove /usr/sbin/sendmail in context of your site, so that SMTP is always used) + logging of the php mail function helps to discover many hidden control files uploaded by malicious attackers
- DNS related - sometimes emails work for local domains, but they do not work for remote domains, especially those with the new TLDs or purely on IPv6

Virtuemart related
- the most common problems with Virtuemart emails is the setup of the configuration -> email page (older VM: configuration -> checkout)
- recent VM versions may not send emails for Pending status in some cases and thus make sure that all payment methods got 'confirmed by shopper' or other payment status by default
- 3rd party extensions -> whether the email is send or not depends on the update of the order status from the payment method, not the VM core and thus depending on how and when the payment method calls this function your emails will be sent or not:
-- this can get fixed by the 3rd party provider on request, so he adjusts the code:
---- forces the default status of the order before the payment is processed (with attribute to send email and VM will then follow the config at the Email tab)
---- forces the updated status with the correct attribute after the payment is processed, held or cancelled
-- to test if your email issue is payment-plugin related, you can enable "standard" VM core payment method and configure it to use default status of "confirmed by shopper" and see if you receive the emails
- Virtuemart vendor configuration issues and DB inconsitencies: Virtuemart may not be able to send your email if your vendor user (shop owner config at Shop section) gives errors and the user is not properly linked to all tables.
--- to fix the vendor related issues you may see Shopper section in VM and make sure you mark a user with a full address as "user is vendor", visit the Shop section and check if all the details are correct and save
- VM+payment related: in VM3.0.18+ make sure you choose a proper accepted currency even when you already chose a "default currency"

Further considerations
- when using a deprecated VMEE, it modified VM core file which can supress sending emails (via it's own queue) and if you want to test the emails on core VM you may need to restore your /components/com_virtuemart/helpers/shopfunctionsf.php
- other email extensions override JMail or other email-related classes and to find the problem you may need to disable them to see if it fixes your problem

best regards, stan
----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

kentcheung2000

  • Beginner
  • *
  • Posts: 23
Re: Cannot Send Email to Shopper and Vendor
« Reply #3 on: November 23, 2016, 18:34:06 pm »
Thank you for your help.  I just found out my vender email has to be the same as the email in the global configuration email.  I am able to send and receive email.   

akublik

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Cannot Send Email to Shopper and Vendor
« Reply #4 on: December 07, 2016, 15:27:08 pm »
Hello, I have the same problem but only whith a differentent payment method (in my case payu latam), If I select the standart payment I recieve the mail notification. I have checked all the configurations and everything its OK.

Any idea?

Im using:
VirtueMart 3.0.18
Joomla 3.6.4

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26201
  • Always on vacation
    • Jenkin Hill Internet
Re: Cannot Send Email to Shopper and Vendor
« Reply #5 on: December 07, 2016, 15:32:35 pm »
Probably your payment plugin is not returning a confirmed order status to VirtueMart. Check the status on the orders page.
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5 on J!3.8

akublik

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Cannot Send Email to Shopper and Vendor
« Reply #6 on: December 08, 2016, 19:40:06 pm »
Hi yes the status is pending, and in the Default Order Status to send email to shopper and vendor all is selected, what can I do?   

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26201
  • Always on vacation
    • Jenkin Hill Internet
Re: Cannot Send Email to Shopper and Vendor
« Reply #7 on: December 08, 2016, 20:18:05 pm »
If there is no way to configure the payment plugin to returned status then the developer should fix it so that it works. A pending status indicates to VM that no payment has yet been made.
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5 on J!3.8

ruisdb

  • Beginner
  • *
  • Posts: 12
  • VirtueMart Version: 3.2.2
Re: Cannot Send Email to Shopper and Vendor
« Reply #8 on: June 30, 2017, 21:30:22 pm »
Thank you for your help.  I just found out my vender email has to be the same as the email in the global configuration email.  I am able to send and receive email.   
Hello.
I am using Joomla 3.7.2; VM 3.2.2.
The joomla global email is ok (using smtp).
I use the standard method of payment. And paypal.
I had problems sending emails to the customers and vendors. And when i make the vendor email identical to the global email everything is OK.
Is there any other way to do this?
I manage the joomla website and am not interested in receiving all the "comercial" emails from VM.

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 825
  • VirtueMart Version: VM3 on J3
Re: Cannot Send Email to Shopper and Vendor
« Reply #9 on: July 01, 2017, 22:12:06 pm »
Quote
The joomla global email is ok (using smtp).

Maybe restrictions by your email provider? There are some providers who disallow other email addresses.

ruisdb

  • Beginner
  • *
  • Posts: 12
  • VirtueMart Version: 3.2.2
Re: Cannot Send Email to Shopper and Vendor
« Reply #10 on: July 01, 2017, 23:40:29 pm »
Thank you for the suggestion.
I created different email addresses within the smtp and it worked ok.