eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 4 
Sending Email with Win2k Advanced Server (Read 1129 times)
Dieter Werner
Administrator
*****
Online

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Sending Email with Win2k Advanced Server
Reply #6 - 05/09/06 at 12:26:07
 
The -t is not needed because the script adds it to the path.
If you add it too, the result would be:
/PathToSendmail/sendmail -t-t
and that can't work.

But I think there is no sendmail program with win2k servers!?
Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
tmk12v
eAuction User
**
Offline



Posts: 12

Re: Sending Email with Win2k Advanced Server
Reply #7 - 05/10/06 at 06:46:18
 
I'm sorry, I should state what I am using. I have OSX server 10.2.8 and it does have sendmail. I did not add the -t to the path but I did add it to the code below

       else {
           open MAIL, "|$config{'mailprog'} -t"
         or oops($txt{'eMail Service not available'});

This is found in the sendmail sub. I did notice you have similar code in the "Recover needed paths" sub but without addig the -t to the code above, I just kept getting no receiver address errors. Below is how my code looks in the Config.pl file


  $config{'get_path'}              = 1; # Set this from 1 to 0 if you want to use your own setting  
  $config{'basepath'}              = '/Im/not/using';

# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 0; # Set this from 1 to 0 if you want to use your own setting  
  $config{'mailprog'}            = '/usr/sbin/sendmail'; # no additional options please
 
# or Configure your MAIL HOST (SMTP)
   #$config{'mailhost'}      = 'Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
';    
   
# Set this from 0 to 1 if the script is running with a real Web-Server
   $config{'web_server'}      = 1;

No matter how I configure $config{'get_mail'} to 1 or 0, if the sendmail path is incorrect I get the No Sendmail error? So how do you force it to use SMTP? I do have the settings correct for my SMTP host as far as I can tell.

I would appreciate any help on this.
Thanks, Tom
Back to top
 
 


Advertising
View Profile | WWW   IP Logged
Dieter Werner
Administrator
*****
Online

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Sending Email with Win2k Advanced Server
Reply #8 - 05/10/06 at 17:48:26
 
If you want to use 'sendmail'
Quote:
# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 0; # Set this from 1 to 0 if you want to use your own setting    
  $config{'mailprog'}            = '/usr/sbin/sendmail'; # no additional options please
   
# or Configure your MAIL HOST (SMTP)
   #$config{'mailhost'}      = 'Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
';


If you want to use SMTP
Quote:
# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 0; # Set this from 1 to 0 if you want to use your own setting    
  #$config{'mailprog'}            = '/usr/sbin/sendmail'; # no additional options please
   
# or Configure your MAIL HOST (SMTP)
   $config{'mailhost'}      = 'Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!
';

Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
Pages: 1 2 3 4 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only