Hi all,
Firstly this is my first time to set this up so please be gentle with me.
I have set up an online order system using javascript, when I get to the checkout - on submit - it is directed to a .pl file in the cgi-bin (which has been set to the right permissions)I just adjusted a .pl file that the shopping cart script included. But the checkout just hangs after submit and comes up with a timeout error.
The server is an NT server and uses Blat.exe as the mail program.
The host has said this to me-
The problem seems to be with the way you are calling the mail program in your script.
The settings you have are correct ($mailprog & $mailserver) however you are not sending the required information to BLAT when you invoke Mail in your script.
Please note that BLAT requires command line switches spefying recipient address etc.
More information on the syntax can be found by searching for BLAT in the online help section of Mission Control.
This is what aserch on Blat at mission control told me-
Blat is the mail program installed on all web Server that can be used to send email from a cgi form.
The path to blat is e:\blat\blat.exe
syntax:
Blat <filename> -t <recipient> [optional switches (see below)]
Blat -install <server addr> <sender's addr> [-q]
Blat -h [-q]
-install <server addr> <sender's addr>: set's default SMTP server and sender
<filename> : file with the message body ('-' for console input, end with ^Z)
-t <recipient>: recipient list (comma separated)
-s <subj> : subject line
-f <sender> : overrides the default sender address (must be known to server)
-i <addr> : a 'From:' address, not necessarily known to the SMTP server.
-c <recipient>: carbon copy recipient list (comma separated)
-b <recipient>: blind carbon copy recipient list (comma separated)
-h : displays this help.
-mime : MIME Quoted-Printable Content-Transfer-Encoding.
-q : supresses *all* output.
-server <addr>: overrides the default SMTP server to be used.
Note that if the '-i' option is used, <sender> is included in 'Reply-to:'
and 'Sender:' fields in the header of the message.
But I dont know where to put this in the pl file or how to even start filling it out. I have tried but doesnt work for me. Am I asking for too much or does anyone else have any ideas for anything different I could use. I just want to be able to pass on the order and details by an email, (not just a big long text document)and for the person ordering to recieve an email as well.
Thanking you in advance
Nat
Firstly this is my first time to set this up so please be gentle with me.
I have set up an online order system using javascript, when I get to the checkout - on submit - it is directed to a .pl file in the cgi-bin (which has been set to the right permissions)I just adjusted a .pl file that the shopping cart script included. But the checkout just hangs after submit and comes up with a timeout error.
The server is an NT server and uses Blat.exe as the mail program.
The host has said this to me-
The problem seems to be with the way you are calling the mail program in your script.
The settings you have are correct ($mailprog & $mailserver) however you are not sending the required information to BLAT when you invoke Mail in your script.
Please note that BLAT requires command line switches spefying recipient address etc.
More information on the syntax can be found by searching for BLAT in the online help section of Mission Control.
This is what aserch on Blat at mission control told me-
Blat is the mail program installed on all web Server that can be used to send email from a cgi form.
The path to blat is e:\blat\blat.exe
syntax:
Blat <filename> -t <recipient> [optional switches (see below)]
Blat -install <server addr> <sender's addr> [-q]
Blat -h [-q]
-install <server addr> <sender's addr>: set's default SMTP server and sender
<filename> : file with the message body ('-' for console input, end with ^Z)
-t <recipient>: recipient list (comma separated)
-s <subj> : subject line
-f <sender> : overrides the default sender address (must be known to server)
-i <addr> : a 'From:' address, not necessarily known to the SMTP server.
-c <recipient>: carbon copy recipient list (comma separated)
-b <recipient>: blind carbon copy recipient list (comma separated)
-h : displays this help.
-mime : MIME Quoted-Printable Content-Transfer-Encoding.
-q : supresses *all* output.
-server <addr>: overrides the default SMTP server to be used.
Note that if the '-i' option is used, <sender> is included in 'Reply-to:'
and 'Sender:' fields in the header of the message.
But I dont know where to put this in the pl file or how to even start filling it out. I have tried but doesnt work for me. Am I asking for too much or does anyone else have any ideas for anything different I could use. I just want to be able to pass on the order and details by an email, (not just a big long text document)and for the person ordering to recieve an email as well.
Thanking you in advance
Nat