note 5274 deleted from ref.mail by jimw

From: Date: Thu, 01 Nov 2001 19:57:14 +0000
Subject: note 5274 deleted from ref.mail by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19996@lists.php.net to get a copy of this message
For those having problems sending mail using windowsNT SMTP server this is another option. Rather than using the mail() function, you can write a file directly into the pickup directory which would normally be something like c:\inetpub\mailroot\pickup <pre> $file = fopen( "c:\inetpub\mailroot\pickup\message.eml", "w"); fwrite( $file, "To: Nice Name <email@host.co.nz>\n"); fwrite( $file, "From: Your Name <you@host.co.nz>\n"); fwrite( $file, "Subject: Easter \n"); fwrite( $file, "\n"); fwrite( $file, "Hello, this is the message body\n"); fwrite( $file, "\n"); fclose( $file ); </pre>

« previous php.notes (#19996) next »