Discussion:
Send both parts of a multipart email
(too old to reply)
David Allender
2008-08-22 00:02:03 UTC
Permalink
Hello all,

I was wondering if i can send both parts of a multipart email.
Basically what im trying to do is,

send an email to a person with text/enriched text at the top of the
email, and text/html at the bottom of the email. The reason being is
so: Its a cgi that handles a form, and i need it to be text/enriched
above because i want to keep the formatting of what the user inputs in
the form, while keeping the ability to make the words bold, etc. and
i need the email part because i am basically appending an html file to
the bottom. The client needs to see both of them in the email. Any
ideas?

Thanks,
David
Jeff Pang
2008-08-23 06:31:56 UTC
Permalink
Post by David Allender
send an email to a person with text/enriched text at the top of the
email, and text/html at the bottom of the email.
Yes, MIME::Lite can do that.
rvtol+ (Dr.Ruud)
2008-08-23 07:53:35 UTC
Permalink
Post by David Allender
I was wondering if i can send both parts of a multipart email.
Basically what im trying to do is,
send an email to a person with text/enriched text at the top of the
email, and text/html at the bottom of the email. The reason being is
so: Its a cgi that handles a form, and i need it to be text/enriched
above because i want to keep the formatting of what the user inputs in
the form, while keeping the ability to make the words bold, etc. and
i need the email part because i am basically appending an html file to
the bottom.
The client needs to see both of them in the email.
Is it OK for the second part, the html part, to appear as an attachment?
If not, then I would use one part, only HTML (use <pre> to preserve the
formatting).

See also http://en.wikipedia.org/wiki/MIME

Some mail clients will show all the parts together, and some wont.
--
Affijn, Ruud

"Gewoon is een tijger."
David Allender
2008-08-25 04:06:57 UTC
Permalink
Post by rvtol+ (Dr.Ruud)
Post by David Allender
I was wondering if i can send both parts of a multipart email.
Basically what im trying to do is,
send an email to a person with text/enriched text at the top of the
email, and text/html at the bottom of the email.  The reason being is
so:  Its a cgi that handles a form, and i need it to be text/enriched
above because i want to keep the formatting of what the user inputs in
the form, while keeping the ability to make the words bold, etc.  and
i need the email part because i am basically appending an html file to
the bottom.
The client needs to see both of them in the email.
Is it OK for the second part, the html part, to appear as an attachment?
If not, then I would use one part, only HTML (use <pre> to preserve the
formatting).
See alsohttp://en.wikipedia.org/wiki/MIME
Some mail clients will show all the parts together, and some wont.
--
Affijn, Ruud
"Gewoon is een tijger."
Thanks all, I think I have came up with a conclusion. I think I would
just send the HTML as an attachment, but is there a way for me to do
it in the cgi without having to put a <input type="file">? Also, I
dont believe I can use a module, so that would be sort of a
hindrance. Well if that doesn't work, can someone please try
explaining me the <pre> HTML tag? The email client we use is outlook,
so it will only be able to display one type of content type in the
email. So, I just hope the <pre> tags will work or possibly attaching
an email through the cgi without the html (input typ=file) form.
Rob Dixon
2008-08-25 21:14:51 UTC
Permalink
Post by David Allender
Thanks all, I think I have came up with a conclusion.
I think I would just send the HTML as an attachment, but is there a way for
me to do it in the cgi without having to put a <input type="file">?
Also, I dont believe I can use a module, so that would be sort of a
hindrance.
Well if that doesn't work, can someone please try explaining me the <pre>
HTML tag?
The email client we use is outlook, so it will only be able to display one
type of content type in the email.
So, I just hope the <pre> tags will work or possibly attaching an email
through the cgi without the html (input typ=file) form.
So what was the conclusion?!

- What has your question to do with CGI?

- I would be very surprised if you have to write entirely in native and built-in
Perl. I couldn't send an email at all under those circumstances without a lot
of work

- The behaviour of the <pre> tag is very loosely defined. RFC 1866 says this
Post by David Allender
The <PRE> element represents a character cell block of text and is
suitable for text that has been formatted for a monospaced font.
In general it simply preserves whitespace, and is rendered in a monospaced
font

- Outlook is many years old, and even the email client on Vista is better. If
you have any control over what people use then choose something better

- <pre> tags may work. I don't think you've told us what you want to do, apart
from sending the same data in both text and HTML in a single mail

Rob
rvtol+ (Dr.Ruud)
2008-08-25 23:47:37 UTC
Permalink
Post by Rob Dixon
- Outlook is many years old, and even the email client on Vista is
better.
I guess you are mixing up Outlook and Outlook Express there.
--
Affijn, Ruud

"Gewoon is een tijger."
Rob Dixon
2008-08-26 05:26:04 UTC
Permalink
Post by rvtol+ (Dr.Ruud)
Post by Rob Dixon
- Outlook is many years old, and even the email client on Vista is
better.
I guess you are mixing up Outlook and Outlook Express there.
No I understand the difference. Outlook first came out in 1997 and has been
tweaked almost annually ever since. I think the latest version was a couple of
years ago, but it suffers from classic Microsoft over-burdening with exotic
facilities and lack of flexibility. I still prefer the email client that comes
with Vista.

Rob
rvtol+ (Dr.Ruud)
2008-08-26 17:24:10 UTC
Permalink
Post by Rob Dixon
Post by rvtol+ (Dr.Ruud)
Post by Rob Dixon
- Outlook is many years old, and even the email client on Vista is
better.
I guess you are mixing up Outlook and Outlook Express there.
No I understand the difference. Outlook first came out in 1997 and
has been tweaked almost annually ever since. I think the latest
version was a couple of years ago, but it suffers from classic
Microsoft over-burdening with exotic facilities and lack of
flexibility. I still prefer the email client that comes with Vista.
In that sense, Perl is also many years old. (and still it feels like new
with every higher version :)

Outlook is quite sophisticated groupware software, OLE, VBA, custom
forms, .Net?, etc., so you can just make it do what you want and how you
want it.
The nicest thing I every wrote for it was something to easily attach
multiple spam messages to a single message, to report all those messages
to spamcop in a single go.
--
Affijn, Ruud

"Gewoon is een tijger."
Jeff Pang
2008-08-26 06:03:35 UTC
Permalink
Outlook has great features to be combined with MS's Exchange.
Outlook Express is just an email client, which even can't support IMAP protocal.
I once worked on email systems, had dozens of accounts set up in my OE,:)

--
Jeff Pang
- using one of my 1000+ email accts
Message du 26/08/08 07:26
De : "Rob Dixon"
A : "Perl Beginners"
Copie à : "Dr.Ruud"
Objet : Re: Send both parts of a multipart email
Post by rvtol+ (Dr.Ruud)
Post by Rob Dixon
- Outlook is many years old, and even the email client on Vista is
better.
I guess you are mixing up Outlook and Outlook Express there.
Créez votre adresse électronique ***@laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
rvtol+ (Dr.Ruud)
2008-08-26 17:25:19 UTC
Permalink
Post by Jeff Pang
Outlook Express is just an email client, which even can't support IMAP protocal.
No, Outlook Express works fine with IMAP.
--
Affijn, Ruud

"Gewoon is een tijger."
Continue reading on narkive:
Loading...