PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Diriger une société d'hébergement > alt.internet.seo > OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.internet.seo Internet search engines and related topics.

OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

Réponse
 
LinkBack Outils de la discussion
Vieux 19/09/2006, 09h34   #1
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

Hi Guys
I am moving hosts and going from a windows server to a linux server.
One of my main problems is that on one of my sites, I have 100's of
pages that have a form on them. This form goes to an asp file which
then emails me the details they filled in.

What can I use that will work on a linux server ?
Any ideas guys ? - [And I am completely dumb if it is perl etc]

Thank you.
plh
Paul

--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 11h39   #2
Fernando Rodríguez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

Hello Paul,

> Hi Guys
> I am moving hosts and going from a windows server to a linux server.
> One of my main problems is that on one of my sites, I have 100's of
> pages that have a form on them. This form goes to an asp file which
> then emails me the details they filled in.
> What can I use that will work on a linux server ?
> Any ideas guys ? - [And I am completely dumb if it is perl etc]


Try PHP


  Réponse avec citation
Vieux 19/09/2006, 13h04   #3
Brian Wakem
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

Paul wrote:

> Hi Guys
> I am moving hosts and going from a windows server to a linux server.
> One of my main problems is that on one of my sites, I have 100's of
> pages that have a form on them. This form goes to an asp file which
> then emails me the details they filled in.
>
> What can I use that will work on a linux server ?
> Any ideas guys ? - [And I am completely dumb if it is perl etc]



You can run ASP pages on Linux:
http://www.apache-asp.org/


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
  Réponse avec citation
Vieux 19/09/2006, 14h25   #4
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 10:39:33 +0000 (UTC), Fernando RodrÃguez
<frr@fernando-rodriguez.com> wrote:

>Hello Paul,
>
>> Hi Guys
>> I am moving hosts and going from a windows server to a linux server.
>> One of my main problems is that on one of my sites, I have 100's of
>> pages that have a form on them. This form goes to an asp file which
>> then emails me the details they filled in.
>> What can I use that will work on a linux server ?
>> Any ideas guys ? - [And I am completely dumb if it is perl etc]


Hi Fernando
The pages are html. That is all I work in. I cannot get my head around
php and do not like it. When I said perl etc PHP was the etc <G>

Just need something where it can be embedded into the html file and
when they fill out details to be emailed to me.

Thank you anyway.
plh
Paul


>Try PHP
>


--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 14h26   #5
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 13:04:15 +0100, Brian Wakem <no@email.com> wrote:

>You can run ASP pages on Linux:
>http://www.apache-asp.org/


I can ?
I was under the impression that asp did not work on linux.
Will there be a lot to redo, or can I use the same code as what I have
on the windows server ?
plh
Paul

--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 15h27   #6
John Bokma
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

Paul <lamewolf2004[REMOVE]@yahoo.com> wrote:

> Hi Guys
> I am moving hosts and going from a windows server to a linux server.
> One of my main problems is that on one of my sites, I have 100's of
> pages that have a form on them. This form goes to an asp file which
> then emails me the details they filled in.
>
> What can I use that will work on a linux server ?
> Any ideas guys ? - [And I am completely dumb if it is perl etc]


Hi Paul,

http://nms-cgi.sourceforge.net/scripts.shtml

and download the compat version of FormMail. This is a replacement of the
notorious FormMail written by Math (which had at some time more security
holes then Vista and XP combined :-) )

Let me know if you need with installing it etc.

--
John Need with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-.html
  Réponse avec citation
Vieux 19/09/2006, 15h28   #7
John Bokma
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

Paul <lamewolf2004[REMOVE]@yahoo.com> wrote:

> On Tue, 19 Sep 2006 13:04:15 +0100, Brian Wakem <no@email.com> wrote:
>
>>You can run ASP pages on Linux:
>>http://www.apache-asp.org/

>
> I can ?


Yes, and no.

ASP is a framework, like CGI. It needs a programming language to do the
work. I guess your software is written in VBScript, and AFAIK (but can be
wrong) ASP on Linux doesn't support VBScript. It does support Perl in the
ASP framework, but that doesn't you.

