Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: sendmail method


Message #1 by nusrat sarwar <nusratsarwar@y...> on Wed, 15 May 2002 14:26:07 -0700 (PDT)
Hi all
hope you are well and fine
I have linux at my hosting server
which dont have CDONTS
so  I can send mail by "SENDMAIL" method
but I never tried that
I have studied the books but didnt get the acctual
code
can any one help me out how to send mail without using
CDONTS
please do help me quick
many thanx in advance
take care
regards
nusrat



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Message #2 by "Drew, Ron" <RDrew@B...> on Wed, 15 May 2002 17:33:02 -0400
Ask your hosting server people which STMP they use.  If it is Outlook,
just use the following as an action to your form.

<FORM name=3D"formmail" METHOD=3D"post"
ACTION=3D"mailto:nusratsarwar@y...?subject=3DMail Subject"
enctype=3D"text/plain">


-----Original Message-----
From: nusrat sarwar [mailto:nusratsarwar@y...]
Sent: Wednesday, May 15, 2002 5:26 PM
To: ASP Web HowTo
Subject: [asp_web_howto] sendmail method


Hi all
hope you are well and fine
I have linux at my hosting server
which dont have CDONTS
so  I can send mail by "SENDMAIL" method
but I never tried that
I have studied the books but didnt get the acctual
code
can any one help me out how to send mail without using
CDONTS
please do help me quick
many thanx in advance
take care
regards
nusrat



__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #3 by nusrat sarwar <nusratsarwar@y...> on Wed, 15 May 2002 14:47:37 -0700 (PDT)
Hi Ron
you are so sweet as to always ready to help quickly
but Ron the problem is I have to insert the form data
in database (of mysql) and email the info to my client
as well
I did the inserting but you know unable to email the
form inputs 

they say to use SENDMAIL and told me to have this
 "/USR/SBIN/SENDMAIL" 
now can you help me further
please do 
you are my hero (not buttering)
ok
take care
regards
nusrat


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Message #4 by "Ken Schaefer" <ken@a...> on Thu, 16 May 2002 13:05:36 +1000
Sendmail is the name of a common SMTP mail server that runs on *nix

It is *not* an object like CDONTS. If you're running on Linux, then I assume
you are using ChilliSoft or similar to host the ASP pages. Chilisoft does
not support COM objects as far as I know. You will have to consult the
documentation to see what SMTP objects they provide for you to create
messages and send them to the SMTP server.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "nusrat sarwar" <nusratsarwar@y...>
Subject: [asp_web_howto] sendmail method


: Hi all
: hope you are well and fine
: I have linux at my hosting server
: which dont have CDONTS
: so  I can send mail by "SENDMAIL" method
: but I never tried that
: I have studied the books but didnt get the acctual
: code
: can any one help me out how to send mail without using
: CDONTS
: please do help me quick
: many thanx in advance
: take care

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Message #5 by "phil griffiths" <pgtips@m...> on Thu, 16 May 2002 13:37:05
Hi Nusrat,

If your host is running Linux, maybe it would be easier for you to look 
into using PHP or Perl just to send the mails, both are commonly available 
on Linux/Apache hosts and will have no problems using sendmail.  PHP is 
same concept as ASP, easy to learn and has mail functions.  I'm sure 
you'll find many examples of mailing data from a MySql database using PHP 
or Perl on the internet.

Take a look at www.php.net or www.cpan.org for Perl.
HTH
Phil

---------------------------------------------
> Hi Ron
you are so sweet as to always ready to help quickly
but Ron the problem is I have to insert the form data
in database (of mysql) and email the info to my client
as well
I did the inserting but you know unable to email the
form inputs 

they say to use SENDMAIL and told me to have this
 "/USR/SBIN/SENDMAIL" 
now can you help me further
please do 
you are my hero (not buttering)
ok
take care
regards
nusrat
Message #6 by nusrat sarwar <nusratsarwar@y...> on Thu, 16 May 2002 07:00:25 -0700 (PDT)
Hi Phil
many many thanx for yr kind advice
I am thinking of it
but Why not ASP?
i have no time actually
i am in a hurry and want to do all through ASP
thats why i am stuck to it
God bless you for yr concern
take care
regards
nusrat

