|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Greetings:
I'm trying to create a plain-text formatted email message. I've tried using formats and it works great on the terminal, but lousy in email. I've tried using "\t" (tabs) to space things out, but haven't found an algorithm to keep columns justified properly. This is example data, but type can be Application, Content, Performance, Port, or Ping. Quantity Type Frequency Unit Charge Total 28 Ping 5 30.00 840.00 9 Ping 15 10.00 90.00 5 Ping 30 7.50 37.50 11 Port 5 30.00 330.00 Subtotal: 1297.50 Less Discount: 259.50 Total Due 1038.00 Thoughts? P.S. I've also checked out cpan.org and cpan2.org to no avail (not that I could have missed something). Thank you. |
|
#2
|
|||
|
|||
|
The only way I've been able to create formatting in email is to send them as text/html.
plain/text means everything is just plain, so formatting doesn't work. (atleast in my experience) Tables in HTML are the only way to go that i know of. |
|
#3
|
|||
|
|||
|
Thank you.
Do you know of any CPAN or other library or code module for sending HTML code? I have the PHP code to handle multi-part documents, but it refers to built in functions within PHP. Thank you. |
|
#4
|
|||
|
|||
|
The one that I usually use is pretty simple to get your head wrapped around.
MIME::Lite |
|
#5
|
|||
|
|||
|
Thank you.
|
|
#6
|
|||
|
|||
|
I tried using MIME::Lite with no success.
See http://forums.devshed.com/showthrea...13698&forumid=6 for the details including code used, output, etc. Please advise. Thank you. |
|
#7
|
|||
|
|||
|
are you sure the email client you were using was capable of receiving html email?
|
|
#8
|
|||
|
|||
|
Yes.
1. I am using Eudora Paid Mode 4.3.2. 2. I receive other emails that are HTML email Thoughts? This is driving me nuts ;-) Thank you. |
|
#9
|
|||
|
|||
|
that's really strange because if your email client WASN'T set up to receive html emails then it would display the html code in the email, instead of stripping it out.
i've still got a sneaky suspicion that is has something to do with your client .. if you want you can send me an email and i'll take a look scomrie@shrinkingplanet.ca |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > How to create formatted email message |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|