I am using blat.exe to send data from a form thru email and then displaying the data on another form. The data is displayed fine, however, it does not send an email. Anyone have any ideas??
sub display_sendemail { #use Win32::ODBC; $DSN="test"; $fromsender="someone\@somewhere.com"; $subject="Data"; $CustomerNumber = param("CustomerNumber"); $Name = param("Name"); $Address1 = param("Address1"); $City = param("City"); $State = param("State"); $ZipCode = param("ZipCode"); $Email = param("Email"); $server="server.name.net"; $recipient="someoneelse\@somewhereelse.com"; $message="$CustomerNumber.$Name.$Address1.$City.$State.$ZipCode.$Email +"; ## NO CONFIGURATION IS NECESSARY FROM HERE DOWN $blatpath="blat.exe "; $commandline = $blatpath; $commandline .= $message; $commandline .= "-q "; $commandline .= "-s \"$subject\" " if $subject; $commandline .= "-f $fromsender " if $fromsender; $commandline .= "-server $server " if $server; $commandline .= "-b $bccaddress " if $bccaddress; $db = new Win32::ODBC("DSN=$DSN;"); $commandline .= "-t \"$recipient\" "; system($commandline); #display results on screen print "Content-type: text/html\n\n"; print "<HTML>\n"; print "<HEAD>\n"; print "<TITLE>Account Information</TITLE>\n"; print "</HEAD>\n"; print "<BODY>\n"; print "<font face=arial>"; print "<b>Customer Number: </b>" . $CustomerNumber . "<br><br>\n"; print $Name . "<br>\n"; print $Address1 . "<br>\n"; print $City.","."&nbsp;". $State . "&nbsp;&nbsp;". $ZipCode . "<br><br +>\n"; print "<b>Email: </b>" . $Email . "\n"; print "<br>\n"; $db->Close(); print "</BODY>\n"; print "</HTML>\n"; }

In reply to blat problems by quietone

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.