View previous topic :: View next topic |
Author |
Message |
timbo -
Joined: 06 Aug 2003 Posts: 9 Location: external web server
|
Posted: Mon Sep 01, 2003 7:39 pm Post subject: Using external smtp |
|
|
HI
I have an external host but would like when using the sendmail feature have it go through the mail server I have setup on my machine at home. I use raidenmld. IT is set up ad operational. Just need a way to have mail when sent from external host use my mail server. I think it is possible, just not sure how. Have abyss set up and running also.
Thanks |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Sep 03, 2003 2:44 pm Post subject: Re: Using external smtp |
|
|
timbo wrote: | HI
I have an external host but would like when using the sendmail feature have it go through the mail server I have setup on my machine at home. I use raidenmld. IT is set up ad operational. Just need a way to have mail when sent from external host use my mail server. I think it is possible, just not sure how. Have abyss set up and running also.
Thanks |
What is the question exactly? What are you using to send the mails? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
timbo -
Joined: 06 Aug 2003 Posts: 9 Location: external web server
|
Posted: Wed Sep 03, 2003 10:07 pm Post subject: Using external smtp |
|
|
I have a host that my cgi files use
/user/sbin/sendmail
Is what I would like to do is
When I call /user/sbin/sendmail is to
be able to direct this call to an external smtp.
Say I was using host4profits hosting service
I have a cgi file that calls /user/sbi/sendmail
is what I would like to do is have the script on host4profits server but when I need to call a sendmail procedure is to have it call this procedure at
mail.mydomain.com instead so that the mail goes out from my mailserver.
Hope this explained it.
Thanks
Tim |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Thu Sep 04, 2003 12:40 pm Post subject: Re: Using external smtp |
|
|
The script you use is written in order to use sendmail (or a sendmail like) program. If you're on Linux, you should configure sendmail to send the mail through the SMTP server you like. If you're using Windows, you should install a sendmail like program (such as Blat) and modify your script in order to use this program.
In all the cases, the best is to contact the script author as your problem is not related with the web server. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
timbo -
Joined: 06 Aug 2003 Posts: 9 Location: external web server
|
Posted: Sun Sep 07, 2003 2:23 am Post subject: Sendmail |
|
|
If I had the actual sendmail script
would I be able in my scripts say
#/cgi-bin/sendmail or something along that line
In other words it does not have to be in the /user/sbin/ folder on a linux server.
If so where can I get this sendmail script
I have been all over looking for it, but everything I am finding refers to the sendmail feature but not the actual sendmail script itself.
That is really all I need for now until either the rpo version of abyss comes out or until I get my abyss up and running at full steam and can figure out blat.
Thanks |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Sep 08, 2003 11:30 pm Post subject: Re: Sendmail |
|
|
sendmail is a program (it isn"t a script) that is called by a script to send a mail. You can put anywhere in your hard drive provided that you put its full path when invoking it from your script.
By the way, sendmail comes with most of Linux distribution. It should be installed by default on your system. Try typing sendmail on the command line to check its existence.
Last question, what's the script you're using? Can you give us its URL so that we can help you installing it? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
timbo -
Joined: 06 Aug 2003 Posts: 9 Location: external web server
|
Posted: Tue Sep 09, 2003 1:41 am Post subject: Sendmail |
|
|
in my config.cgi script as in most perl scripts it asks for your server's path to sendmail. I have the path to sendmail as /user/sbin/sendmail
I got ahold of my hostig service and they told me In a shared environment it would not be possible to install it for me, but I could use
Mail::Sendmail
library
and have sendmail use my server. Just not sure how to code it in to use it.
Here is the part of the code that calls sendmail:
while ($ref = $results->fetchrow_hashref()) {
$leademail = $ref->{'LeadEmail'};
$leaddate = $ref->{'LeadDate'};
$leadip = $ref->{'IpAddress'};
if ($leaddate == $whatdate) {
$leademail =~ s/\r//g;
$leademail =~ s/\n//g;
open (MAIL, "|$mailprog $leademail");
print MAIL "To: FFA Lead <$leademail>\n";
print MAIL "From: $dname <$from>\n";
print MAIL "Subject: $subject\n";
print MAIL "Content-Type: text/$look\n\n";
print MAIL $disclaimer;
print MAIL "$admessage\n";
$counter++;
print "Message #$counter sent to: $leademail<br>\n"; }
}
&CloseMySQL;
if ($counter > 1) { $sss = "s"; }
print "<p><b>Done. There was a total $counter message$sss sent.</b></p>\n";
&PrintMemberFooter;
&PrintFooter;
exit; }
Where you see $mailprog variable that variable contains
/user/sbi/sendmail
That is where I am not sure how to put the
Mail::Sendmail
library
I think where is says library is where I would insert mail.mydomain.com
just not sure on where and how to put the whole sequence though.
Let me know if you need more.
Thanks
Tim |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Sep 10, 2003 3:25 pm Post subject: Re: Sendmail |
|
|
Are you hosting this script on your computer or on your web hosting company computers? _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
timbo -
Joined: 06 Aug 2003 Posts: 9 Location: external web server
|
Posted: Wed Sep 10, 2003 10:16 pm Post subject: Sendmail |
|
|
This script would be on the hosting company's server.
I want to use the
Mail::Sendmail
library
and make sendmail on their server use my mail server
mail.mydomain.com
I have been playing around but no getting anywhere fast.
Thanks
Tim |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Sep 12, 2003 3:22 pm Post subject: Re: Sendmail |
|
|
timbo wrote: | This script would be on the hosting company's server.
|
In such a case, we cannot help you too much. It's better to ask the company hosting your site for support.
We only provide support for issues related to Abyss Web Server and the sites you host with it. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
timbo -
Joined: 06 Aug 2003 Posts: 9 Location: external web server
|
Posted: Thu Sep 18, 2003 4:30 am Post subject: Sendmail |
|
|
Mail::Sendmail
library
IF anyone has any way that I can use the above in my scripts on my hostig service to make it's sendmail feature use my smtp PLEASE help.
My hosting service tells me to use the above and that it is possible to use the sendmail they have installed for us to use, to actually have it use an outside smtp server to do the actuall mailing, but won't explai how to do it. If anyone has an idea thanks, it not thanks anyway. |
|
Back to top |
|
 |
|