CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
sendmail path

 



kojr
Novice

Jun 6, 2001, 6:38 AM

Post #1 of 6 (1153 views)
sendmail path Can't Post

I have install apachi and active perl in my win2000.
Seemingly it can run perl script.
Now there is some problem and I think it comes with the setting of sendmail path which is required by script.

Problem..
1.where is my sendmail path for apachi..
2.is there any limitation to run perl script which is provided out-there.



Jasmine
Administrator / Moderator

Jun 6, 2001, 10:33 AM

Post #2 of 6 (1150 views)
Re: sendmail path [In reply to] Can't Post

Apache doesn't come with sendmail. You can purchase sendmail for windows at http://www.indigostar.com/sendmail.htm.

Unless you specifically need sendmail, you can use MIME::Lite.

If you don't have Mime::Lite, you can install it using the ppm manager. Click on the ppm.bat that's in the same directory that Perl is installed and type:


Code
install Mime::Lite

Type Y to confirm. Then, in your program, you can use:


Code
use Mime::Lite; 

MIME::Lite->send( 'smtp','smtp.yourdomain.com' );
# replace 'smtp.yourdomain.com with your smtp server

my $msg = MIME::Lite->new(
From => 'you@yourdomain.com',
To => 'first@address.com, second@address.com',
Subject => 'message subject here',
Data => 'message body here',
);

$msg->send or die "$!\n";


Hope this helps!



kojr
Novice

Jun 7, 2001, 5:31 AM

Post #3 of 6 (1145 views)
Re: sendmail path [In reply to] Can't Post

Thats really good tutorial
Thanks..

Now I got another problem..
I put a guest book script in cgi-bin of my own pc
IT IS NOT ABLE POST
what is wrong path of my action
<form ACTION="c:/program files/apache group/apache/cgi-bin/gsbbsb/gsbbsb.pl" METHOD="POST">

Shoud I make some modificatioon on configuration of apachi here is my config
http://csss.hypermart.net/cofig.txt

or some part of .pl script should I amend..

help ....



Jasmine
Administrator / Moderator

Jun 7, 2001, 10:51 AM

Post #4 of 6 (1142 views)
Re: sendmail path [In reply to] Can't Post

Try changing


Code
Options Indexes FollowSymLinks MultiViews

to


Code
Options Indexes FollowSymLinks MultiViews ExecCGI

If that doesn't work, please post the relevant portion of your error log (in your Apache/logs directory) here.



kojr
Novice

Jun 8, 2001, 9:19 PM

Post #5 of 6 (1137 views)
Re: sendmail path [In reply to] Can't Post

Actually , it is not at all sendmail path problem. I later found it may be some problems of basic setting. As I am not able posting any message with my test guestbook script through my pc though it runs properly in website
now I would like to group it up if anyone can show me a way to fix it
1.here is my config of apachi

http://csss.hypermart.net/cofig.txt

2. when I point to the script which is

http://localhost/cgi-bin/guestbook.cgi

It perfectly show the screen

3.here is the page when I like to make post things and a prompt shows up asking me if I like to dowload my cgi

http://csss.hypermart.net/test2.htm

What is that??




freddo
User

Jun 10, 2001, 12:52 PM

Post #6 of 6 (1127 views)
Re: sendmail path [In reply to] Can't Post

Hello,

a sendmail.exe also come with the win32 version of lynx, check it out here

freddo

;---
ygjohn: sometimes. you talk too much.. hahaha..

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives