DotDragnet
May 23, 2012, 02:51:02 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: follow us on twitter @dotdragnet
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: 123-reg sendmail location  (Read 5158 times)
samhs
Administrator
Hero Member
*****
Posts: 1711



View Profile WWW Awards
« on: July 15, 2008, 09:33:36 AM »

I've got a site that is being hosted on 123-reg - no choice over the matter, it's always been there. The client needs a contact form, which means Matt's Script Archive and formMail.pl

Anyone know the location of sendmail on 123-reg servers? I've tried usr/sbin/sendmail and usr/lib/sendmail - also tried googling to find out.

TIA
Logged

Loose adj a not held together; not fastened or firmly fixed in place
Lose verb to misplace something. To fail to keep or obtain something, especially because of a mistake, carelessness, etc.
---
Blog: www.ohwrite.co.uk
Twitter: www.twitter.com/samhs
Jeewhizz
DDN Contribs
Hero Member
*****
Posts: 1626



View Profile Awards
« Reply #1 on: July 15, 2008, 09:54:54 AM »

try

/usr/sbin/sendmail
/usr/bin/sendmail

The preceeding slash is required.

If that doesn't work, raise a ticket with them smile
Logged

samhs
Administrator
Hero Member
*****
Posts: 1711



View Profile WWW Awards
« Reply #2 on: July 15, 2008, 10:03:49 AM »

thanks Jee - got the slash, tried just bin - still no joy. Trying to get some log in details for submitting a support ticket now.
Logged

Loose adj a not held together; not fastened or firmly fixed in place
Lose verb to misplace something. To fail to keep or obtain something, especially because of a mistake, carelessness, etc.
---
Blog: www.ohwrite.co.uk
Twitter: www.twitter.com/samhs
rutty
Global Moderator
Hero Member
*****
Posts: 1260



rutty_uk
View Profile WWW Awards
« Reply #3 on: July 15, 2008, 10:35:12 AM »

Won't phpinfo tell you the sendmail path?
Logged

Whatever
Hero Member
*****
Posts: 750



View Profile WWW Awards
« Reply #4 on: July 15, 2008, 10:50:32 AM »

Sam,

Here you go:

$mailprog = '/usr/sbin/sendmail -i -t';
Further down the script is another important part you will have to alter:


@referers = ('mydomain.name','www.mydomain.name');

In this line, you should include all domain names that are going to use this script. Usually this is just your website with us. Make sure you put the actual hosted domain name in here.


@recipients = &fill_recipients(@referers,'services@123-reg.co.uk');
In this line ensure you enter the email address you are sending the files to instead of services@123-reg.co.uk.

This file can now be saved and uploaded to your website. Make sure you upload the file in ASCII/text mode and NOT in binary mode. Also, ensure it has read and execute permissions (755) for user group and all, as well as write permissions for the user.

Next, move onto your HTML file where your visitors fill in the form, and make sure the code below is included.

<form action="/formmail/formmail.cgi" method="post">
//Make sure this is the correct path to your FormMail script.

<input type='hidden' name="recipient" value="services@123-reg.co.uk"/>
//Make sure this is the e-mail address you are sending the details to.

<input type='hidden' name="subject" value="Form Results"/>
//Replace the value with the one you want the subject of the email results to be.

<input type='hidden' name="required" value=""/>
//Add any field names the visitor has to fill in for the form to work.

<input type='hidden' name="redirect" value="done.html">
//Enter the location of the "thank you" HTML page here.
Logged

Office Stationery : Paper : Inks & Toners
10% off first 3 orders for registered users. Use the code DDN10
samhs
Administrator
Hero Member
*****
Posts: 1711



View Profile WWW Awards
« Reply #5 on: July 15, 2008, 11:00:08 AM »

thanks all smile I also had to chmod the perl script which I'd forgotten to do. All sorted now smile
Logged

Loose adj a not held together; not fastened or firmly fixed in place
Lose verb to misplace something. To fail to keep or obtain something, especially because of a mistake, carelessness, etc.
---
Blog: www.ohwrite.co.uk
Twitter: www.twitter.com/samhs
sarahA
DDN Contribs
Hero Member
*****
Posts: 2174



View Profile WWW Awards
« Reply #6 on: July 15, 2008, 11:44:41 AM »

Won't phpinfo tell you the sendmail path?

No PHP on basic 123 hosting
Logged

badlydrawnblue
Newbie
*
Posts: 3



View Profile Awards
« Reply #7 on: June 01, 2009, 06:15:06 PM »

Hi I am new to the forum so please go easy!!

I have had some problems getting an online form to work through my website hosted on 123 reg.

It seems my problem is the same as the person who posted this thread. I cannot get a form to function properly and email to my inbox.

This is the site's form: http://www.mobilealloyrepairs.com/contact.html

I think I have followed the instructions above but something seems to be missing??

If anyone could shed some light I would be very grateful.
Logged
Ben
Hero Member
*****
Posts: 766


I didn't do it


View Profile Awards
« Reply #8 on: June 01, 2009, 09:33:52 PM »

Not quite the  best reply but you are not using the 'Matt's Script Archive' formmail but the NMS drop in replacement (http://nms-cgi.sourceforge.net/) I hope? Please don't use the older Matt script as it will bring you nothing but problem as it very insecure. smile

My suggestion would be make sure you have the right permissions (CHMOD).

Welcome btw smile



Logged
badlydrawnblue
Newbie
*
Posts: 3



View Profile Awards
« Reply #9 on: June 01, 2009, 09:35:44 PM »

This is the error on clicking submit:

Internal Server Error

Could not execute script "/websites/123reg/LinuxPackage06/mo/bi/le/mobilealloyrepairs.com/public_html/formmail.pl"
Logged
badlydrawnblue
Newbie
*
Posts: 3



View Profile Awards
« Reply #10 on: June 01, 2009, 10:23:37 PM »

Not quite the  best reply but you are not using the 'Matt's Script Archive' formmail but the NMS drop in replacement (http://nms-cgi.sourceforge.net/) I hope? Please don't use the older Matt script as it will bring you nothing but problem as it very insecure. smile

My suggestion would be make sure you have the right permissions (CHMOD).

Welcome btw smile



Thanks for your help - I was using the MSA formmail - will try the NMS one now.

Thank you again!
Logged
Rosco
Global Moderator
Hero Member
*****
Posts: 917



View Profile Awards
« Reply #11 on: June 01, 2009, 11:19:23 PM »

don't know if you have it sorted already but looking at the path of the script returned in the error message I'd suggest moving formmail.pl to the cgi-bin as I doubt perl scripts would execute elsewhere on such basic hosting if php doesn't
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!