Forum Moderators: coopster & phranque

Message Too Old, No Replies

Lost emails

emails not being sent

         

jenodorf

6:06 pm on Jan 19, 2005 (gmt 0)

10+ Year Member



Hi
I am going insane trying to sort this problem.
Simply when using a cgi mail form on a web site no email is received. If I use Telent and sen an email tha way it is recieved hence I assume sendmail is working. The script works when used on another site.
The ISP has used the script from their email address and it works. It doesn;t from mine. The ISP is saying "It;s a script error go away" I'm saying but the script works for you and for me on another site.
The paths are correct.

It seems to me to be a permissionserror relating to sendmail but the ISP wont consider it untill I tell him the fault.

Can a really nice person assist me

thanks

Ian

bunltd

6:20 pm on Jan 19, 2005 (gmt 0)

10+ Year Member



Hi, jenodorf, welcome to WebmasterWorld.

You didn't mention: is this a script you wrote, or one of the commonly used scripts?

What do your logs say? Your sendmail log, web server log, and script output if it generates an error would be helpful to figure out exactly what is happening.

If it's one of the formmail variants, you generally have to specify in the script the allowed recipients, and allowed mailto domains.

LisaB

jenodorf

7:12 pm on Jan 19, 2005 (gmt 0)

10+ Year Member



Sorry, I've used several scripts one supplied with a >htaccess script which emails new users, one using software called form to email (which also sends a duplicate email to the sender), I've tried a formmail and tried (Ok I'm honest) to write my won.

Pray tell how do I check the sendmail log?

jenodorf

7:23 pm on Jan 19, 2005 (gmt 0)

10+ Year Member



Sorry forgot what you asked:

the error log on the server is as follows:-

example.co.uk: [19/Jan/2005:19:15:53 +0000] 217.xx.xx.xx - - "GET /trialformcg.htm HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:16:16 +0000] 217.xx.xx.xx - - "POST /cgi-bin/trialformcg.pl HTTP/1.1" 302 239 "http://www.example.co.uk/trialformcg.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:16:16 +0000] 217.xx.xx.xx - - "GET /success.html HTTP/1.1" 200 4381 "http://www.example.co.uk/trialformcg.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:16:16 +0000] 217.xx.xx.xx - - "GET /storage.css HTTP/1.1" 304 - "http://www.example.co.uk/success.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:16:16 +0000] 217.xx.xx.xx - - "GET /Graphic.gif HTTP/1.1" 304 - "http://www.example.co.uk/success.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:16:16 +0000] 217.xx.xx.xx - - "GET /storage.gif HTTP/1.1" 304 - "http://www.example.co.uk/success.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:19:59 +0000] 217.xx.xx.xx - - "POST /cgi-bin/trialformcg.pl HTTP/1.1" 302 239 "http://www.example.co.uk/trialformcg.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:20:00 +0000] 217.xx.xx.xx - - "GET /success.html HTTP/1.1" 200 4381 "http://www.example.co.uk/trialformcg.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:20:04 +0000] 217.xx.xx.xx - - "POST /cgi-bin/trialformcg.pl HTTP/1.1" 302 239 "http://www.example.co.uk/trialformcg.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"
example.co.uk: [19/Jan/2005:19:20:04 +0000] 217.xx.xx.xx - - "GET /success.html HTTP/1.1" 200 4381 "http://www.example.co.uk/trialformcg.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"

[edited by: jatar_k at 11:02 pm (utc) on Jan. 19, 2005]
[edit reason] generalized ip and site [/edit]

volatilegx

2:16 pm on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi jenodorf and welcome to WebmasterWorld :)

The first thing I would check would be the path to the sendmail program. To send an email, the script probably opens a pipe to the sendmail program and in order to do it, perl has to know the path to the sendmail program. On many servers, the path looks like this:

'/usr/sbin/sendmail -t'

Sometimes you'll see it without the '-t' at the end. Check your server's documentation, and it should give you the correct path to use.