--
John Need with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-.html
  Réponse avec citation
Vieux 19/09/2006, 18h10   #8
Borek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 10:34:53 +0200, Paul
<"lamewolf2004[REMOVE]"@yahoo.com> wrote:

> I am moving hosts and going from a windows server to a linux server.
> One of my main problems is that on one of my sites, I have 100's of
> pages that have a form on them. This form goes to an asp file which
> then emails me the details they filled in.
>
> What can I use that will work on a linux server ?


php?

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl
  Réponse avec citation
Vieux 19/09/2006, 18h16   #9
Borek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 15:25:38 +0200, Paul
<"lamewolf2004[REMOVE]"@yahoo.com> wrote:

> The pages are html. That is all I work in. I cannot get my head around
> php and do not like it. When I said perl etc PHP was the etc <G>


Oh man, you are telling it now?

Care to share your url?

http://www.chembuddy.com/?left=contact
http://www.bpp.com.pl/?left=dyslektyk-2&right=kup

Both call php script and send info to me. Is that something similar to
what you need?

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl
  Réponse avec citation
Vieux 19/09/2006, 18h42   #10
Windsun
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Cannot use asp on linux - what can I use ? [possible ping John Bokma]

If your new host cannot provide ASP server, they suck.

-------------------------------------------------------------------------
"Paul" <lamewolf2004[REMOVE]@yahoo.com> wrote in message
news:jmavg2pmft0qsuohcr5315vv302j80keph@4ax.com...
> Hi Guys
> I am moving hosts and going from a windows server to a linux server.
> One of my main problems is that on one of my sites, I have 100's of
> pages that have a form on them. This form goes to an asp file which
> then emails me the details they filled in.
>
> What can I use that will work on a linux server ?
> Any ideas guys ? - [And I am completely dumb if it is perl etc]
>
> Thank you.
> plh
> Paul
>
> --
> Handmade Jewelry from Texas
> http://www.houstoncrafts.com/Swarovs...celet-107.html
> http://www.houstoncrafts.com/Swarovs...rings-310.html
> http://www.houstoncrafts.com/Swarovs...hoker-113.html
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
> News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
> Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption
> =----



  Réponse avec citation
Vieux 19/09/2006, 21h14   #11
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 19:16:41 +0200, Borek
<m.borkowski@delete.chembuddy.these.com.parts> wrote:

>On Tue, 19 Sep 2006 15:25:38 +0200, Paul
><"lamewolf2004[REMOVE]"@yahoo.com> wrote:
>
>> The pages are html. That is all I work in. I cannot get my head around
>> php and do not like it. When I said perl etc PHP was the etc <G>


Hi Borek
Sorry for the delay. Medical reasons.

>Oh man, you are telling it now?
>
>Care to share your url?


http://www.houstoncrafts.com

The forms are on the sold section. Here is one of the URLs that
contain the form.

http://www.houstoncrafts.com/sold-ha...-bracelet.html

This goes to an asp form :

<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Paul Burke"
Mailer.FromAddress= "webmaster@houstoncrafts.com"
Mailer.ReplyTo = strEmail
Mailer.RemoteHost = "216.74.123.55"
Mailer.AddRecipient "Houston Crafts", "webmaster@houstoncrafts.com"
Mailer.Subject = "Request for a remake"
strMsgHeader = "This mail message was sent from the Houston Crafts
Sold Jewelry Online Form" & vbCrLf & vbCrLf
Mailer.BodyText = strMsgHeader & vbCrLf & "Email: " &
Request.Form("Email") & _
vbCrLf & "Name: " & Request.Form("name") & _
vbCrLf & "Subject: " & Request.Form("Subject") & _
vbCrLf & "Comments: " & Request.Form("Comments")
IF Mailer.SendMail THEN
Response.Write strFirstName & "<br />"
Response.Write "Thank you."
ELSE
Response.Write "The following error occurred while sending your
message: " & Mailer.Response
END IF
%>

>http://www.chembuddy.com/?left=contact
>http://www.bpp.com.pl/?left=dyslektyk-2&right=kup
>
>Both call php script and send info to me. Is that something similar to
>what you need?


