Koozali.org: home of the SME Server

automated email is being returned

Louis Aszod

automated email is being returned
« on: August 16, 2003, 10:07:32 PM »
Hi everyone, This is the second time this particular problem has happened and I need some help.  Customers who register on our forums or online catalog automatically get sent confirmation emails with their usernames and passwords.  Same if they've bought something; they get a receipt confirming their purchase with all of the details.  For two such customers, each using a different ISP, these emails have gotten returned with the following error message:

Remote host said: 501 5.5.2 there is a stray CR character in the message

All of the emails are sent via the php mail() function, and all have gone through except for the ones designated to these two customers.  Can someone please explain the error / how I can find what's causing this / how I might fix it?  Any help would be greatly appreciated; I'm at my wit's end here and can't afford to lose sales.  Much thanks in advance....

Louis

Dave Liquorice

Re: automated email is being returned
« Reply #1 on: August 17, 2003, 12:24:38 AM »
Hi,

This may be a red herring but I once had similar trouble with sendmail under OS/2 and Yahoo mailing lists. The blank line separating the header from the body was generated by the sequence [cr][cr][lf] rather than just [cr][lf]. Most mail systems wern't bothered but Yahoo would end up dumping part of the header into the body an makinga right mess of my postings.

As I said this might be way off track but it's worth a look.

Cheers
Dave.

Louis Aszod

Re: automated email is being returned
« Reply #2 on: August 17, 2003, 05:28:17 AM »
Dave, Hi.

What you're describing sounds like it fits the bill.  Do you have any idea how I might get rid of that extra [cr]?  Is there a template or something somewhere on the e-smith server that dictates what an email is supposed to "look like" where you can go change things?

Louis

Dave Liquorice

Re: automated email is being returned
« Reply #3 on: August 17, 2003, 02:52:42 PM »
> Do you have any idea how I might get rid of that extra [cr]?  Is there a
> template or something somewhere on the e-smith server that dictates
> what an email is supposed to "look like" where you can go change
> things?

I very much doubt that this is under template control. To solve the problem with OS/2s sendmail a friend had to dig about in the binary and change the offending byte.

Cheers
Dave.

Louis Aszod

Re: automated email is being returned
« Reply #4 on: August 17, 2003, 08:26:07 PM »
Ouch....  That's a little out of my league... (!!)  Thanks for your help though.  If anyone else has any ideas, please come ahead and respond.  I'd really like to get to the bottom of this.

Louis