Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] mailfax og formmail.pl



Hi there,

Found a form-to-fax cgi script called Bformmail.pl. It contains 2 routines for US
based email-to-fax providers. Does anyone know what the parameters would be if we
could use Hylafax/mailfax?

    local ($faxservice) = @_;

    local($print_config,$key,$sort_order,$sorted_field,$env_report);

    # Open The Mail Program
    open(MAIL,"|$mailprog -t");

    if ($faxservice)  {
 if ($faxservice eq 'faxaway') {
        print MAIL "To: $Config{'faxnum'}\@faxaway.com\n";
 print MAIL "From: $Config{'faxfrom'}\n";
 }
 if ($faxservice eq 'faxsav') {
 print MAIL "To: $Config{'faxnum'}\@faxsav.com\n";
 print MAIL "X-STAMP: $faxstamp\n";
 print MAIL "X-FAXSENDER: $Config{'faxfrom'}\n";
 }
    }
    else {
        print MAIL "To: $Config{'recipient'}\n";
        print MAIL "From: $Config{'email'} ($Config{'realname'})\n";
 if ($Config{'cc'} && check_email($Config{'cc'}))
         { print MAIL "Cc: $Config{'cc'}\n" };
 if ($Config{'cc_visitor'})
         { print MAIL "Cc: $Config{'email'} ($Config{'realname'})\n"};
        if ($Config{'bcc'} && check_email($Config{'bcc'}))
  { print MAIL "Bcc: $Config{'bcc'}\n" };
    }


"Harry M. Aasterud" wrote:

> Hi Dieter,
>
> Formmail.pl is a cgi script that allows you to make a form on your website, and
> submit the content of this form in an e-mail. Probably one of the most used form
> scripts on the net. Do a search for "cgi formmail.pl".
>
> The most common procedure is that formmail gathers the info and sends it to
> sendmail. Due to the nature of the pre-programmed hidden field "recipient"
> sendmail knows that it needs to send the content of the form in a mail to the
> "recipient", ie sales@mydomain.com.
>
> What I'm trying to do is to have a user to fill out an orderform on our
> webpages, and have formmail send it to the recipient "user@faxnumber.fax".
> Mailfax deals with the rest....
>
> Dieter Kluenter wrote:
>
> > Hello,
> > "Harry M. Aasterud" <harry@aasterudweb.com> writes:
> >
> > > Hi,
> > >
> > > After seeing the power of Hylafax and faxmail, I wonder : did anybody
> > > ever tried to get this thing to work with formmail.pl? I found no
> > > referense to formmail in the archives, so therefor this question.
> >
> > What is formmail.pl ?
> > Or are you talking about formail ?
> >
> > -Dieter
> > --
> > Dieter Kluenter   | Systemberatung
> > BFI Rendering und Image Processing
> > Tel: 040.64861967 | Fax: 040.64891521
> >

Kind Regards,


Aasterud WebCom
Harry M. Aasterud      Tel.: +47 / 74 16 11 42
Utvik                  Faks: +47 / 74 16 11 43
NO-7730 Beitstad       http://www.aasterudweb.com
Norge - Norway

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Aasterud WebCom for the presence of computer viruses.
**********************************************************************




____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services