CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 how to use send email action with lotus notes smtp

Print topic Send  topic

Author Message
teddy
Posted: 01/18/2004, 10:40 PM

how to use send email action with lotus notes smtp?.
my code like :
//Send Email @38-5534FD56
global $userreq;
ini_set("SMTP", "smtp.sawo.com");
$to = "sawo@sawo.com";
$subject = "test";
$message = "test";
$from = "HelpDesk@sawo.com";
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/plain";
mail ($to, $subject, $message, $additional_headers);
ini_restore("SMTP");
//End Send

and then message error
Warning: Failed to Connect in c:\apache\htdocs\userreq1\adminnt_events.php on line 85

Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\userreq1\adminnt_events.php:85) in c:\apache\htdocs\userreq1\adminnt.php on line 809

any suggest ? thanks alot :-)
peterr


Posts: 5971
Posted: 01/18/2004, 10:56 PM

Which one is line 85 in adminnt_events.php ?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
teddy
Posted: 01/18/2004, 11:36 PM

line 85 in adminnt_events.php is :

mail ($to, $subject, $message, $additional_headers);

this code generate from ccs

//userreq_Button_Submit_OnClick @29-312AACC0
function userreq_Button_Submit_OnClick()
{
$userreq_Button_Submit_OnClick = true;
//End userreq_Button_Submit_OnClick

//Send Email @38-3E8AEB92
global $userreq;
ini_set("SMTP", "smtp.sawo.com");
$to = "sawo@sawo.com";
$subject = "test";
$message = "test";
$from = "helpdesk@sawo.com";
$additional_headers = "From";
mail ($to, $subject, $message, $additional_headers);
ini_restore("SMTP");
//End Send Email

//Close userreq_Button_Submit_OnClick @29-D7FA5A39
return $userreq_Button_Submit_OnClick;
}
//End Close userreq_Button_Submit_OnClick

thanks :-D
teddy

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.