VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: tango on September 27, 2017, 23:10:39 PM

Title: Email Issues from Virtuemart not working
Post by: tango on September 27, 2017, 23:10:39 PM
VirtueMart 3.2.4
Joomla 3.8.0

I have installed Virtuemart 3.2.4 on joomla 3.8.0 on my domain

Everything seems to work fine except for the email notifications coming from Virtuemart. Email notifications from joomla are fine and I have tested using SMTP, PHP Mail and SendMail functions.

Within Virtuemart I as the vendor nor the customer are getting email notifications even though the settings within virtuemart are correct.

When the order is update we get an error 'Could not send a message to XXXX'

i am unsure what else it could be and I have ensured the correct settings under Configuration-Email

Please help
Title: Re: Email Issues from Virtuemart not working
Post by: tango on September 27, 2017, 23:47:57 PM
I fail to mention I am using the paypal payment option
Title: Re: Email Issues from Virtuemart not working
Post by: tango on October 03, 2017, 19:04:32 PM

Guys - I could really do with some assistance here as I am unable to find any issues or errors within log files to suggest there is a problem however no one is getting any emails from Virtuemart but all email options within Joomla is working (PHP Mailer, SMTP, SendMail)

Quote from: tango on September 27, 2017, 23:10:39 PM
VirtueMart 3.2.4
Joomla 3.8.0

I have installed Virtuemart 3.2.4 on joomla 3.8.0 on my domain

Everything seems to work fine except for the email notifications coming from Virtuemart. Email notifications from joomla are fine and I have tested using SMTP, PHP Mail and SendMail functions.

Within Virtuemart I as the vendor nor the customer are getting email notifications even though the settings within virtuemart are correct.

When the order is update we get an error 'Could not send a message to XXXX'

i am unsure what else it could be and I have ensured the correct settings under Configuration-Email

Please help
Title: Re: Email Issues from Virtuemart not working
Post by: GJC Web Design on October 03, 2017, 23:36:42 PM
Try digging into the email functions of VM in the helper/shopfunctionsf.php

debug and echo out the vars there to ensure u have all required info for the JMail function

the error is raised in orders.php

$view = shopFunctionsF::prepareViewForMail('invoice', $vars);
$res = shopFunctionsF::sendVmMail( $view, $shopperEmail, false );

}

if(is_object($res) or !$res){
$string = 'COM_VIRTUEMART_NOTIFY_CUSTOMER_ERR_SEND';
vmdebug('notifyCustomer function shopFunctionsF::renderMail throws JException');
$res = 0;
} //We need this, to prevent that a false alert is thrown.
else if ($res and $res!=-1) {
$string = 'COM_VIRTUEMART_NOTIFY_CUSTOMER_SEND_MSG';
}


$res = shopFunctionsF::sendVmMail( $view, $shopperEmail, false );  is failing .. something is missing .. turn on VM debug .. there might be more info
Title: Re: Email Issues from Virtuemart not working
Post by: tango on October 04, 2017, 10:31:08 AM
Thank you for the reply - I will investigate and dig a little further.