--- phil griffiths <pgtips@m...> wrote:
> Hi Nusrat,
> 
> If your host is running Linux, maybe it would be
> easier for you to look 
> into using PHP or Perl just to send the mails, both
> are commonly available 
> on Linux/Apache hosts and will have no problems
> using sendmail.  PHP is 
> same concept as ASP, easy to learn and has mail
> functions.  I'm sure 
> you'll find many examples of mailing data from a
> MySql database using PHP 
> or Perl on the internet.
> 
> Take a look at www.php.net or www.cpan.org for Perl.
> HTH
> Phil
> 
> ---------------------------------------------
> > Hi Ron
> you are so sweet as to always ready to help quickly
> but Ron the problem is I have to insert the form
> data
> in database (of mysql) and email the info to my
> client
> as well
> I did the inserting but you know unable to email the
> form inputs 
> 
> they say to use SENDMAIL and told me to have this
>  "/USR/SBIN/SENDMAIL" 
> now can you help me further
> please do 
> you are my hero (not buttering)
> ok
> take care
> regards
> nusrat
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Message #7 by nusrat sarwar <nusratsarwar@y...> on Thu, 16 May 2002 07:03:56 -0700 (PDT)
Hello Ken
You are very right about it,
you are great , you know
I am not using chillisoft to host pages .
I will talk to hosting people to provide me info of
whatyou have said
many thanx
can you advise me of any good site from where I get an
idea for using SENDMAIL (code etc0
God bless you
take care
regards
nusrat

--- Ken Schaefer <ken@a...> wrote:
> Sendmail is the name of a common SMTP mail server
> that runs on *nix
> 
> It is *not* an object like CDONTS. If you're running
> on Linux, then I assume
> you are using ChilliSoft or similar to host the ASP
> pages. Chilisoft does
> not support COM objects as far as I know. You will
> have to consult the
> documentation to see what SMTP objects they provide
> for you to create
> messages and send them to the SMTP server.
> 
> Cheers
> Ken
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> From: "nusrat sarwar" <nusratsarwar@y...>
> Subject: [asp_web_howto] sendmail method
> 
> 
> : Hi all
> : hope you are well and fine
> : I have linux at my hosting server
> : which dont have CDONTS
> : so  I can send mail by "SENDMAIL" method
> : but I never tried that
> : I have studied the books but didnt get the acctual
> : code
> : can any one help me out how to send mail without
> using
> : CDONTS
> : please do help me quick
> : many thanx in advance
> : take care
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
Message #8 by "phil griffiths" <pgtips@m...> on Thu, 16 May 2002 15:47:17
Hi Nusrat,

The truth is I have no idea how to use sendmail from ASP on Linux.  I only 
made the suggestion coz PHP is so easy to send mail from.  So I was just 
thinking maybe you could have a PHP page with just the mail function in it 
and then redirect to that page from your ASP when you want to do the 
mail.  You could POST or QueryString the data to that page.  For example 
if you used Response.Redirect "mailpage.php?
ad=recipient@s...&sub=Subject&msg=Message" then your PHP page would 
just be:
<?php
mail($ad, $sub, $msg);
header("Location: theAspPage.asp"); // to redirect back to ASP
?> and that's it!

I can appreciate that you want to do it in ASP, but if don't have much 
time then maybe an hour spent trying PHP or Perl will save you a lot of 
hassle...

Anyway, its up to you of course :-)
Rgds
Phil
----------------------------------------
> Hi Phil
many many thanx for yr kind advice
I am thinking of it
but Why not ASP?
i have no time actually
i am in a hurry and want to do all through ASP
thats why i am stuck to it
God bless you for yr concern
take care
regards
nusrat

--- phil griffiths <pgtips@m...> wrote:
> Hi Nusrat,
> 
> If your host is running Linux, maybe it would be
> easier for you to look 
> into using PHP or Perl just to send the mails, both
> are commonly available 
> on Linux/Apache hosts and will have no problems
> using sendmail.  PHP is 
> same concept as ASP, easy to learn and has mail
> functions.  I'm sure 
> you'll find many examples of mailing data from a
> MySql database using PHP 
> or Perl on the internet.
> 
> Take a look at www.php.net or www.cpan.org for Perl.
> HTH
> Phil
Message #9 by nusrat sarwar <nusratsarwar@y...> on Thu, 16 May 2002 13:44:55 -0700 (PDT)
Hi Phil
How can I thank you
Ok you are right
I will do it
but it seems ASP my first born (I love it) I wanna do
everything in it
anyway God bless you for your help
I am on it know
pray I will succeed
take care
regards
nusrat


--- phil griffiths <pgtips@m...> wrote:
> Hi Nusrat,
> 
> The truth is I have no idea how to use sendmail from
> ASP on Linux.  I only 
> made the suggestion coz PHP is so easy to send mail
> from.  So I was just 
> thinking maybe you could have a PHP page with just
> the mail function in it 
> and then redirect to that page from your ASP when
> you want to do the 
> mail.  You could POST or QueryString the data to
> that page.  For example 
> if you used Response.Redirect "mailpage.php?
> ad=recipient@s...&sub=Subject&msg=Message" then
> your PHP page would 
> just be:
> <?php
> mail($ad, $sub, $msg);
> header("Location: theAspPage.asp"); // to redirect
> back to ASP
> ?> and that's it!
> 
> I can appreciate that you want to do it in ASP, but
> if don't have much 
> time then maybe an hour spent trying PHP or Perl
> will save you a lot of 
> hassle...
> 
> Anyway, its up to you of course :-)
> Rgds
> Phil
> ----------------------------------------
> > Hi Phil
> many many thanx for yr kind advice
> I am thinking of it
> but Why not ASP?
> i have no time actually
> i am in a hurry and want to do all through ASP
> thats why i am stuck to it
> God bless you for yr concern
> take care
> regards
> nusrat
> 
> --- phil griffiths <pgtips@m...> wrote:
> > Hi Nusrat,
> > 
> > If your host is running Linux, maybe it would be
> > easier for you to look 
> > into using PHP or Perl just to send the mails,
> both
> > are commonly available 
> > on Linux/Apache hosts and will have no problems
> > using sendmail.  PHP is 
> > same concept as ASP, easy to learn and has mail
> > functions.  I'm sure 
> > you'll find many examples of mailing data from a
> > MySql database using PHP 
> > or Perl on the internet.
> > 
> > Take a look at www.php.net or www.cpan.org for
> Perl.
> > HTH
> > Phil
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

  Return to Index