formail question

They have: 67 posts

Joined: Aug 2001

hi

this is my first try to upload a perl script to my server, and it seems that i am missing something.

i am using NT server, and i have my own CGI-bin. the form seems to work fine, but i don't receive the messages to my email, neither the autoresponder is working.

this is the form if you want to see what i am talking about.

do you know by any chance, what i could have missed when configuring the script.

thanks

designready.co.uk

flexible, low-cost, easy to use websites, with easy Site Editor, unlimited pages, and multiple choice of designs and colours. our websites are ideal for small businesses, and personal homepages.

They have: 71 posts

Joined: Aug 2001

Hi,

is your sendmail path correct?

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

If you're on an NT server why don't you just use CDONTS? Using Perl on NT server isn't as efficient as using native ASP.

They have: 601 posts

Joined: Nov 2001

Can't tell unless you post the source code for the script.

Didn't know formail could work on NT servers. Did this thro up an error message?

BTW; I love your site! Did you design this yourself? Well stylish!!

- wil

They have: 67 posts

Joined: Aug 2001

Quote: is your sendmail path correct?

yes i think so, it's my host who provided me the path

Quote: If you're on an NT server why don't you just use CDONTS?

i would be grateful if u can advice me where i can find it. thanks.

Quote: Can't tell unless you post the source code for the script.

you can find the script here

Quote: BTW; I love your site! Did you design this yourself? Well stylish!!

yes, i did! thank you fo the compliment!

designready.co.uk

flexible, low-cost, easy to use websites, with easy Site Editor, unlimited pages, and multiple choice of designs and colours. our websites are ideal for small businesses, and personal homepages.

taff's picture

They have: 956 posts

Joined: Jun 2001

did you properly chmod the script? Ah, if I had a nickel for everytime I forgot to do that... Smiling

They have: 67 posts

Joined: Aug 2001

no actually i didn't!
u see the script get executed, just the mail is not delivered!
and since it's my first script to upload, i don't know what to do!

designready.co.uk

flexible, low-cost, easy to use websites, with easy Site Editor, unlimited pages, and multiple choice of designs and colours. our websites are ideal for small businesses, and personal homepages.

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Here is a link to a good example of CDONTS/ASP: http://www.asp101.com/samples/viewasp.asp?file=email%2Easp

They have: 67 posts

Joined: Aug 2001

thanks Peter J. Boettcher for the link

They have: 17 posts

Joined: Jan 2002

Hi

First off.........

Quote: did you properly chmod the script? Ah, if I had a nickel for every time I forgot to do that...

You can not CHMOD on NT........

Secondly

ASP makes the worse mail handling, Perl is better for mail handling, even hotmail uses Perl's core engine to handle all of it's mail handling functions. Each language has it good points, and Perl makes managing mail easy, fast, and has better error handling than ASP would ever hope to have!

Another good point in using Perl over ASP, is that your code will run on any system, and creating a simple mail (sub) can be included in many different scripts without the need to recode the same function over and over again!

Listen I do use ASP, but only when I need to run a COM object based system/service, other wise I stick to using PHP, or Perl, I do this because Perl and PHP, will allow you to be more creative in your future developments everytime!

F!

They have: 67 posts

Joined: Aug 2001

thanks Fataqui for ur explanation

i would be grateful if u can help me find out what i should do, so that the form works proprely. as i mentioned above, for the end user there are no errors, the form works fine, but i don't receive the messages to my email.

thanks

designready.co.uk

flexible, low-cost, easy to use websites, with easy Site Editor, unlimited pages, and multiple choice of designs and colours. our websites are ideal for small businesses, and personal homepages.

They have: 17 posts

Joined: Jan 2002

Hi

Give me a few hours and I will rewrite the whole thing for you...

What I will do is include, your form template in the script, so that everything is managed properly and error checking will be displayed to the user right back on the form.........

F!

They have: 601 posts

Joined: Nov 2001

But Perl doesn't 'handle' mail at all. That's all Perl does is open a pipe to inject your mail to the mail deamon. That's of course, if you're not using a direct connection to a SMTP server, which will then take you to use sockets - just as the script in the OP does.

?

- wil

Peter J. Boettcher's picture

They have: 812 posts

Joined: Feb 2000

Fataqui,

On a windows system Perl will NEVER run faster than native ASP. As for sending mail, CDONTS performance is fine, as for error handling you can make that as good as you want, and CDO for Windows 2000 (IIS5) is even better.

PJ | Are we there yet?
pjboettcher.com

They have: 17 posts

Joined: Jan 2002

Hi Peter

I don't like having to disagree, with people, but in this case, I agree with you to a point, and that point is that, if you are talking about (everytime, every instance) then Perl is not as fast as (ASP everytime, or in every instance).
But Perl is much faster, when it comes to doing many things, and handles memory in a far better way than the ASP engine can. Also Perl has a better code base for forking multi process based operations, and returning memory back to the system, where as ASP never returns the memory it uses!

Like I said there are times I use ASP, because Perl or PHP, JSP, can not do what ASP, or Cscript/VBscript can do. But in this case (simple form using sockets) Perl is better for the task at hand!

F!

They have: 17 posts

Joined: Jan 2002

Hi

I rewrote the whole thing, I based it on your form, I mean I put your contact form page in the script......

What it does............

sends an email to the dept selected in the drop down box.....

logs a copy of the contact to a log file

performs error checking......

can have unlimited dept, ie, diffent email address for each one

Uses safe sockets relay & SMTP AUTH, if needed

If you want Bcc: to be sent to the owner or Admin, just tell me and it will take just a minute to add that....

Try the demo, if it's OK tell me and I will zip it up and send it to you...........

YOUR CONTACT FORM...............

http://www.ya-right.com/cgi-bin/contact.pl

WHAT THE LOG FILE LOOKS LIKE

http://www.ya-right.com/cgi-bin/log.txt

WHAT THE EMAIL SENT LOOKS LIKE.........

GO HERE........... AFTER SUBMITTING THE DEMO FORM

http://www.ya-right.com/

LOGIN

USER = sambar
PASS = test

F!

They have: 67 posts

Joined: Aug 2001

thanks Fataqui for your help

i sent you a pm with my e-mail address.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.