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-01-2000, 09:48 PM   #1
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
Problem sending mail()

I'm having problem with sending mail with mail() function.

I have setup the
smtp and sendmail_from variable at php.ini file.

I also Ping my mail server to make sure that it's working and it does.

Strangely it still not working.

I'm using NT server and IIS

Does anyone know if there is anything that I miss in order to setup send mail properly?
Anon is offline   Reply With Quote
Old 08-01-2000, 09:57 PM   #2
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Problem sending mail()

here are my codes:

<?php
$to = "rivaisalim@hotmail.com";
$subject = "Mail test";
$header = "From: z1gma@hotmail.com";
$body = "Hello there can you receive my mail?";

$success = mail ($to, $subject, $body, $header);
if ($success)
{
echo ("<br><b>Email Sent to $to!</b><br>\n");
}
else
{
echo ("<br><b>Email Can't be sent to $to!</b><br>\n");
}
?>

I have tested my code at free web that support php and it works but it's not working at my local NT server with IIS

It give the following error for me:
Warning: Unknown error in C:\...\email.php on line 7
Anon is offline   Reply With Quote
Old 08-02-2000, 02:16 PM   #3
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: Problem sending mail()

$success = mail("$to", "$subject", "$body", "$header");
Please place the double code aroung your variables(specialy in NT environment) and see this will work.
Anon is offline   Reply With Quote
Old 08-03-2000, 03:15 AM   #4
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
How to print a page display in browser

I am working in php. Recently I face a problem while try to do the coding for printing.

I want to create a print function in php which allow the user to print the page display on the broweser, on a button click.

If any one know reply me as quick as possible.

Thanking you.

partha.
Anon is offline   Reply With Quote
Old 09-16-2000, 07:59 AM   #5
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: How to print a page display in browser

hi php experts
iam also facing the same problem
as like partha .please help me any php experts help me .

Below this given ,printable format
iam in enthu to know how they are printing
the page .after clicking the page, the left
side is gone only text is there .so please help me in urgent

regards
frank
Anon is offline   Reply With Quote
Old 03-15-2001, 10:07 PM   #6
Anon
Senior Member
 
Join Date: Jun 2000
Posts: 65,386
RE: How to print a page display in browser

Hi Partha,
i think you just need this script :

<a href="javascript:window.print()">print this page </a>


put that script on the page and try to click the href.

you also can use the picture or button.

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 07:27 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.