Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 13th, 2001, 08:48 AM
cancerkats cancerkats is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 3 cancerkats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hello all
i have no idea abt perl but am using someone's else work......in the perl prog i am trying to send a mail ; for which i need something called 'sendmail'(using which i can send an email).......what is it and where can i get the program for send mail ??? pls help!!!!

Reply With Quote
  #2  
Old February 13th, 2001, 09:53 AM
mickalo's Avatar
mickalo mickalo is offline
Ole` Timer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: N.W. Iowa
Posts: 469 mickalo User rank is Private First Class (20 - 50 Reputation Level)mickalo User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 5 h 19 sec
Reputation Power: 8
Send a message via AIM to mickalo Send a message via MSN to mickalo
Thumbs up

If your on a UN*X system, this should already be there. Consult your server admin or hosting support staff for the location of "sendmail". Normally the paths to sendmail are either:

/usr/lib/sendmail
or
/usr/sbin/sendmail

Mickalo
__________________

Thunder Rain Internet Publishing

Custom Programming & Database development
Providing Personal/Business
Internet Solutions that work!

Reply With Quote
  #3  
Old February 16th, 2001, 12:59 AM
ferozjaff ferozjaff is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: India
Posts: 0 ferozjaff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to ferozjaff
Sendmail

Quote:
Originally posted by cancerkats
hello all
i have no idea abt perl but am using someone's else work......in the perl prog i am trying to send a mail ; for which i need something called 'sendmail'(using which i can send an email).......what is it and where can i get the program for send mail ??? pls help!!!!



Well, first of all you have to aware about the O/S of the server.

if it is Unix/Linux, you can use sendmail.exe
if it is NT, you can use blat.exe, sendmail.pm

if you need further help about the programme
mail me to - suzzano@hotmail.com

feroz jaff

Reply With Quote
  #4  
Old February 16th, 2001, 12:21 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
You're never going to find something called *.exe on a real *nix server . It's just 'sendmail' with the full path to it usually being '/usr/bin/sendmail'

(files can be compiled with the .exe extension, but they usually aren't [because *nix is smart enough to figure out what to do with a program without relying on extensions])

Reply With Quote
  #5  
Old February 16th, 2001, 01:22 PM
randor randor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Western New York
Posts: 85 randor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 8 m 46 sec
Reputation Power: 8
Send a message via Yahoo to randor
from what i can get from your original post, i think what you are looking for is the "sendmail" program, well there is quite a few of these, but one that i like to use is this:

sub sendemail {
$TO=$_[0]; #@TO=split('\0',$TO);
$SUBJECT=$_[1];
$REPLYTO=$_[2];
$REMOTE = $_[3];
$THEMESSAGE = $_[4];

open(S, "|$REMOTE -t");

print S "To: $TO\n";
print S "From: <support\@yourdomain.com>\n";
print S "Subject: $SUBJECT\n";
print S "Reply-To: support\@yourdomain.com\n\n";

# Print the body
print S "$THEMESSAGE\n";
print S "\n";
print S ".\n";
close (S);
}


to use this you will need to also add this variable below, try using it as is, if it does not work then you will need to contact your server admin and find out the path to your sendmail and add it in to the var.

$mailserver = '/usr/sbin/sendmail';

ps: this is used for any UNIX server.

hope this helps,
Randor

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > sendmail


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway