send mail

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
jgrealish
-


Joined: 21 Dec 2003
Posts: 1
Location: Central Florida

PostPosted: Sun Dec 21, 2003 5:07 am    Post subject: send mail Reply with quote

Instructions for setting up form-to-mail script are asking for my server's send mail. Does Abyss have this capability? Or, do I have to install a third party send mail program? 8O

Thanks in advance!
Back to top View user's profile Send private message Visit poster's website
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Sun Dec 21, 2003 6:11 am    Post subject: Reply with quote

Hi jgrealish--

I installed sendmail for windows from IndigoMail at:
http://www.indigostar.com/sendmail.htm

Downside: they charge you $49 after the trial period ends. I couldn't find a 'way' around it and I eventually broke down and purchased the license...

...because, in my experience, it was very easy to install and configure and use.

I am quite sure there is no bundled sendmail with Abyss, though if anyone could write a competitive script, it would probably these (Aprelium) people.

Regards,
Axis
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3714
Location: USA, GA

PostPosted: Sun Dec 21, 2003 2:51 pm    Post subject: Reply with quote

I can write you a PHP form to send form data to a text or html file.
I tried setting up good forms in Perl but than decided perl is too
hard for me so I learned PHP and its easy , want A Form ?
_________________
Computer Programmer & Networking Specialist

Back to top View user's profile Send private message Visit poster's website MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 21, 2003 5:48 pm    Post subject: Re: send mail Reply with quote

jgrealish,

Web servers are designed to serve web files and not send mails.
So you need to get a mail server to do what you want. But of your needs are limited to sending a mail with a script, you can live without a server. PHP and Perl already offer such a capability and will send your email using the SMTP server of your ISP (the one you use to send emails using Outlook).
There is also a sendmail equivalent on Windows called blat (search this forum for blat for more information).
On PHP, you can use the mail() instruction to send emails. See http://www.aprelium.com/forum/viewtopic.php?t=2302 for a sample script.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
sage
-


Joined: 08 Feb 2004
Posts: 3
Location: South Africa

PostPosted: Sun Feb 08, 2004 10:24 am    Post subject: Reply with quote

'lo
For what it's worth, I've made use of this tiny free SMTP server for handling email forms from Abyss.
Find it at www.softstack.com/freesmtp.html

Sage
Back to top View user's profile Send private message Visit poster's website
optimumwebdesign
-


Joined: 12 May 2004
Posts: 8

PostPosted: Tue May 18, 2004 11:07 pm    Post subject: SMTP and SENDMAIL Reply with quote

I downloaded the Abyss Web Server X1 to have access to a cgi bin and to learn more about how to make the website I am working on more interactive. However, I am not sure what kind of infomation I need or even how to connect to a mail server when I come to a place like this in a form-to mail script like Big Nose Bird for instance:

#@okaydomains=("http://mydomain.com", "http://www.mydomain.com");

#SMTP_SERVER: indicates the name of the host acting as the e-mail
# gateway. "localhost" should work on most systems.

$SMTP_SERVER="localhost";

#OR IF SMTP IS UNAVAILABLE TO YOU, USE SEND_MAIL-
# BUT NOT BOTH!

#$SEND_MAIL="/usr/lib/sendmail -t";

$lockfile="/tmp/bnbform.lck";

The infomation I know to have is:
-I have a hotmail account like 'me@hotmail.com'
-I believe my host name is 'localhost?"
-My Web server local URL: 'http://127.0.0.1/'
-I have an NO-IP domain 'forsaintlukes.hopto.org'

My question at this point is:
Do I need a full 'www dot domain" and a matching catchall email address to make a form-to-mail script work?

This is an awesome forum and opportunity for webmasters, and I thank you in advance.
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Tue May 18, 2004 11:39 pm    Post subject: Reply with quote

Hi optimumwebdesign--

If you are using a no.ip domain (or subdomain), they have a free mail redirection service. You can sign up for that and download a free mail server (I am using Argosoft Mail Server.)

However, for the purposes of the form, it looks like it allows for smtp from your ISP. My ISP is "mwt.net" so, in your shoes, I would use:
$SMTP_SERVER="smtp.mwt.net";

Hope this helps and good luck!

Regards,
Axis
Back to top View user's profile Send private message
optimumwebdesign
-


Joined: 12 May 2004
Posts: 8

PostPosted: Wed May 19, 2004 2:44 am    Post subject: Reply with quote

[quote="Axis"]Hi optimumwebdesign--

If you are using a no.ip domain (or subdomain), they have a free mail redirection service. You can sign up for that and download a free mail server (I am using Argosoft Mail Server.)

However, for the purposes of the form, it looks like it allows for smtp from your ISP. My ISP is "mwt.net" so, in your shoes, I would use:
$SMTP_SERVER="smtp.mwt.net";

Hope this helps and good luck!

Regards,
Axis[/quote]

Hello Axis

Let me thank you for your prompt reply. I have already downloaded Argosoft Mail Server and will take another good look at this program.

I am still feeling a little lost, though...

In your case, are you refering to your ISP and your domain name or address as being the same?

My no-ip domain is 'forsaintlukes.hopto.org.' Would I use it as follows?

$SMTP_SERVER="smtp.'forsaintlukes.hopto.org";

What I am trying to do in a nice way is make my contact us form active to receive email from visitors, but feel I have a little more to learn about forms and mail servers. Thanks again for your reply.
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed May 19, 2004 3:26 am    Post subject: Reply with quote

Actually, if the Mail Server is running on the same computer as the HTTP server (Abyss), then you can put "localhost" for the $SMTP_SERVER address.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Wed May 19, 2004 4:55 am    Post subject: Reply with quote

Yes..what iNaNimAtE says is usually correct.

