xoops forums

jctsup1

Not too shy to talk
Posted on: 2002/6/18 5:20
jctsup1
jctsup1 (Show more)
Not too shy to talk
Posts: 146
Since: 2002/5/23
#1

Email Issues

Guys -

Updated all 3 of the sites to use the rc3.01 am I am sorry to say that we are still having the same results with mail to certain systems.

Per my mail server logs:

66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:08 -0500 Client session Connected
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:13 -0500 Client session <<< 220 www2.networkshosting.com ESMTP
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:13 -0500 Client session >>> EHLO mail.tindillier.net
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:13 -0500 Client session <<< 250 8BITMIME
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:13 -0500 Client session >>> MAIL From:<webmaster@2bones.com>
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:13 -0500 Client session <<< 250 ok
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session >>> RCPT To:<geoff@hughes2k.com>
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session <<< 250 ok
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session >>> DATA
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session <<< 354 go ahead
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session <<< 451 See http://pobox.com/~djb/docs/smtplf.html.
66.96.146.42 [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session *** <webmaster@2bones.com> <geoff@hughes2k.com> 1 743 00:00:00 ERROR
SYSTEM [0000030C] Mon, 17 Jun 2002 22:59:14 -0500 Client session Disconnected

I would consider this a major showstopper as this is not just happening with 1 mail server, this is the 3rd different server that I have encountered this problem with in as many days. I am in a position where I can monitor mails & see what the system is generating and am willing to help you guys debug this. I really, really dig XOOPS & think it kicks ass - I just need some help in figuring this out as I know I am not the only 1 running this on IIS and someone else will run into this problem at 1 point or another.

Anybody??

Sircuri

Just popping in
Posted on: 2002/6/18 6:55
Sircuri
Sircuri (Show more)
Just popping in
Posts: 43
Since: 2002/1/3 1
#2

Re: Email Issues

What mail servers are you using? I mean.. we need to know everything because you are the first one with this problem.

What are your mailservers (programs), what platform? PHP version.. everything.

jctsup1

Not too shy to talk
Posted on: 2002/6/21 16:23
jctsup1
jctsup1 (Show more)
Not too shy to talk
Posts: 146
Since: 2002/5/23
#3

Re: Email Issues

Thanks for the reply. This has nothing to do with my Mail Server as my mail server is not generating the email - XOOPS & PHP are. However, my specs are as follows:

Web Server:
Dual P3 3000
Win2K Advanced Server
IIS 5
256 Megs of Ram
PHP 4.21 (using cgi version)
Latest release of Xoops

Mail Server:
Windows2000 Advanced Server
AMD Athalon 1800
512 Megs of Ram
Merak Mail Server Professional

I contacted support for the mail server & this is the response I got which makes perfect sense as PHP is generating the email not the mail server itself:

Quote:

The email content is not conforming to the RFC where the proper line termination is supposed to include both a CR and LF. It's likely you're getting just LF's if you were to look at the email in a hex editor.


The strange thing is that if I open the email in question, & hit enter to add a CR & then close the email it gets delivered without any problems. This is only happening with email that XOOPS generates - other modules that generate email such as PP-News have no problems. I have copies of the emails as they were generated if anyone wants to see them.

Thanks

Anonymous

Posted on: 2002/6/23 17:26
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#4

Re: Email Issues

bump

onokazu

XOOPS Founder
Posted on: 2002/6/23 17:51
onokazu
onokazu (Show more)
XOOPS Founder
Posts: 617
Since: 2001/12/13
#5

Re: Email Issues

In class/xoopsmailer.php find the following codes on line 100

$this->LE ="\n";

then change this to

$this->LE ="\r\n";

and on line 187

change

$this->body = str_replace("\r", $this->LE, $this->body);

to

$this->body = str_replace("\n", $this->LE, $this->body);

Please try if this works out your problem.

jctsup1

Not too shy to talk
Posted on: 2002/6/23 18:51
jctsup1
jctsup1 (Show more)
Not too shy to talk
Posts: 146
Since: 2002/5/23
#6

Re: Email Issues

onokazu -

You are the man -

Problem fixed & emails are being delivered!

Thanks