CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 sent e-mail

Print topic Send  topic

Author Message
gerrit


Posts: 131
Posted: 04/23/2005, 5:50 AM

Hello,
I haf e-mail form with div fields has made name, e-mail etc., I have buton send with this code

//Send Email @8-28C65382
global $NewRecord1;
ini_set("SMTP", ""../cgi-bin/formmail/FormMail.pl"");
$to = $NewRecord1->"gvw@zeelandnet.nl"->GetText();
$subject = $NewRecord1->Test->GetText();
$message = "TextBox1";
$from = $NewRecord1->"Online"->GetText();
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/plain";
mail ($to, $subject, $message, $additional_headers);
ini_restore("SMTP");
//End Send Email

but I do not get the fields with name, e-mail, etc. gemailt what does I wrongly

_________________
| http://www.vision.to |
View profile  Send private message
x-ray
Posted: 04/23/2005, 2:23 PM

try to put your smtp mailserver instead of perl script.
ini_set("SMTP", "mail.yourmailserver.com");

The way you set the value also looks a little strange.
Just say $to=$NewRecord1->Field-:Value;
Where Field is the name of the form field that contains the "to" value.

Good luck
gerrit


Posts: 131
Posted: 04/24/2005, 6:59 AM

hello,

Hallo,

$to = $NewRecord1->"gvw@zeelandnet.nl"->GetText(); this is nevertheless where it is my mail sent to this is the standard institution of code charge studio and such as now am adjusted only receive I simply mail stand nothing. According to me this, however, well only gets I it is not for each other to do the filled in fields there in my mail? ( mail body !! )
Or I must use another script!!! (I am new with code charge studio)

_________________
| http://www.vision.to |
View profile  Send private message
gerrit


Posts: 131
Posted: 04/25/2005, 1:59 AM

sorry dis Is my code

//Send Email @35-29B8F00E
global $Tpl;
$body = $Tpl->print_block_modified("shop_cart").$Tpl;
global $NewEditableGrid1;
ini_set("SMTP", "../cgi-bin/formmail/FormMail.pl");
$to = "gvw@zeelandnet.nl";
$subject = "TextBox1";
$message = "bestelling";
$from = "Online";
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/plain";
mail ($to, $subject, $message, $additional_headers);
ini_restore("SMTP");
//End Send Email

end I dont resever shop_card or textbox1 ??
_________________
| http://www.vision.to |
View profile  Send private message

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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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