I guess I was describing two different options you have for using this particular script. This script seems to be able to run either under "sendmail" or through your smtp server. If you are on windows, like I am, what you get when you install a sendmail script to accompany your http server is usually a clone which makes sendmail calls redirect to your smtp server anyway. (...hope that was clear.)

So you can get "blat" (free) or windows sendmail (like indigostar...which costs) or you can use your smtp server. If you install a mail server of your own, you can use that server for smtp. *However*, you can run this script ( it looks like) through your own dsl (or whatever) ISP smtp server.

It has been my experience that whenever I can use my ISP's smtp connection for mail sending scripts, things are easier. My experience is not everyones, I am sure. I hope this helps a bit.

Regards,
Axis
Back to top View user's profile Send private message
Kees
-


Joined: 22 Feb 2004
Posts: 3

PostPosted: Mon Jun 14, 2004 12:20 am    Post subject: Reply with quote

Two things on this 'sendmail'-subject:

1. I found a 'KeyGen'-script (in Perl) for the Indigostar sendmail alternative. It's illegal, but it works fine.

2. Anyone discovers 'Sendmane'? I think it's Japanese and a Windows equivalent for Unix 'sendmail'. I have downloaded versions 0.97 and 0.98. But I don't understand the language! Can someone translate it?
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Jun 14, 2004 12:37 am    Post subject: Reply with quote

Blat is a popular sendmail alternative.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
cldickerson
-


Joined: 08 May 2004
Posts: 23

PostPosted: Fri Jul 16, 2004 3:16 am    Post subject: Another sendmail option Reply with quote

Okay guys... There is another option. You can use a free sendmail script that was written for Xitami. It is called 'Mailto'. Download it at http://www.imatix.com/pub/tools/mailto.zip The only files in the pacakge that you will need are mailto.exe, mailto.cfg, and sendmail.html. Place sendmail.html in your htdocs directory (this is your form page). Place the other two files in your cgi-bin directory. Use a text editor to modify the mailto.cfg file. All it needs to contain is the following (just copy it from this post):
Quote:
[MAILTO]
CGIAPP=Yes
;
[SENDMAIL]
;
; Name of mail server (Example: mail.yourdomain.com)
SMTPSERVER=mail.yourdomain.net
;
; Page containing form for user input.
FORM=sendmail.html
;
; Reply if successful
OKREPLY=<HTML>Mail Sent.</HTML>
;
; Reply if failure
FAILREPLY=<HTML>Mail failed to Send!</HTML>

You'll need to change nothing but the SMTPSERVER entry. Everything else can be left as is.

If you want to open a new page on a successful send, you can modify the OKREPLY field to open a page using MetaRefresh. Replace the line with:
Quote:
OKREPLY=<HTML><meta http-equiv="REFRESH" content="0;url=http://www.yourdomain.com/thanks.htm"></HTML>

Change the URL to that of your 'success' page.

It works like a champ.

Claude
Back to top View user's profile Send private message
cldickerson
-


Joined: 08 May 2004
Posts: 23

PostPosted: Sun Aug 22, 2004 6:02 pm    Post subject: Precaution concerning IndigoStar sendmail Reply with quote

Just a warning for those using IndigoStar sendmail --

Do not place your sendmail.exe and sendmail.ini in your cgi-bin directory. Place them outsite of your server directory (e.g. c:\sendmail\) and change the sendmail location in your CGI scripts to poing to the external directory.

Placing sendmail.ini in your cgi-bin directory will allow anyone to enter your websiteaddress/cgi-bin/sendmail.ini and read your sendmail.ini file. Doing so will divulge everything needed to access your email account, including your username and password.

Claude
Back to top View user's profile Send private message
Axis
-


Joined: 29 Sep 2003
Posts: 336

PostPosted: Sun Aug 22, 2004 7:57 pm    Post subject: Reply with quote

...or make sendmail.ini password protected.

However, I think I would go with Claude's mailto.zip if I were doing it again.

Regards,
Axis
Back to top View user's profile Send private message
soldierboy101st
-


Joined: 13 Apr 2005
Posts: 5

PostPosted: Wed Apr 13, 2005 4:09 pm    Post subject: Re: SMTP and SENDMAIL Reply with quote

I have this exact same server, using this exact same script (bnbform). The only SMTP program that I've found so far to work is QK SMTP which can be downloaded from download.com. Do a search for "QK SMPT" it is freeware, even though CNET has it listed as paying 49.99. Install it and it will be ready to go, I didn't have to configure it at all.

optimumwebdesign wrote:
I downloaded the Abyss Web Server X1 to have access to a cgi bin and to learn more about how to make the website I am working on more interactive. However, I am not sure what kind of infomation I need or even how to connect to a mail server when I come to a place like this in a form-to mail script like Big Nose Bird for instance:

#@okaydomains=("http://mydomain.com", "http://www.mydomain.com");

#SMTP_SERVER: indicates the name of the host acting as the e-mail
# gateway. "localhost" should work on most systems.

$SMTP_SERVER="localhost";

#OR IF SMTP IS UNAVAILABLE TO YOU, USE SEND_MAIL-
# BUT NOT BOTH!

#$SEND_MAIL="/usr/lib/sendmail -t";

$lockfile="/tmp/bnbform.lck";

The infomation I know to have is:
-I have a hotmail account like 'me@hotmail.com'
-I believe my host name is 'localhost?"
-My Web server local URL: 'http://127.0.0.1/'
-I have an NO-IP domain 'forsaintlukes.hopto.org'

My question at this point is:
Do I need a full 'www dot domain" and a matching catchall email address to make a form-to-mail script work?

This is an awesome forum and opportunity for webmasters, and I thank you in advance.
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group