Forum Moderators: coopster & phranque

Message Too Old, No Replies

Perl blat script

         

vespa

10:43 am on Nov 22, 2000 (gmt 0)



I'm no perl expert....and it seems neither is my host. In order for me to use a form on their Windows server I have to use their own perl script which uses blat. Their script doesn't work properly and I've wasted too much time trying to get them to fix it. Can anybody point me in the direction of somebody who can write me a blat script for a form or to a service where I can use a remotely hosted script.

Thanks.

Marcia

11:16 am on Nov 22, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vespa, there's a links page at this free windows2000 host that has resources - you might find something:

www2.domaindlx.com/index.html

Brett_Tabke

12:15 pm on Nov 22, 2000 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Blat isn't all that difficult to use.

Put your email message into $tempfile
$to is the email address you are sending to/
$bcc is if there are any BCC's to send out.
$from senders name
$fromemail is the senders email address
$subject is the subject of the email
then send it with:

open(MAIL,"¦blat $tempfile -t \"$to\" -b \"$bccinfo\" -i \"$from\" -f \"$fromemail\" -s \"$subject\"");

vespa

1:39 pm on Nov 22, 2000 (gmt 0)



Marcia & Brett,
Thanks for the responses. I've checked the URL but didn't really find what I was looking for.

The problem I get when a user hits the form's submit button is that up comes a white screen with a line of blat code at the top and underneath that a message saying 'your enquiry has been...etc'

What I wanted was to either lose that line of blat at the top of the screen (it doesnt look very user friendly)or better still, have the user redirected to my own 'Thanks for your enquiry' page.

Heres the last bit of the code that I think is causing the problem. If you can see where the problem lies, that would be great.

# Build the Blat command line and execute it
$blat="blat.exe message.txt -s \"$subject\" -t \"$lt$raddr$gt$rname\" -server $server -f
\"$lt$saddr$gt$sname\"";

system($blat);

print "Mail sent to $raddr.";
print "<CENTER><H1>Your enquiry has been Submitted!</H1>";
print "<A HREF=http://www.mydomain.co.uk>";
print "<B>CLICK HERE!</B></A> To return to the home page<P>";
print "</CENTER>";

vespa

7:58 pm on Nov 22, 2000 (gmt 0)



Well, my last post was a bit of a converstion killer:)
Is there anybody who would be willing to write me a script for a modest fee?
Here's hoping.

Marcia

6:03 am on Nov 24, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vespa, it's kind of a holiday week, so hang in for a bit. And happy holiday to you!

Air

3:51 am on Nov 25, 2000 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just change this:

# Build the Blat command line and execute it
$blat="blat.exe message.txt -s \"$subject\" -t \"$lt$raddr$gt$rname\" -server $server -f
\"$lt$saddr$gt$sname\"";

system($blat);

print "Mail sent to $raddr.";
print "<CENTER><H1>Your enquiry has been Submitted!</H1>";
print "<A HREF=http://www.mydomain.co.uk>";
print "<B>CLICK HERE!</B></A> To return to the home page<P>";
print "</CENTER>";

To this:


# Build the Blat command line and execute it
$blat="blat.exe message.txt -s \"$subject\" -t \"$lt$raddr$gt$rname\" -server $server -f
\"$lt$saddr$gt$sname\"";

system($blat);

print "Location: thank-you-page.html\n\n";

vespa

7:36 pm on Nov 25, 2000 (gmt 0)



Air,
Thanks for your help. Just to say that it worked a treat. Thanks to everybody else as well.

Vespa