FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > PHP, Perl, Python and/or MySQL
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-14-2002, 05:06 PM   Postid: 69524
ET
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Mar 2002
Location: Sonoma County, CA
Posts: 3
What is path for sendmail?

OK, I'm totally new to this Perl stuff.
I'm using a script that someone at work wrote, and it calls a Unix function called MAIL. I assume the path to call this function on FQ's server is not the same as on our server at the office... how do I call it?

Here is the pertinent code, which will need to be modified:

<snip>
sub SendMail {
my ( $nFieldCount) = 1;

if ( open (MAIL, "|/usr/lib/sendmail -t $aszParam{'emailTo'}")) {
print MAIL "From: $aszParam{'emailFrom'}\n";
print MAIL "To: $aszParam{'emailTo'}\n";
print MAIL "Subject: $aszParam{'problem'}\n\n";

print MAIL "#THIS EMAIL GENERATED BY AN ONLINE FORM SUBMISSION
<snip>
ET is offline   Reply With Quote
Old 06-14-2002, 06:50 PM   Postid: 69534
sheila
Site Owner
 
sheila's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 1999
Location: Metro Los Angeles Area
Posts: 7,398
Actually, the path to Sendmail is fairly standard, although it can vary.

To find the paths to binaries such as Sendmail, Perl, Python, etc... and other useful information about your account set up, go to you CNC and click on the "Server Info" link.

Your CNC is at
http://www.example.com/CNC/

except you need to replace example.com with your actual domain.

Hope this helps,
__________________
sheila
http://www.thinkspot.net/sheilaruns/
sheila is offline   Reply With Quote
Old 06-14-2002, 07:04 PM   Postid: 69535
Rich
Merchant Rep
 
Rich's Avatar

Forum Notability:
153 pts: Ambassador of Goodwill
[Post Feedback]
 
Join Date: Nov 1998
Location: Indiana, USA
Posts: 1,658
The 'MAIL' part is actually a 'handle' that is defined by the script during the 'open' function.

The relevant part you need to change is this:

/usr/lib/sendmail

which is the path to sendmail. To find out what this should be, type the following from a telnet prompt:

which sendmail

and replace the above path to what is displayed.
__________________
Rich
E-Commerce Solutions:
www.rsmarketing.com
Domain Name Registrations:
www.domain-registration-zone.com
Time Zone Converter:
www.timezoneconverter.com
Rich is offline   Reply With Quote
Old 06-17-2002, 01:12 PM   Postid: 69641
ET
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Mar 2002
Location: Sonoma County, CA
Posts: 3
Thanks

Thanks everybody, I think I have it now.
ET is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:55 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.