in reply to Re^7: Mail::Mailer on NT
in thread Mail::Mailer on NT
#!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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Mail::Mailer on NT
by RazorbladeBidet (Friar) on Mar 08, 2005 at 20:06 UTC |