Regarding zen-cart and email.
I don't profess to have all, or even any of the answers, but I do know several important facts that are relevant and worth keeping in mind.
Firstly, not all ISP's use the same mail program(s), and those that do invariably have thier own settings and configurations in regards to what is, or isn't allowed.
This is why zen-cart offers so many different email options. There is almost certainly at least one setting/option avaialble that will work with any given ISP. Some systems may even support several different methods.
The trick is figuring out what your particular ISP supports and allows.
rachalmers:
I have tried PHP. it won't send the email. dies with errors
This suggests that your ISP dissallows mail sent via this method.
rachalmers:
I've tried with sendmail, as shown below. It tells me it works, but I never see the email.
Give it a few days and the mail will probably be returned to you as being undeliverable.
rachalmers:
To: Robert Chalmers [[email protected]]
From: Skin Care Australia [[email protected]]
Is [email protected] a valid email address on the server hosting your zencart? If not, this email will probably fail because the system will reject at as not being sent by an authorised sender.
rachalmers:
I've tried with SMTP
This one is probably the least likely to work on a linux based system. Very few ISP's allow for this type of access, if it does work it often indicates that the server has been setup in such a way that it is vulnerable to abuse because very few (if any) checks and balances are in place.
rachalmers:
and it fails no matter what address I use in the From field.
Have you tried using [email protected] in the 'from' field?
If anything is going to work it will be this.
rachalmers:
now, sendmail-f appears to work as well as sendmail.
Success: E-mail #2 has been resent to [email protected]
The 'success' here simply means that the sendmail program has accepted the mail. It doesn't suggest that the mail has actually left the server. It is possibly sitting in an outgoing mail spool (for any number of reasons).
rachalmers:
SMTPAUTH fails.
ERROR: Failed sending email to: "Robert Chalmers" with subject: "test from zencart" The following From address failed: [email protected]
SMTPAUTH will only work if your server requires SMTP authorization. It is similar to SMTP in functionality, in that the mail is sent direct (rather than via sendmail) , but to avoid the abuse that is possible with regular SMTP this method requires authentication, which means you must define a valid username, password, host and port in the zencart settings. SMTPAUTH is generally only needed/required if you are using your ISP's servers as a relay. I would suggest that since zencart and the mailserver it uses are in the same domain this method probably isn't widely used. It would probably be one of the last methods that I'd be trying.
rachalmers:
QMAIL appears to work - and really quickly too.
Success: E-mail #2 has been resent to [email protected]
This is where things get a liitle 'blurred' (in my opinion). Sendmail and Qmail both serve the same purpose, and generally speaking only one or the other will be used by your ISP.
The fact that BOTH appear to work with your ISP would imply a 'symbolic link' is being used, so when the mail is sent to sendmail it is actually going to Qmail (or vice verci). It would be wise to verify with your ISP which of these mail agents are actually being used and select the appropriate one. If set correctly it usually won't make a difference, but if your ISP haapens to have both programs avaialble and only one of them configured it is easy for mail to end up in a 'black hole'.
rachalmers:
Summary:
sendmail takes forever to process the email. I mean like about 5 minutes. appears to work. but I get no email
sendmail-f the same.
qmail appears to send the mail, and processes it very quickly. milliseconds, like it should.
I find this a bit disconcerting, because as stated above, sendmail and qmail are different programs that perform the same purpose. If both appear to work (and work correctly) it is (usually) by virtue of a symbolic link. The fact that you are getting different results implies both programs are installed. This will result in an administration nightmare, and I'd go as far to say that only one of them has actually be configured. Check with your host to see which one they are actually using.
rachalmers:
I'm on a standard hosting server,
Yes, but which 'standard' (The nice thing about standards is that there are so many to choose from) <grin>
rachalmers:
alldomains.com on a linux server. Everything else I run has no problems with email. moodle, and a number of others.
Wow. Moodle eh? That took me a bit by surprise. I guess you have something to do with the education system? I always though I'd be the only person here that's even heard of moodle (as popular as it is).
rachalmers:
now this is really ODD. ODD I say. I have another ecommerce site, with zen-cart installed, on the same hosting server, and it uses PHP ---- and works with NO ERRORS - except of course it wont send the lost password. However - all other email works fine ???
go figgure
This may (even probably) has something to do with the 'from' addresses being used? Some systems are pretty strict in this regard and will only accept/send emails from 'known' addresses.
rachalmers:
I don't understand why this one is failing....
So any authoritative assistance would be really help full...
thanks guys.
I'm not going to be as bold to say I'm an authority in this regard, and I certainly can't say why yours is failing, but I can say that due to the sheer number of spammers and would-be abusers 'out there', most systems tend to get locked down pretty tight these days and it can sometimes take a bit of juggling and experimenting to find what works and what doesn't. There is no single answer or method that will work for everyone.
I do have a couple of suggestions though.
-
Try to get your webhost involved. They will have log files that will let them know exactly what is going on.
-
If your host gives you cPanel for administration purposes have a look for the 'Mail troubleshooting' or the 'Email Delivery Route' module(s).
Enter a few email addresses, eg *[email protected] *It may provide a few clues as to what is going on (especially if the test mails are to one of your own aliases on the same server).
Anyway, as I said at the start, I've no real answers or solutions for you, I'm just imparting a few things that I know that may or may not be helpful.
Cheers
Rod