To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Windows Help

Windows Help Help with the Windows operating system

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-03-2000, 08:23 AM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
IIS 5 SMTP Server and mail()

Hello!

I am trying to use the SMTP server that comes with Win 2000 with php4's mail() function. The mail() function works perfect when using another SMTP server, but when using the MS SMTP server it fails (the script just hangs, and then times out).

The MS SMTP server works fine from my normal mail client, so it is kind of strange. Anyone?

- Anders Holst
Anon is offline   Reply With Quote
Old 08-03-2000, 02:57 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
Adding subject and cc

I have a question for you. Do you know how to add Subject and CC: with smtp mail?

I'm not sure how the $datatosend syntax works by adding $Subject there does not work

can you help me with this?

Here are the codes:
(I got this from php builder, share library,
networking,remote mail)

$datatosend = "HELO $isp_mailserver\nmail from: $from\nrcpt to: $to\ndata\n$body\n\n.\nQUIT\n";


if (!$smtp_sock = fsockopen("$isp_mailserver", 25))
{
die ("Couldn't open mail connection to $isp_mailserver! \n");
}

fputs($smtp_sock, $datatosend);
Anon is offline   Reply With Quote
Old 08-04-2000, 09:40 AM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: IIS 5 SMTP Server and mail()

Not strictly a solution, more of a work around.

The mail() function in PHP is pretty poor. If you must use NT then use a decent command line emailer, we use Windmail from www.geocel.com

It is a full featured email sender and has no trouble talking to IIS.

We use it for everything.

Bye

Matt B
Anon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:05 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.