Gossamer Forum
Home : Products : Gossamer Links : Discussions :

mail headers...

Quote Reply
mail headers...
Hi

I still have a problem in Beta 5 with headers that appear in the top of all messages sent out when validating links. This is what it looks like in the message field:


To: webmaster@a4.no
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: GT::Mail 1.015 (Site: http://www.gossamer-threads.com; OS: linux)
Mime-Version: 1.0


Your link:

http://www.xxx

that was submitted on 2001-01-03 has been rejected

Quote Reply
Re: mail headers... In reply to
and me.

my server uses qmail if that has anything to do with it?

http://www.ASciFi.com/ - The Science Fiction Portal
Quote Reply
Re: mail headers... In reply to
Hmmmm....... the fact that the headers are ending up in the body tells me that qmail sendmail isn't looking for the headers. Instead of using for instance /usr/sbin/sendmail try /usr/sbin/sendmail -t

The -t switch tells qmails sendmail to look for those headers. I use qmail also but haven't gotten around to the mail customizations of Links SQL yet. Will probably have the same troubles once I do though.... :-)

Hope that helps,

Wil

Quote Reply
Re: mail headers... In reply to
Ok.... I am trying to get the mail to work correctly now. You inspired me. We can't use the -t in the sendmail string though. I am going to dig around to find the best place to use it and I will get back to you.

If anyone thinks they can help with this one it is appreciated. Qmail MUST get the -oi -t switch passed followed by the typical To: From: Subject: etc. etc......

Wil

Quote Reply
Re: mail headers... In reply to
Hi

All my other mail sent from qmail by php works fine, but not just Links SQL B5.

Quote Reply
Re: mail headers... In reply to
If you are looking at editing the Mail Header, you need to edit the Mailer.pm file.

Look for the following codes:

Code:

# Print the mail headers.
print $s "To: ", $self->{'to'}, $CRLF;
print $s "From: ", $self->{'from'}, $CRLF;
print $s "Reply-to: ", $self->{'reply'}, $CRLF if $self->{'reply'};
print $s "X-Mailer: Mailer::$VERSION (http://www.gossamer-threads.com/scripts/)$CRLF";
print $s $self->{'headers'}, $CRLF if $self->{'headers'};
print $s "Subject: ", $self->{'subject'}, $CRLF, $CRLF;


Now, if you want to use your own internal mail header, than you would need to hack Mailer.pm to acknowledge your internal mail headers.

Regards,

Eliot Lee
Quote Reply
Re: mail headers... In reply to
Well don't feel too bad Areh.... It wasn't working in B4 either and I am using B4 on my live site. Receiving over 20 hate mails a day over here. I had to put the Qmail fix on hold while I get some other bugs fixed. I will get back to it this week sometime.

Wil

Quote Reply
Re: mail headers... In reply to
Hi,

Can you print out what the actual headers are? (i.e. view the headers in the message, and print them out).

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mail headers... In reply to
Return-Path: <anonymous@mail.proffhotell.com>
Delivered-To: webmaster@a4.no
Received: (qmail 3086 invoked by uid 99); 13 Jan 2001 04:51:16 -0000
Date: 13 Jan 2001 04:51:16 -0000
Message-ID: <20010113045116.3085.qmail@mail.proffhotell.com>
From: webmaster@a4.no
Subject: Your link has been rejected.

To: webmaster@a4.no
Content-Type: text/plain

Content-Transfer-Encoding: 7bit

X-Mailer: GT::Mail 1.015 (Site: http://www.gossamer-threads.com; OS: linux)

Mime-Version: 1.0




Your link:



http://www.xx



that was submitted on 2001-01-03 has been rejected

for one of the following reasons:



1. Unsuitable content.

2. Duplicate URL.



If you have any questions, please don't

Quote Reply
Re: mail headers... In reply to
Hi,

Can you look at your language file and make sure there is no new lines in the VAL_APPROVESUB language listing? I think this is what may be causing the problems. I'm going to update the code so it strips any new lines for the mailings.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mail headers... In reply to
VAL_APPROVESUB doesnīt have any blank lines. Nor does it have any space after the approved! string.

Quote Reply
Re: mail headers... In reply to
Would it be possible to get shell access so I can fix this?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mail headers... In reply to
Sent.

Quote Reply
Re: mail headers... In reply to
Let me know what you find please Alex as it will help with my Qmail troubles also.

Wil

Quote Reply
Re: mail headers... In reply to
Hi,

Can you try it now and see if it works? If you still have problems, do you have access to an SMTP server that you can use? Try and use SMTP and see if it works.

Also, what mail client are you using to read the message?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mail headers... In reply to
Hi

I still get headers in the message. I sent a "Delete and email reason" on a test link that was registered on your emailadress. See if it comes correctly at your place. If it does, could it bee a language thing that messes up ?

I use Outlook Express to my mail. Qmail is used as sendmail on the server.

Are

Quote Reply
Re: mail headers... In reply to
Hi

At webmail, I can see the message get correctly. Just not in Norwegian Outlook Express.

All other messages comes correctly, thats what makes this strange.

Quote Reply
Re: mail headers... In reply to
i am having the problems with qmail/outlook express combined as well.

http://www.ASciFi.com/ - The Science Fiction Portal
Quote Reply
Re: mail headers... In reply to
Hi,

Can you try it now, I think I've fixed it.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: mail headers... In reply to
You got it Alex, itīs fixed !

Quote Reply
Re: mail headers... In reply to
Alex, Any chance of finding out what mod you had to make?

Wil

Quote Reply
Re: mail headers... In reply to
Send me an email and I can send you updated files.

Cheers,

Alex

--
Gossamer Threads Inc.