Yes.
My one sends me the email address, the item wanted, and any comments.

>Borek


plh
Paul

--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 21h15   #12
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On 19 Sep 2006 14:28:49 GMT, John Bokma <john@castleamber.com> wrote:

>Paul <lamewolf2004[REMOVE]@yahoo.com> wrote:
>
>> On Tue, 19 Sep 2006 13:04:15 +0100, Brian Wakem <no@email.com> wrote:
>>
>>>You can run ASP pages on Linux:
>>>http://www.apache-asp.org/

>>
>> I can ?

>
>Yes, and no.
>
>ASP is a framework, like CGI. It needs a programming language to do the
>work. I guess your software is written in VBScript,


I haven't a clue Borek. I only know html, xhtml and css. All this is
waaaaaaay above my thick head.

> and AFAIK (but can be wrong) ASP on Linux doesn't support VBScript. It does support Perl in the
>ASP framework, but that doesn't you.


Bummer

plh
Paul

--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 21h16   #13
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On 19 Sep 2006 14:27:27 GMT, John Bokma <john@castleamber.com> wrote:

>Paul <lamewolf2004[REMOVE]@yahoo.com> wrote:
>
>> Hi Guys
>> I am moving hosts and going from a windows server to a linux server.
>> One of my main problems is that on one of my sites, I have 100's of
>> pages that have a form on them. This form goes to an asp file which
>> then emails me the details they filled in.
>>
>> What can I use that will work on a linux server ?
>> Any ideas guys ? - [And I am completely dumb if it is perl etc]

>
>Hi Paul,
>
>http://nms-cgi.sourceforge.net/scripts.shtml
>
>and download the compat version of FormMail. This is a replacement of the
>notorious FormMail written by Math (which had at some time more security
>holes then Vista and XP combined :-) )
>
>Let me know if you need with installing it etc.


I will John, Can you contact me offline about this. Best to use
lamewolf @ yahoo dot com as my normal addy is playing up.
Thank you
plh
paul
--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 21h19   #14
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 19:10:42 +0200, Borek
<m.borkowski@delete.chembuddy.these.com.parts> wrote:

>On Tue, 19 Sep 2006 10:34:53 +0200, Paul
><"lamewolf2004[REMOVE]"@yahoo.com> wrote:
>
>> I am moving hosts and going from a windows server to a linux server.
>> One of my main problems is that on one of my sites, I have 100's of
>> pages that have a form on them. This form goes to an asp file which
>> then emails me the details they filled in.
>>
>> What can I use that will work on a linux server ?

>
>php?
>
>Borek


I don't know php Borek.
I need to move hosts asap. Learn a new shopping cart and get this
script working. I dont have the time or the thinking behind it atm. I
had a hard time trying to get my head round php when i was mentally
okay, now I am on heavy medication.

plh
Paul
--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 19/09/2006, 21h24   #15
Borek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 22:15:41 +0200, Paul
<"lamewolf2004[REMOVE]"@yahoo.com> wrote:

> On 19 Sep 2006 14:28:49 GMT, John Bokma <john@castleamber.com> wrote:


>> ASP is a framework, like CGI. It needs a programming language to do the
>> work. I guess your software is written in VBScript,

>
> I haven't a clue Borek. I only know html, xhtml and css. All this is
> waaaaaaay above my thick head.


You did it again

Trying to look at your houstoncraft site, but it is not working ATM. Or at
least I get "Could not locate remote server" message here in Warsaw.

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl
  Réponse avec citation
Vieux 19/09/2006, 21h25   #16
Borek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 22:14:20 +0200, Paul
<"lamewolf2004[REMOVE]"@yahoo.com> wrote:

>> Both call php script and send info to me. Is that something similar to
>> what you need?

>
> Yes.
> My one sends me the email address, the item wanted, and any comments.


Not telling you to use PHP, but that's how I am doing it and it works.

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl
  Réponse avec citation
Vieux 19/09/2006, 21h29   #17
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 22:24:05 +0200, Borek
<m.borkowski@delete.chembuddy.these.com.parts> wrote:

