“Ask a question” Troubles – the Joomla!/VirtueMart vs GoDaddy Fight Continues

Another quirk brought to my attention lately with GoDaddy hosting is the feature for “Ask a question about this product” not working at all.  The “email sent” message shows up, but no real message is sent.  Why?  It has to do with GoDaddy’s weird set of email server settings, which I’m not going to go into right now.  What I DO care to expound upon is how to fix it:

First, inside the inner workings of your VirtueMart installation is a little class that handles what email your “Ask a question about this product” email gets sent FROM.  It tries to pick up the email from something you’ve set manually, but this makes GoDaddy mad.  Blank out this little line of code, and there is no longer any reason for it to be mad, so it works.

To blank out that line, find this file in your hosting account:
/administrator/components/com_virtuemart/classes/ps_main.php

Now, do a search within that file (“find”) this line:
$mail->Sender     = $from ? $from : $mosConfig_mailfrom;

Add a comment ( // ) in front of the line, so it looks like this:
//$mail->Sender     = $from ? $from : $mosConfig_mailfrom;

This has fixed the problem so far in all cases I have seen.




Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>