Author Topic: [Solved] No Checkout Emails  (Read 4175 times)

iain_darkflare

  • Beginner
  • *
  • Posts: 16
[Solved] No Checkout Emails
« on: September 20, 2008, 19:07:07 pm »
Hi Everyone,

I have just upgraded 2 sites that are both on the same server, with the exact same set up to VM 1.1.2. (Both sites are running on Joomla 1.0.15)

The problem is that one of the sites on checkout, emails both the user and the store on, and the other doesn't.

I can't find any good reason for this.

I've read a bunch of other posts and tried the following on the site that isn't emailing.(I even reinstalled VM1.1.2 from scratch)

1) using different emails from the admin
2) both HTML and plain text email settings
3) deleting all VM users from the database

Nothing I have tried seems to have worked.

Furthermore just to double check, when I change the status of an order withing VM and try to notify the customer I get this error:

Quote
Warning: Could not send a message to username, name@email.com ()

Is there something simple I could be missing?

What file triggers the email? Could this be corrupted?

Any help would be much appreciated!

Thanks,
Iain.

adamjedge

  • Beginner
  • *
  • Posts: 1
Re: No Checkout Emails
« Reply #1 on: September 21, 2008, 01:01:07 am »
Try the following:

https://dev.virtuemart.net/cb/issue/2295

I personally feel it is a major issue which needs a bug release urgently.

I had a client who wasn't receiving emails but customers were, as soon as I applied the change mentioned in the bug report it started working correctly again.

Thanks,
Adam

iain_darkflare

  • Beginner
  • *
  • Posts: 16
Re: No Checkout Emails
« Reply #2 on: September 21, 2008, 16:22:54 pm »
Thanks for your reply adam, but it hasn't solved it for me unfortunately.

I changed the following line (which I found on line 2210):

Code: [Select]
$vendor_mail = vmMail( $shopper_email, $shopper_name, vendor_email, $vendor_subject, $vendor_mail_Body, vendor_mail_AltBody, true, null, null, $EmbeddedImages);
to:
Code: [Select]
$vendor_mail = vmMail( $from_email, $shopper_email, $shopper_name, vendor_email, $vendor_subject, $vendor_mail_Body, vendor_mail_AltBody, true, null, null, $EmbeddedImages);
and it made no change. Still no vendor or customer emails.

iain_darkflare

  • Beginner
  • *
  • Posts: 16
Re: [Solved] No Checkout Emails
« Reply #3 on: September 21, 2008, 17:54:29 pm »
Ok I have managed to get it working, I left in the above change, and then I tried different settings within the Joomla>Global Config>Mail Tab

The one that worked for me was

Mailer: SMTP Server
SMTP Auth: No

I hope this help anyone else with a similar problem.

freshsqueezemedia

  • Beginner
  • *
  • Posts: 14
Re: [Solved] No Checkout Emails
« Reply #4 on: September 22, 2008, 05:11:12 am »
I tried the above presented solutions to no avail.  I even tried changing the mail settings to about every possible solution, including configuring it for SMTP, and I still could not get it to work. 

freshsqueezemedia

  • Beginner
  • *
  • Posts: 14
Re: [Solved] No Checkout Emails
« Reply #5 on: September 22, 2008, 23:08:00 pm »
I have been racking my brain all day on this.  The above changes don't accomplish anything, and I created a php file to send a test email which worked fine, so I know it's not the server being blocked.  Here is the code I used which worked to send the mail...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
</body>
</html>
<?php
$to = "test@test.com"; //change this to YOUR email address
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

That worked fine when I ran it, but I still cannot get emails from completed sales, nor do emails come through the standard joomla contact form.  I have tried every possible combination I can think of to fix the problem with no results.  Anyone else had any more luck than I have?

iain_darkflare

  • Beginner
  • *
  • Posts: 16
Re: [Solved] No Checkout Emails
« Reply #6 on: September 24, 2008, 15:16:20 pm »
You are probably better opening a new thread as most folk will see that this one has been marked as Solved.

Sorry I can't be of any help to you, I'm not a developer and I just fluked a solution.

freshsqueezemedia

  • Beginner
  • *
  • Posts: 14
Re: [Solved] No Checkout Emails
« Reply #7 on: September 24, 2008, 21:34:34 pm »
Eureka!!!!  I have solved it (though quite by accident).  Change the permissions of your configuration.php file so you can edit it (BE SURE TO SWITCH THEM BACK WHEN YOU ARE DONE).   Around line 19 you should have a line that looks like this with your site's address...

var $live_site = 'http://www.yoursitenamehere.com';

you may have this...

var $live_site = ' ';

If you do, change it so your site is in between the two quote marks already there.  It worked for me, hopefully it will work for you!