|  | Posted by Jerry Stuckle on 01/18/08 04:39 
Gilles Ganault wrote:> On Thu, 17 Jan 2008 20:03:32 -0500, Jerry Stuckle
 > <jstucklex@attglobal.net> wrote:
 >> Why on earth would you need the address of their SMTP server?
 >
 > Because it was easier to suck connect to their SMTP server with the
 > MSWinsock control and send a few lines of code, than it is to format
 > data and send them to a remote PHP script with the POST method.
 >
 
 And if their server is properly configured, the email will stop right
 there.  You can't do it with my SMTP server, for instance.  In fact, if
 you try to use a MSWinsock control on my system, I'm gone - never to return.
 
 >> Even if you had it, you wouldn't be able to send a message through it if it were
 >> correctly configured.
 >
 > Why not? I've already done it before.
 >
 
 If it's correctly configured, you will not be able to do so.
 
 >> But if you want form mail, why not just do it all in VBScript.  That's
 >> what I do in the couple of ASP sites I have.
 >
 > I don't want to use VBScript.
 >
 
 You're already using VBScript.  That seems to be the more likely
 candidate, rather than try to mix and match.  But whatever...
 
 > For those interested, here's some code I found that seems to do the
 > job:
 >
 > =================
 > <?php
 > foreach ($_POST as $k => $v) {
 > 	if(!isset($_POST[$k]) || !strlen($_POST[$k])) {
 > 		echo "$k not set!<p>";
 > 		exit;
 > 	}
 > }
 >
 > $fp = fopen ("stuff_received.txt", "w");
 > fputs ($fp,$_POST['etab']);
 > fputs ($fp,$_POST['sujet']);
 > fputs ($fp,$_POST['message']);
 > fclose($fp);
 > ?>
 > =================
 >
 
 Which does nothing with email.
 
 --
 ==================
 Remove the "x" from my email address
 Jerry Stuckle
 JDS Computer Training Corp.
 jstucklex@attglobal.net
 ==================
  Navigation: [Reply to this message] |