Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Scripting

Featured Replies

Iam using fasthosts as my hosting, and theyve given me this perl script to use for processing the form, Ive tried others but dont seem to work on their servers, I just want to know exactly what I have to fill in email address etc, and the blat script, what do I have to enter here in order to process the form.

 

Any help would be much appreciate, please see script below

 

 

 

 

 

#########################

# Form To Mail Script #

# --------------------- #

# Pete Jefferson/ #

# FastHosts #

# #

# Windows NT Friendly!! #

#########################

 

# This script:

#

# - Takes the form contents

# - Saves the message into a temporary file

# - Calls Blat to send the mail

#

 

 

# Use the cgi unit

use cgi;

 

# Get the values from the form

$form = new CGI;

$sname=$form->param('sendername');

$saddr=$form->param('senderaddr');

$rname=$form->param('recipientname');

$raddr=$form->param('recipientaddr');

$subject=$form->param('subject');

 

$server="smtp.fasthosts.co.uk";

$message=$form->param('message');

 

# Output the correct header

print "Content-type: text/html\n\n";

 

# Save the message into a text file

open (messtxt,">message.txt");

print messtxt ($message);

close messtxt;

 

# Build the Blat command line and execute it

$blat="blat.exe message.txt -s \"$subject\" -t \"$raddr\" -server $server -f \"$saddr\"";

 

system($blat);

 

print $blat;

print "<br><br>Done.<br><br>";

print "Mail sent to $raddr.";

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.