Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't send emails


gandalf458

Recommended Posts

Posted

When the system tries to send an email (eg new account) or if I try to send an email to a customer from osC the email is returned with:

 

--- Problems not related to specific addresses in the message:

553 5.0.0 < <[email protected]> SIZE=534... Unbalanced '<'

*** <[email protected]

 

In the store's config I have E-mail from "Lils Warehouse" <[email protected]>

 

Any ideas please? I have put xxx in place of the real, vlid, working domain name.

Posted

Try the email address without the quotes:

 

Lils Warehouse <[email protected]>

 

Not sure this will fix your problem, I'd have to go look at the code to be sure.

 

Ben

Posted
Try the email address without the quotes:

 

Lils Warehouse <[email protected]>

 

Thanks. No luck. I imagine the quotes are required round the name because there's a space but I've tried just the email address without name, quotes or <> still with the same results. Since I've not changed anything to do with mailing it is a bit of a mystery.

Posted
I know a bare internet style email address works (i.e., [email protected]); no quotes, no brackets.

 

Your going to force me to look at the code ...

 

Ben

 

I'll be interested to know what you find. I've tried to find the code but have got lost where to look.

 

As you say, bare email address - I tried an email to a customer - does work. However, a welcome new customer email has the from address as "Store Owner" <[email protected]> and that fails.

Posted

I gather that the email format must be [email protected] for an SMTP server so I guess the error lies either in tep_mail() or the call to it in create_account.php ?

 

tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Posted

What type of sever are you hosted on (Window / Linix)? What version of Apache / PHP / MySQL are you running?

 

Go to the admin -> Server Info and post the top of the page here...

 

What do you know about the email server your are connected to? Do you know what type / version?

 

Ben

Posted

You forced me to search the code...

 

The email from parameter (PHP variable EMAIL_FROM) is only used in three places:

 

1) email sent from admin -> tools -> send email (and only if the administrator doesn't override the default provided when the page is displayed)

2) newsletters sent from admin -> tools -> newsletter manager (no option to change)

3) product notifications sent from admin -> tools -> newsletter manager (no option to change)

 

All other emails are either sent to, or sent from, the combination of Store Owner and E-mail Address.

 

Let's look at your email parameters. What email transport method are you using and what is the e-mail linefeed character defined as?

 

Ben

Posted

Thanks Ben.

 

I'm running this all on my test server at present. I'm running Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2 and Mercury SMTP Server and Mercury SMTP relay client through my ISP's mail server. Despite having SSL installed it appears not to be using SSL. (Sorry, I can't find admin > server info so I don't know if that provides more information or not.)

 

Under Email Options I have transport method SMTP and linefeeds LF.

 

I have changed the Email From in osC so it is just the bare email address and I can send emails to customers from admin > customers > email. But the welcome email on setting up a new account seems to be sent from "Store Owner" <[email protected]> and I can't see how to change this so that it is just the bare email address.

Posted

I wonder, shouldn't ALL emails be sent using EMAIL_FROM then the store owner/administrator has the choice of email address format? And it would be consistent too.

Posted

When the email transport is set to SMTP, the linefeed parameter must be defined as CRLF. Correct your linefeed parameter definition.

 

The Store Owner parameter is defined as plain text (e.g., Joe Smith). Do not use quotes.

 

The Store email parameter is defined as a bare internet style, no brackets (e.g., [email protected])

 

The email class in includes/classes/email.php or admin/includes/classes/email.php (there are two copies if the same file) adds the quotes and brackets to the passed parameters (which pass straight through tep_mail()) to form the source / destination email address (e.g., "Joe Smith" <[email protected]>) passed to the PHP library which actually sends the message.

 

I take it you are listing the error messages listed in the Mecury SMTP server log file.

 

One store from address would be useful, but it is what it is...

 

Ben

Posted
When the email transport is set to SMTP, the linefeed parameter must be defined as CRLF. Correct your linefeed parameter definition.

Check - changed

 

The Store Owner parameter is defined as plain text (e.g., Joe Smith). Do not use quotes.

