Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 17th, 2001, 05:35 PM
dniceo dniceo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Reading, PA
Posts: 5 dniceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question

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.

Reply With Quote
  #2  
Old April 18th, 2001, 08:09 AM
unobserved unobserved is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 11 unobserved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to unobserved
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.

Reply With Quote
  #3  
Old April 18th, 2001, 10:04 AM
dniceo dniceo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Reading, PA
Posts: 5 dniceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old April 18th, 2001, 10:12 AM
unobserved unobserved is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 11 unobserved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to unobserved
The one that I usually use is pretty simple to get your head wrapped around.

MIME::Lite

Reply With Quote
  #5  
Old April 18th, 2001, 10:25 AM
dniceo dniceo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Reading, PA
Posts: 5 dniceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thank you.

Reply With Quote
  #6  
Old April 20th, 2001, 06:38 AM
dniceo dniceo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Reading, PA
Posts: 5 dniceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #7  
Old April 20th, 2001, 08:18 AM
unobserved unobserved is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 11 unobserved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to unobserved
are you sure the email client you were using was capable of receiving html email?

Reply With Quote
  #8  
Old April 20th, 2001, 08:24 AM
dniceo dniceo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Reading, PA
Posts: 5 dniceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #9  
Old April 20th, 2001, 08:59 AM
unobserved unobserved is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 11 unobserved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to unobserved
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > How to create formatted email message


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway