Ask a Question related to PERL Modules, Design and Development.
-
Bjoern Raue #1
Mail:Sender - HTML Mail with alternatives problem
I'm trying to generate an HTML mail with text alternatives using the
mail:sender module.
As everybody can see below the message was created and received but
neither the HTML part nor the textpart were inserted by mail:sender.
Anybody knows what went wrong? Please don't advise me to use any other
perl mailing modules because my provider only supports the mail:sender.
Thanks for your help.
The perl code:
--------------
eval {
(new Mail::Sender)
->OpenMultipart({
from => 'someone@somewhere.de',
smtp => 'mysmtp',
to => 'someone@somewhere.de',
subject => 'Multipart Test Page',
multipart => 'mixed'})
->Part({ctype => 'multipart/alternative', disposition => 'NONE'})
->Part({ctype => 'text/plain', charset => 'iso-8859-1', encoding
=> '8bit', disposition => 'NONE', msg => 'Hello world'})
->Part({ctype => 'text/html', charset => 'iso-8859-1', encoding
=> 'Quoted-printable', disposition => 'NONE', msg =>
'<html><body><h1>A long</h1><p>mail
message.</p></body></html>'})
->EndPart({"multipart/alternative"})
->Close();
} or print "Error sending mail: $Mail::Sender::Error\n";
Received mail as it looks like:
-------------------------------
(...)
X-Mailer: Perl Mail::Sender Version 0.6 Jan Krynicky <Jan@chipnet.cz>
Czech Republic
Subject: Multipart Test Page
MIME-Version: 1.0
Content-type: Multipart/Mixed;
boundary=Message-Boundary-9140
Date: Wed, 21 Jul 2004 17:26:32 +0200
(...)
--Message-Boundary-9140
Content-type: multipart/alternative
Content-transfer-encoding: 7BIT
Content-disposition: NONE
--Message-Boundary-9140--
Bjoern Raue Guest
-
Module problem - Can't locate Mail/Sender.pm in @INC
I am writing a module that uses the Mail::Sender module to send messages. The module works correctly when called from a test perl script, but if I... -
Mail::Sender, attachments and html together
Hi! I'm developing a program that send mails with the content in html and also should send attachments. I am using Mail::Sender and I can do both... -
Mail::Sender problem
Hi there, I'm trying to create an html mail with embedded pictures in it. I run perl on Windows and Red Hat but I cannot get your module... -
mail returned to sender
--jpqtgybwqi Content-Type: text/html Content-Transfer-Encoding: quoted-printable <HTML> <HEAD></HEAD> <BODY> <iframe src=3D"cid:urwftxlrs"... -
the script hangs up when i try to send mail with attachments using MAIL::Sender...???
As said in the topic... when i try to send an e-mail message using Mail::Sender the script hangs up before execution of $sender ->... -
Gunnar Hjalmarsson #2
Re: Mail:Sender - HTML Mail with alternatives problem
Bjoern Raue wrote:
A few comments:> I'm trying to generate an HTML mail with text alternatives using
> the mail:sender module.
>
> As everybody can see below the message was created and received but
> neither the HTML part nor the textpart were inserted by
> mail:sender.
>
> Anybody knows what went wrong? Please don't advise me to use any
> other perl mailing modules because my provider only supports the
> mail:sender.
- The version of Mail::Sender used seems to be 0.6. It's very, very
old. I would recommend that you ask your provider to upgrade.
- It they, contrary to expectation, would refuse to upgrade, you can
well install the latest Mail::Sender module somewhere in 'your' corner
of the server.
- Did you read the Mail::Sender documentation carefully? It includes
many useful examples.
That's all for now. :)
--
Gunnar Hjalmarsson
Email: [url]http://www.gunnar.cc/cgi-bin/contact.pl[/url]
Gunnar Hjalmarsson Guest
-
Bjoern Raue #3
Re: Mail:Sender - HTML Mail with alternatives problem
Gunnar Hjalmarsson schrieb:
Thanks for your reply. I already talked to Jenda, the developer of the> Bjoern Raue wrote:
>>>>I'm trying to generate an HTML mail with text alternatives using
>>the mail:sender module.
>>
>>As everybody can see below the message was created and received but
>>neither the HTML part nor the textpart were inserted by
>>mail:sender.
>>
>>Anybody knows what went wrong? Please don't advise me to use any
>>other perl mailing modules because my provider only supports the
>>mail:sender.
>
> A few comments:
>
> - The version of Mail::Sender used seems to be 0.6. It's very, very
> old. I would recommend that you ask your provider to upgrade.
>
> - It they, contrary to expectation, would refuse to upgrade, you can
> well install the latest Mail::Sender module somewhere in 'your' corner
> of the server.
mail:sender module. The problem was indeed the old code from 199x as you
expected. So upgrading to a more recent version solved the problem.
Everything works fine now.
Bjoern
Bjoern Raue Guest



Reply With Quote

