Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can i create an email with table and data in body

by reisinge (Hermit)
on Jun 26, 2013 at 11:29 UTC ( [id://1040755]=note: print w/replies, xml ) Need Help??


in reply to How can i create an email with table and data in body

I would use Email::MIME as recommended here and pass the table data via body_str key. You can also format the table data as HTML and add content_type => 'text/html', to attributes (see send_mail subroutine here).

Well done is better than well said. -- Benjamin Franklin

Replies are listed 'Best First'.
Re^2: How can i create an email with table and data in body
by Perlseeker_1 (Acolyte) on Jun 26, 2013 at 14:04 UTC

    Do we have any examples perl scripts

    where we can create some tables in email body

    and palce data in those tables and send an email

    I have mutliple rows as my input

    As i am new to this email functionality,any inputs

      Maybe it helps you tackle your problem better if you divide it into separate steps:

      1. Send a text-only mail (using MIME::Lite)
      2. Generate an HTML page as a file with the information you want (using a templating system)
      3. Use MIME::Lite to send the HTML file as the mail body

      From how I understand your current post, it is not clear to me with which part you have problems.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1040755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-23 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found