in reply to MIME lite

You already have an existing thread with this same question. Why are you reposting? What doesn't work? You need to put some effort into your posts. See How do I post a question effectively?.

Having a form in an HTML email is perhaps not wise. Look at your form action? bookings3.cgi isn't going to be resolvable by the email client. Why not just email them a link (perhaps with some unique identifier) so they can either click it or if they don't accept HTML email, copy and paste it into the browser address bar.

Replies are listed 'Best First'.
Re^2: MIME lite
by zealf (Novice) on May 14, 2010 at 13:47 UTC

    Thanks for your reply.

    Your right in one respect that I have post questions on MIME while I was learning how to construct it.

    Corion also point out the MIME page, which is what I used to construct what I have learnt so far.

    As limited as I am, learning is slow and I do try to only resort to asking questions on SoPW as a last resort.

    The MIME Lite resource page leaves out some cruical explaination on some stuff. It is all there but I guess it is written for users that have intermediate knowledge.

    The missing part in my sricpt was the Data => qq{ which I had originally used but some reason change to Data => ' which changes the HTML tags to string only.

      Don't get me wrong, I want you to post, however since you already have a thread on this topic you could have posted there rather than start a new one. Please take onboard the other issues raised with your code.

      Note that the MIME::Lite documentation is specific to the module, it doesn't cover basic perl. For that you should check out:

      Thanks

        Thanks again for your input everyone.

        One more question, how do I correctly use <form> tags sent via MIME?

        eg

        $msg->attach( Type => 'text/html', Data => qq{ <form method="post" action="http://themaninthecharcoalsuit.com.au/cgi- +bin/bookings3.cgi"> <INPUT NAME="organisers_name" VALUE="$organisers_name"> <INPUT TYPE="HIDDEN" NAME="organisers_address" VALUE="$organisers_ +address"> <INPUT TYPE="HIDDEN" NAME="organisers_homeN" VALUE="$organisers_ho +meN"> <INPUT TYPE="HIDDEN" NAME="organisers_mobile" VALUE="$organisers_m +obile"> <INPUT TYPE="HIDDEN" NAME="organisers_email" VALUE="$organisers_em +ail"> <INPUT TYPE="HIDDEN" NAME="prefered_contact" VALUE="$prefered_cont +act"> <INPUT TYPE="HIDDEN" NAME="brides_name" VALUE="$brides_name"> <INPUT TYPE="HIDDEN" NAME="brides_number" VALUE="$brides_number"> <INPUT TYPE="HIDDEN" NAME="wedding_date" VALUE="$wedding_date"> <INPUT TYPE="HIDDEN" NAME="bride_organiser" VALUE="$bride_organise +r"> <INPUT TYPE="HIDDEN" NAME="suprise" VALUE="$suprise"> <INPUT type="submit" value="Proceed to Step 3"> </FORM> },