Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail and cgi-script

Status
Not open for further replies.

sarm

Programmer
Aug 13, 2001
77
US
Hi,
I've been using a form along with a cgi-script that uses sendmail to forward the data to my email address. I have been using it for months now with no problems. Last week I changes my isp which in turn gave me new ip's.

Now my form/cgi-script still runs without errors but I don't get the email. Has sendmail stored my original ip address somewhere?

Thanks
 
Hello,

In addition to the above. I was wondering when I use to get the email it was from apache@mydomain.com

As I stated above when I enter the info in the form and submit it the cgi-script runs no problem. I'm wondering where this data is going now or being stored.

tHnks

 
Hi,

Assuming your sendmail is still working generally (i.e. for sending regular email), then it must be related to the script. Maybe it stores info in a config file. Have you looked at the script code ?

Regards
 
Hi ifincham,

Here is a link to the script. As I said it has been working fine for me for months. The only difference is I changed my isp and so my ip address on my server changed. Everything else seems to be working fine except this seems to have stopped working as far as sending me the data collected on the form.


I have been using send mail instead of smpt server.
$SEND_MAIL="/usr/lib/sendmail -t";

Thats what makes me curious that maybe sendmail has my old ip somewhere. I don't know much about it. I never even configured anything in it. I just installed the script and it worked fine for me and now it stopped.

Thanks
 
Hi,

On the related bnbform.html form there is a line :

<INPUT TYPE=&quot;HIDDEN&quot; NAME=&quot;submit_to&quot; VALUE=&quot;yourname@domain.com&quot;>

That seems to be the source of the email address - check that first. It seems to create a file called 'form1.bemf' with that data inside.

Hope this helps
 
Have you made sure sendmail is in the same place? Telnet to your new server and type 'which sendmail' and make sure it's the same as you have in your script. C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top