Check - I've even removed an apostrophe just to be sure

 

The Store email parameter is defined as a bare internet style, no brackets (e.g., [email protected])

Check

 

I take it you are listing the error messages listed in the Mecury SMTP server log file.

Tis the email returned by Mercury to the postmaster. I just tried the I've forgotten my password link and I get two reply emails from Mercury. Part of the message reads

 

Received: from spooler by localhost (Mercury/32 v4.01b); 10 Apr 2008 10:37:44 +0100

From: Mail Delivery System <postmaster@localhost>

To: <[email protected]

Date: Thu, 10 Apr 2008 10:37:33 +0100

Subject: Delivery failure notification

 

 

One store from address would be useful, but it is what it is...

Point taken - and many thanks.

Posted

All that and it still doesn't work...

 

Do you know that your Mercury configuration is correct? Can you use an independent email agent to send and receive email via the Mercury? I don't know anything about Mercury, but unless you inadvertantly changed some to the osCommerce email code it does work.

 

The other option is to talk directly to your ISP email server. To do that, you will need to load the SMTP Authenication contribution located here. It's quite easy to install and has a debug capability that will tell me what is going on at the protocol level. It will also eliminate Mercury from the equation.

 

Ben

Posted

I have the peeps at Mercury looking at the prob as well. As I have said there, given that osC works for everyone else and Mercury works for everyone else it is something of a mystery.

 

I'm only using Mercury cos it came as part of the XAMPP/Apaxhe/PHP/MySQL package. I can send messages to the outside world using php mail() provided the email addresses are bare [email protected] addresses, but I have not tried to set it up so I can send emails from Thunderbird. And I don't intend using it for receiving mail anyway.

 

It sounds as thought that contribution is what I need...

 

Thanks

  • 2 months later...
Posted

Hi All,

 

I have a client with the same issue, has there been any updates to OsCommerce lately that would do this?

 

Any emails sent from a contact page submission, or to a customer don't go through (oddly order notificiations to the admin do go through). The error in the mail log is:

 

Jun 23 20:46:14 linux10 sendmail[10095]: m5O2kEoi010095: <"OwnersName" <[email protected]>... Unbalanced '<'

Jun 23 20:46:14 linux10 sendmail[10095]: m5O2kEoi010095: lost input channel from localhost.localdomain [127.0.0.1] to MTA after rcpt

Jun 23 20:46:14 linux10 sendmail[10095]: m5O2kEoi010095: from=<[email protected]>, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

 

The settings are correct in the OsCommerce back end, they are exactly in line with what you would expect:

Owner Name: OwnersName

Admin Email: [email protected]

 

Yet OsCommerce seems to be adding an extra set of tags which confuses sendmail. The maillog shows the same error regardless whether SMTP or PHPMail is used.

 

Any suggestions would be great.

Thanks,

- Will

  • 2 weeks later...
Posted
Hi All,

 

I have a client with the same issue, has there been any updates to OsCommerce lately that would do this?

 

Any emails sent from a contact page submission, or to a customer don't go through (oddly order notificiations to the admin do go through). The error in the mail log is:

 

Jun 23 20:46:14 linux10 sendmail[10095]: m5O2kEoi010095: <"OwnersName" <[email protected]>... Unbalanced '<'

Jun 23 20:46:14 linux10 sendmail[10095]: m5O2kEoi010095: lost input channel from localhost.localdomain [127.0.0.1] to MTA after rcpt

Jun 23 20:46:14 linux10 sendmail[10095]: m5O2kEoi010095: from=<[email protected]>, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]

 

The settings are correct in the OsCommerce back end, they are exactly in line with what you would expect:

Owner Name: OwnersName

Admin Email: [email protected]

 

Yet OsCommerce seems to be adding an extra set of tags which confuses sendmail. The maillog shows the same error regardless whether SMTP or PHPMail is used.

 

Any suggestions would be great.

Thanks,

- Will

 

I also have this extact same problem. Has anyone found a solution as of yet?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...