Gossamer Forum
Home : Products : Gossamer Links : Discussions :

insert into mail headers

Quote Reply
insert into mail headers
I need to insert line
Content-type: text/plain; charset=koi-8r
into all mail headers. How it to make?

What file needs to be corrected? In a forum I have not found the answer.

Quote Reply
Re: insert into mail headers In reply to
Mailer.pm

Regards,

Eliot Lee
Quote Reply
Re: insert into mail headers In reply to
Hi,

Look for GT::Mail->send () in the code, and add:

'Content-Type' => 'text/plain; charset=koi-8r'

into the list of options. Unfortunately it's in a few spots (add.cgi, modify.cgi, user.cgi and Links/Tools.pm).

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] insert into mail headers In reply to
There is no such a file, Mailer.pm in LinksSQL (as far as I know, this file was in Links 2). There is file /GT/Mail.pm but i still could not find where to place the header.

Please help. Thank you!

In the meatime, i did the following: found all entries for 'GT::Mail->send ' in all LinksSQL files and replaced with the following:

GT::Mail->send ( {
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
from => $CFG->{db_admin_email},
subject => Links::language('USER_VALEMAILSUB'),
to => $IN->param('Email'),
'Content-Type' => 'text/plain; charset=windows-1251',
msg => $msg
} ) or die $GT::Mail::error;


but it did not help, i still get messages in unwanted encoding.....
Quote Reply
Re: [Danilov] insert into mail headers In reply to
It seems, this is a bug in GT::Mail.
There is no way to add custom charset into the header, which is also used in the header.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...