Hi Guys, can some advise me on how to format HTML within a posted email using MIME lite?

Essentially I am passing form details from one page to a verify email. On this email I want to format some basic HTML. I want to pass form variables from the email and submit them back onto my site. A basic verification without a date base.

The P1 tags are set up in my css

here is my code

#!/usr/bin/perl use strict; use warnings; use diagnostics; use CGI qw(:standard); use MIME::Lite; use CGI::Carp 'fatalsToBrowser'; $CGI::POST_MAX=1024 * 100; # max 100K posts my $organisers_name= param('organisers_name'); my $organisers_address= param('organisers_address'); my $organisers_homeN= param('organisers_homeN'); my $organisers_mobile= param('organisers_mobile'); my $organisers_email= param('organisers_email'); my $prefered_contact= param('prefered_contact'); my $brides_name= param('brides_name'); my $brides_number= param('brides_number'); my $wedding_date= param('wedding_date'); my $bride_organiser= param('bride_organiser'); my $suprise= param('suprise'); my $msg = MIME::Lite->new( To =>$organisers_email, Subject =>'Verify3', Type =>'multipart/related' ); $msg->attach( Type => 'text/html', Data => '<BODY> <FORM METHOD="post" ACTION="bookings3.cgi" enc +type="application/x-www-form-urlencoded"> <INPUT TYPE="hidden" NAME="organisers_name" VA +LUE="$organisers_name"> <INPUT TYPE="hidden" NAME="organisers_address" + VALUE="$organisers_address"> <INPUT TYPE="hidden" NAME="organisers_homeN" V +ALUE="$organisers_homeN"> <INPUT TYPE="hidden" NAME="organisers_mobile" +VALUE="$organisers_mobile"> <INPUT TYPE="hidden" NAME="organisers_email" V +ALUE="$organisers_email"> <INPUT TYPE="hidden" NAME="prefered_contact" V +ALUE="$prefered_contact"> <INPUT TYPE="hidden" NAME="brides_name" VALUE= +"$brides_name"> <INPUT TYPE="hidden" NAME="brides_number" VALU +E="$brides_number"> <INPUT TYPE="hidden" NAME="wedding_date" VALUE +="$wedding_date"> <INPUT TYPE="hidden" NAME="bride_organiser" VA +LUE="$bride_organiser"> <INPUT TYPE="hidden" NAME="suprise" VALUE="$su +prise"> <INPUT TYPE="submit" VALUE="Proceed to Step 3" +> </FORM> <hr> <h1>O Name</h1> <p>$organisers_name<br> <hr> <h1>O Address</h1> <p>$organisers_address<br> <hr> <h1>O HomePh</h1> <p>$organisers_homeN<br> <hr> <h1>O Mobile</h1> <p>$organisers_mobile<br> <hr> <h1>O email</h1> <p>$organisers_email<br> <hr> <h1>O contact</h1> <p>$prefered_contact<br> <hr> <h1>B Name</h1> <p>$brides_name<br> <hr> <h1>B Number</h1> <p>$brides_number<br> <hr> <h1>B date</h1> <p1>$wedding_date<br> <hr> <h1>B Organiser Check</h1> <p1>$bride_organiser<br> <hr> <h1>B Suprise</h1> <p>$suprise<br> <hr> </BODY>', ); $msg->send; print header(-type=>'text/html'); print <<EOF ; <html> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN" "http:/ +/www.w3.org/TR/html4/loose.dtd"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" > <title>$organisers_name Hens party with The Man in the Charcoal Suit b +ooking page</title> <link rel="stylesheet" type="text/css" href="../web_layout.css" > </head> <body> <div id="everything1"> <div id="top_text"> </div> <div id="left"> <div id="navcontainer"> <ul id="navlist"> <li><a href="../index.html"><img src="../images/Logo_p +ic.jpg" width="70" height="176" border="0"></a></li> <br> <li><a><img src="../images/icons/bookings.jpg" width=" +70" height="70" border="0" hspace="0"></a></li> <li><a href="../bookings.html">Booking office</a></li> <br> <li><a href="../comments.html"><img src="../images/ico +ns/comments.jpg" width="70" height="70" border="0" hspace="0"></a></l +i> <li><a href="../comments.html">Testimonials</a></li> <br> <li><a href="../contact.html"><img src="../images/icon +s/contact.jpg" width="70" height="70" border="0" hspace="0"></a></li> <li><a href="../contact.html">Contact Us</a></li> </ul> </div> </div> <div id="side_pic"></div> <div id="main1"> <img src="../images/booking_steps/step2.jpg" align="right"> <br> <p1><b1>So far so good $organisers_name.</b1><br><br> <p1>Now while leaving this window, open a new window and check you +r email. <br><br> <b1>Find the CLICK HERE LINK</b1> <br> <p1>And click it to proceed to the next step.<p1> <br><br> <p1>If you do not receive the email:<br><br> <p1>1. Click the back button and verify your email address then pr +oceed as last time.<br><br> <p1>2. If you do not receive the email again verify your email's j +unk setting or junk folder.<br> <FORM> <INPUT TYPE="button" VALUE="Back" onClick="history.go(-1);return true; +"> </FORM> </div> </div> </body> </html> EOF exit ;


In reply to MIME lite by zealf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.