#!c:/program files/apache group/perl/bin/perl.exe -w use CGI; use strict; use warnings; use Mail::Mailer; my $YourEmail = "mymail@mymail.co.uk"; # Script works only on your server(s) - ('URL1','URL2') my $referers = ('mySite','152.21.1.2535); # Location of mail program - check your doc or ask admin my $MailProgram = 'C:/Program Files/Apache Group/Perl/site/lib/Mail/Mailer/sendmail'; # Header line in the auto-reply message my $Header = "GOOBERS UNLIMITED"; # Brief tail message for body of e-mail autoreply my $TailMessage = "If your message requires a reply, we'll get back to you soon."; # Your signature lines the end of the autoreply e-mail my $Signature1 = "personal"; my $Signature2 = "www.YourSite.com"; my $query = new CGI; my $sirName = $query ->param("sirName");####COming from html form my $firstName = $query ->param("firstName");####COming from html form my $Email = $query ->param("email");####COming from html form my $Add1 = $query ->param("add1");####COming from html form my $Add2 = $query ->param("add2");####COming from html form my $City = $query ->param("city");####COming from html form my $County = $query ->param("county");####COming from html form my $Postcode = $query ->param("postcode");####COming from html form my $Message = $query ->param("Message");####COming from html form my %headers = ('To' => 'mymail@mymail@mymail.co.uk', 'From' => '$Email +'); my $body = "$Message"; my $mailer = new Mail::Mailer 'sendmail'; $mailer ->open(\%headers); print $mailer $body; exit; ##### End of Script ############################

2005-03-08 Janitored by Arunbear - added code tags, as per Monastery guidelines


In reply to Re^8: Mail::Mailer on NT by perlTech
in thread Mail::Mailer on NT by perlTech

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.