>On Tue, 19 Sep 2006 22:15:41 +0200, Paul
><"lamewolf2004[REMOVE]"@yahoo.com> wrote:
>
>> On 19 Sep 2006 14:28:49 GMT, John Bokma <john@castleamber.com> wrote:

>
>>> ASP is a framework, like CGI. It needs a programming language to do the
>>> work. I guess your software is written in VBScript,

>>
>> I haven't a clue Borek. I only know html, xhtml and css. All this is
>> waaaaaaay above my thick head.

>
> You did it again


Not surprised. Sorry. On Meds aint ing.

>Trying to look at your houstoncraft site, but it is not working ATM. Or at
>least I get "Could not locate remote server" message here in Warsaw.


Not surprised again. My other site is over 3000 down on the day.
Both are working atm. I will be so pleased when they are moved over.
plh
paul


>Borek


--
Handmade Jewelry from Texas
http://www.houstoncrafts.com/Swarovs...celet-107.html
http://www.houstoncrafts.com/Swarovs...rings-310.html
http://www.houstoncrafts.com/Swarovs...hoker-113.html

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 20/09/2006, 00h27   #18
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 21:16:54 +0100, Paul
<lamewolf2004[REMOVE]@yahoo.com> wrote:

>>Let me know if you need with installing it etc.

>
>I will John, Can you contact me offline about this. Best to use
>lamewolf @ yahoo dot com as my normal addy is playing up.
>Thank you
>plh
>paul


cant even get my own addy correct.
it is lamewolf2004 @ yahoo dot com

sorry. blame the meds.
plh
paul

--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 20/09/2006, 00h52   #19
Jim Carlock
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

"Borek" <m.borkowski@delete.chembuddy.these.com.parts> wrote:
> Not telling you to use PHP, but that's how I am doing it and it works.


Borek, do you use PHP's mail() function or the phpmail() function?

I think there's other packages available as well.

The PHP mail() function gets described here...

http://www.php.net/manual/en/function.mail.php

bool mail ( string to,
string subject,
string message
[, string additional_headers
[, string additional_parameters]] )

You might need to watch the following if your newsreader/email
reader breaks up long lines ( >70 characters ).

<?php
// Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
// Mailer.FromName = "Paul Burke"
$sNL = "\n";
$sFrom = "Paul Burke <email@example.com>";
// Mailer.FromAddress= "webmaster@example.com"
// Mailer.ReplyTo = strEmail
// $sTo = $strEmail;
$sTo = $sFrom;
// Mailer.RemoteHost = "xxx.xx.xxx.xx"
// above is unknown
// Mailer.AddRecipient "Houston Crafts", "webmaster@example.com"
// $sFrom could be added as a header
$sHeaders = "From: $sFrom\nTo: $sTo\n";
// Mailer.Subject = "Request for a remake"
$sHeaders .= "Subject: Request for a remake\n";
// strMsgHeader = "This mail message was sent from the " & _
// "Houston Crafts Sold Jewelry Online Form" & vbCrLf & vbCrLf
$sBodyTopic = "This mail message was sent from the Houston
Crafts Sold Jewelry Online Form\r\n\r\n";
// Mailer.BodyText = strMsgHeader & vbCrLf & _
// "Email: " & Request.Form("Email") & vbCrLf & _
// "Name: " & Request.Form("name") & vbCrLf & _
// "Subject: " & Request.Form("Subject") & vbCrLf & _
// "Comments: " & Request.Form("Comments")
$sMessageText .= $sBodyTopic .
"Email: " . $_POST['Email'] . "\r\n
Name: " . $_POST['name'] . "\r\n
Subject: " . $_POST['Subject'] . "\r\n
Comments: " . $_POST['Comments'] . "\r\n";
$yDidIt = mail($sTo, $sSubject, $sMessageText, $sHeaders);

// IF Mailer.SendMail THEN
// Response.Write strFirstName & "<br />"
// Response.Write "Thank you."
// ELSE
// Response.Write "The following error occurred while sending your
// message: " & Mailer.Response
// END IF

