email settings for mailing.. please hlp...

Web page creation, programs, scripts, PHP, SQL?

Moderator: Moderators

Postby cdnalsi » Fri Sep 03, 2004 10:39 pm

i have a perl emailer, called Form2Mail.exe, maybe you are familiar with it...
the settings for the mailer are set in the htm file - the form:

<form action="http://www.polarhome.com/~cdnalsi/cgi-bin/Form2Mail.exe" method="POST">
<input type=hidden name="__SMTP" value="mail.polarhome.com">
<input type=hidden name="__to" value="cdnalsi.music@gmail.com">
<input type=hidden name="__subject" value="Test form">
<input type=hidden name="__from" value="cdnalsi.music@gmail.com">

but it seems to not be working: connection timed out / cannot find server...
any ideas?

please help me out.
thanks!
cdnalsi
 

Postby DenisF » Fri Sep 03, 2004 11:38 pm

try localhost for smtp server
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby cdnalsi » Sat Sep 04, 2004 9:12 pm

can you please explain...
i don't quite understand what you mean...

thanks...
cdnalsi
 

Postby afonic » Sat Sep 04, 2004 11:08 pm

Instead of mail.polarhome.com write the word localhost
User avatar
afonic
Forum Admin
Forum Admin
 
Posts: 686
Joined: Tue Oct 14, 2003 11:11 pm
Location: Salonica, Greece

Postby cdnalsi » Sat Sep 04, 2004 11:44 pm

okay so now i get the message:

Debug services - redhat.polarhome.com

http: access_log
http: error_log CGI: cgiwrap_log
CGI: suexec_log

Reading tail from logfile: error_log at redhat.polarhome.com

Warning: stat failed for /var/log/httpd/error_log (errno=13 - Permission denied) in /var/www/html/debug/log.php on line 20

Warning: Unable to access /var/log/httpd/error_log in /var/www/html/debug/log.php on line 26

Warning: fopen("/var/log/httpd/error_log", "r") - Permission denied in /var/www/html/debug/log.php on line 26
Error: opening file error_log

--

this message is coming wether i set "localhost" or "mail.poarhome.com"
cdnalsi
 

Postby cdnalsi » Sat Sep 04, 2004 11:48 pm

okay if you want to see for yourselves:

<a href='http://www.polarhome.com/~cdnalsi/testform.htm' target='_blank'>html-form linking to first exe mailer</a>
<a href='http://www.polarhome.com/~cdnalsi/basic2.html' target='_blank'>html-form linking to the second exe mailer...</a>
cdnalsi
 

Postby DenisF » Sun Sep 05, 2004 5:59 am

i'm curious, are those programs written in perl/cgi, or did you just decide to throw a windows executable into a cgi directory on a unix host, in belief that it would work?
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby cdnalsi » Sun Sep 05, 2004 7:23 am

i downloaded mailpro.exe from

<a href='http://www.arclab.com/products/mailme' target='_blank'>http://www.arclab.com/products/mailme</a>

and Form2Mail.exe from

<a href='http://www.jordan.com/Form2Mail/info.htm' target='_blank'>http://www.jordan.com/Form2Mail/info.htm</a>

the readme goes as follows:

Form2Mail CGI

How to set up:
1. Place the file Form2Mail.exe in the directory where the web server's
CGI files reside. This directory is usually named "cgi-bin" inside
your server's directory.
2. Design a form that the users will be filling in on the web. There
is a sample included with this instalation named testform.htm .
3. In your form, tell where you put the file Form2Mail.exe. This is
in the line that starts with "<form action=".
4. In your form create hidden fields with names: "__SMTP", "__to",
"__subject" and "__from". The first two are crucial. They tell
where the form contents is to be mailed. The value of __to is the
destination address, and the value of __SMTP is the address of the
SMTP (outgoing e-mail) server that you are using.


edit2:
okay so after i took the documentation once over again, i discovered that these 2 programs work only on windows based servers...
silly me! (altho i didn't know polarhome's on unix...)

do you have any suggestions for programs that are for unix server?

thanks!
cdnalsi
 

Postby DenisF » Sun Sep 05, 2004 8:45 am

Well it was kinda obvious..
.exe = windows

and check hotscripts.com, they should have something for you.

"(altho i didn't know polarhome's on unix...)"
i don't know if i should laugh or cry..
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby afonic » Sun Sep 05, 2004 10:53 am

Yes it was very obvious indeed!

BUT if WINE is installed in Polarhome, you could..... ermmm. No.

Go get a Linux-compatible perl mailer, hotscripts as Denis says would be a good idea.
User avatar
afonic
Forum Admin
Forum Admin
 
Posts: 686
Joined: Tue Oct 14, 2003 11:11 pm
Location: Salonica, Greece

Postby cdnalsi » Sun Sep 05, 2004 10:40 pm

okay so i found something really nice...
but again, there's a problem...

the instructions were to put the program into the cgi-bin dir, then chmod it to 755, the call it from a html form...
i did that, and here's the error:

CGIWrap access control mechanism denied execution of this script for the following reason:

Script userid and/or remote host not permitted!

--
if you wish to test:
<a href='http://www.polarhome.com:793/~cdnalsi/remote.html' target='_blank'>http://www.polarhome.com:793/~cdnalsi/remote.html</a>

any ideas?

edit:
same goes for this other mailing form:
<a href='http://www.polarhome.com:793/~cdnalsi/feedback.htm' target='_blank'>http://www.polarhome.com:793/~cdnalsi/feedback.htm</a>

edit2:

i figure either i'm so stupid that i should let go of all computer contact, or there's something with the sever, right?
cdnalsi
 

Postby afonic » Sun Sep 05, 2004 11:51 pm

Hmm, you need to be a shell user in order to execute CGI scripts, have you registered for shell?
User avatar
afonic
Forum Admin
Forum Admin
 
Posts: 686
Joined: Tue Oct 14, 2003 11:11 pm
Location: Salonica, Greece

Postby cdnalsi » Mon Sep 06, 2004 9:46 am

yea well i always wanted to signup for a shell....
but i never knew how much money should i send...
in my country one US dollar is about 30.000 lei (romanian units)...
so should i send 10 dollars or so?

so that explains it...
cdnalsi
 

Postby sjaz » Mon Sep 06, 2004 10:36 am

What is your lowest note unit?
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby cdnalsi » Tue Sep 07, 2004 4:53 am

lowest unit is 1.000 lei
cdnalsi
 

Postby DenisF » Tue Sep 07, 2004 5:18 am

Your registration fee should be 60.000 lei [=2$]
Image
[ FAQ ] :: [ Policy ] :: [ Port Forwarding Guide ] :: [ Search ]
User avatar
DenisF
Forum Admin
Forum Admin
 
Posts: 679
Joined: Mon Dec 16, 2002 9:09 pm
Location: Israhell

Postby sjaz » Tue Sep 07, 2004 8:03 am

Yup, thats what i would say too :).
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK

Postby bbs » Tue Sep 07, 2004 11:33 am

i sent 10 €

but thats cuz i love this place :lol:

personally i find 2$ a bit low for a one time payment or donation.

but hey who am i :ph34r:
bbs
 

Postby sjaz » Tue Sep 07, 2004 12:09 pm

Your a kind user :).
User avatar
sjaz
Forum Admin
Forum Admin
 
Posts: 694
Joined: Fri Feb 14, 2003 11:08 pm
Location: London, UK


Return to Web development

Who is online

Users browsing this forum: No registered users and 2 guests

cron