if ($yDidIt) {
echo("$strFirstName<br />\r\n";
echo("Thank you.\r\n");
} else {
echo("<p>The following error occurred while sending your message:\r\n");
echo("UNKNOWN ERROR: Some data you entered is invalid.</p>");
}

?>

The above should be fairly close to accomplishing what you need,
provided the server automatically configures a FROM address in
the PHP.INI file. The other questionable items above, involve the
$_POST variables. The case MUST match for each of the items,
because PHP matches the case exactly. This also s prevent
SPAMMERS from using your form to generate spam.

Hope this s some. It should be pretty close to what you need.

--
Jim Carlock
Post replies to the group.


  Réponse avec citation
Vieux 20/09/2006, 01h07   #20
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Tue, 19 Sep 2006 23:52:04 GMT, "Jim Carlock" <anonymous@127.0.0.1>
wrote:

>"Borek" <m.borkowski@delete.chembuddy.these.com.parts> wrote:
>> Not telling you to use PHP, but that's how I am doing it and it works.

>
>Borek, do you use PHP's mail() function or the phpmail() function?
>
>I think there's other packages available as well.
>
>The PHP mail() function gets described here...
>
>http://www.php.net/manual/en/function.mail.php
>
>bool mail ( string to,
> string subject,
> string message
> [, string additional_headers
> [, string additional_parameters]] )
>
>You might need to watch the following if your newsreader/email
>reader breaks up long lines ( >70 characters ).
>
><?php
>// Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
>// Mailer.FromName = "Paul Burke"
>$sNL = "\n";
>$sFrom = "Paul Burke <email@example.com>";
>// Mailer.FromAddress= "webmaster@example.com"
>// Mailer.ReplyTo = strEmail
>// $sTo = $strEmail;
>$sTo = $sFrom;
>// Mailer.RemoteHost = "xxx.xx.xxx.xx"
>// above is unknown
>// Mailer.AddRecipient "Houston Crafts", "webmaster@example.com"
>// $sFrom could be added as a header
>$sHeaders = "From: $sFrom\nTo: $sTo\n";
>// Mailer.Subject = "Request for a remake"
>$sHeaders .= "Subject: Request for a remake\n";
>// strMsgHeader = "This mail message was sent from the " & _
>// "Houston Crafts Sold Jewelry Online Form" & vbCrLf & vbCrLf
>$sBodyTopic = "This mail message was sent from the Houston
>Crafts Sold Jewelry Online Form\r\n\r\n";
>// Mailer.BodyText = strMsgHeader & vbCrLf & _
>// "Email: " & Request.Form("Email") & vbCrLf & _
>// "Name: " & Request.Form("name") & vbCrLf & _
>// "Subject: " & Request.Form("Subject") & vbCrLf & _
>// "Comments: " & Request.Form("Comments")
>$sMessageText .= $sBodyTopic .
>"Email: " . $_POST['Email'] . "\r\n
>Name: " . $_POST['name'] . "\r\n
>Subject: " . $_POST['Subject'] . "\r\n
>Comments: " . $_POST['Comments'] . "\r\n";
>$yDidIt = mail($sTo, $sSubject, $sMessageText, $sHeaders);
>
>// IF Mailer.SendMail THEN
>// Response.Write strFirstName & "<br />"
>// Response.Write "Thank you."
>// ELSE
>// Response.Write "The following error occurred while sending your
>// message: " & Mailer.Response
>// END IF
>
>if ($yDidIt) {
>echo("$strFirstName<br />\r\n";
>echo("Thank you.\r\n");
>} else {
>echo("<p>The following error occurred while sending your message:\r\n");
>echo("UNKNOWN ERROR: Some data you entered is invalid.</p>");
>}
>
>?>
>
>The above should be fairly close to accomplishing what you need,
>provided the server automatically configures a FROM address in
>the PHP.INI file. The other questionable items above, involve the
>$_POST variables. The case MUST match for each of the items,
>because PHP matches the case exactly. This also s prevent
>SPAMMERS from using your form to generate spam.
>
>Hope this s some. It should be pretty close to what you need.


Wow !
that is all waaaaaaaay over my head.
Thank you for putting the time and effort into it.
When the site is on the new server, I will try and sort it out. That's
if I can.

Thank you again
plh
Paul

--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 20/09/2006, 02h09   #21
Jim Carlock
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

"Paul" <lamewolf2004[REMOVE]@yahoo.com> wrote:
> Wow !
> that is all waaaaaaaay over my head.


Nah, not really. The lines that start with two slashes, are
your old lines (the two slashes denote them as comments).
I changed the email address you listed to keep it from
getting spammed. I changed the IP number as well, as
you shouldn't have posted either of those.

> Thank you for putting the time and effort into it. When the
> site is on the new server, I will try and sort it out. That's if
> I can.


With a little effort, you should be able to get it to work. If
you need some , post questions to the comp.lang.php
group if you want. There's a couple guys there that are
quite ful. Just make sure you leave off the IP numbers,
mail server names, and the email addresses to keep the
spam from going to those accounts. Use things like:

webmaster@example.com

to denote your email address. I don't think you'll need to
post any sort of IP number at all, nor even a mail server.
Most use some sort of "sendmail" to get outgoing mail to
go out to you and PHP's mail function tends to support
such a mechanism. It's all transparent to you, so the only
thing you need to get familiar with for the moment is the
mail() function...

http://www.php.net/manual/en/function.mail.php

And it has three required parameters and an optional
parameter (the headers) to put some extra headers onto
the email (required to send out any sort of object file).

It's easier than it initially appears.

I've gotten the mail() function to work for me and it works
quite well.

Unless your newsreader breaks up the lines in the message
I sent here, there shouldn't be any problems with it.

Hope this s.

Good luck. I read the PHP newsgroup as well, and post
a question every so often there.

--
Jim Carlock
Post replies to the group.


  Réponse avec citation
Vieux 20/09/2006, 09h03   #22
Borek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Wed, 20 Sep 2006 01:52:04 +0200, Jim Carlock <anonymous@127.0.0.1>
wrote:

>> Not telling you to use PHP, but that's how I am doing it and it works.

>
> Borek, do you use PHP's mail() function or the phpmail() function?


mail()

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl
  Réponse avec citation
Vieux 20/09/2006, 09h12   #23
Borek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Wed, 20 Sep 2006 02:07:58 +0200, Paul
<"lamewolf2004[REMOVE]"@yahoo.com> wrote:

>> Hope this s some. It should be pretty close to what you need.


> that is all waaaaaaaay over my head.


Paul, it just looks complicated, but it is not. Contact me off-line if you
want, I will you to sort out what is going on in Jim's code.

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl
  Réponse avec citation
Vieux 20/09/2006, 14h12   #24
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT : Cannot use asp on linux - what can I use ? [possible ping John Bokma]

On Wed, 20 Sep 2006 01:09:30 GMT, "Jim Carlock" <anonymous@127.0.0.1>
wrote:

>"Paul" <lamewolf2004[REMOVE]@yahoo.com> wrote:
>> Wow !
>> that is all waaaaaaaay over my head.

>
>Nah, not really. The lines that start with two slashes, are
>your old lines (the two slashes denote them as comments).
>I changed the email address you listed to keep it from
>getting spammed. I changed the IP number as well, as
>you shouldn't have posted either of those.
>
>> Thank you for putting the time and effort into it. When the
>> site is on the new server, I will try and sort it out. That's if
>> I can.

>
>With a little effort, you should be able to get it to work. If
>you need some , post questions to the comp.lang.php
>group if you want. There's a couple guys there that are
>quite ful. Just make sure you leave off the IP numbers,
>mail server names, and the email addresses to keep the
>spam from going to those accounts. Use things like:
>
>webmaster@example.com
>
>to denote your email address. I don't think you'll need to
>post any sort of IP number at all, nor even a mail server.
>Most use some sort of "sendmail" to get outgoing mail to
>go out to you and PHP's mail function tends to support
>such a mechanism. It's all transparent to you, so the only
>thing you need to get familiar with for the moment is the
>mail() function...
>
>http://www.php.net/manual/en/function.mail.php
>
>And it has three required parameters and an optional
>parameter (the headers) to put some extra headers onto
>the email (required to send out any sort of object file).
>
>It's easier than it initially appears.
>
>I've gotten the mail() function to work for me and it works
>quite well.
>
>Un