473,769 Members | 4,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can anyone see a problem with this email script?

Wondering if anyone can see an error with this script. I get a server
configuration error. THat could mean a module is not being loaded, but
maybe there's a syntax error here, can anyone spot it? Thanks

<?

Error_Reporting (E_ALL & ~E_NOTICE);
$subject="from ".$_REQUEST['Your_Name:'] ;
$headers= "From: ".$_REQUEST['Your_Email:'] ."\n";
$headers.='Cont ent-type: text/html; charset=iso-8859-1';
$message='';
while ($field = current($_REQUE ST)) {
if ((key($_REQUEST )!="Your_Name:" ) && (key($_REQUEST) !
="Your_Email :") && (key($_REQUEST) !="Message:") && (key($_REQUEST) !
="i")) {
$message.="<str ong>".key($_REQ UEST)."</strong>&nbsp;&n bsp;&nbsp;".
$field."<br>";
}
next($_REQUEST) ;
}
$message.="<br> ".$_REQUEST['Message:'];
mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contac t letter</title>
</head>
<body>
<br>
".$message. "
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");

?>

Apr 9 '07
20 1743
FFMG kirjoitti:
Jerry Stuckle;60118 Wrote:
>>you're getting nowhere, you are an idiot.
I just inherited this script, I didn't write it.
probably you wrote it, which is why it's so bad.
Sorry, I agree with Tony. Whether you wrote the script or inherit it,
if you use it your system will become a spam source.


Yes but the way Tony replied does not help anybody, realistically what
could 'SPAMMER' mean?

Telling the user that the code could be injected, (and maybe explaining
how), makes more sense.
Indeed. I just thought Toby's answer was brutal, rude and blunt. And it
did not help the poster at all, instead it just insulted. Now then, let
he who is without sin, cast the first stone. We all may be blunt and
rude on occasions and that is that.

--
Ra*********@gma il.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
Apr 12 '07 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1415
by: wayne | last post by:
I have a PHP email script running on two separate websites. Today, I received a form mail generated by the script from each site, with time stamps 10 minutes apart. The entered email address in each form is the same, but the REMOTE_ADDR reported is different. Doing a search of the IP Addresses generates many hits, the user apparently posts to many news groups. The postal address entered is in MA while the IP Address from the first...
9
2208
by: Jerim79 | last post by:
I am no PHP programmer. At my current job I made it known that I was no PHP programmer during the interview. Still they have given me a script to write with the understanding that it will take me a while (This information is just for general knowledge as I don't want anyone thinking I am trying to be dishonest with my intentions. Also, I do not portray myself as something I am not. I am a beginner.) Anyway, what the script needs to do is...
14
8788
by: nsamad | last post by:
Hi All, Is there anyone using python script to programm the Telit GM862-GPS module?? I am a newbie in using python. I am developing an application in which i have to open a GPRS connection and download the webpage and save in the GM862-GPS memory. I encounter a problem today which drive me crazy... I could open a connection and download the http page using AT command through hyperterminal (without python script). When i used python...
5
2720
by: ozzii | last post by:
Hi, I have a asp email script which uses cdosys to send emails with attahcments by iterating through a record set of 500 email addresses. However the script simply times out. I know you can increase the script timeout property in IIS but is there any other way of sending bulk emails with cdosys without it timing out? Any help would be greatly appreciated.
9
2403
by: Jerim79 | last post by:
Here it is: <?php if($_SERVER=='POST'){ $Number=$_POST; $Email=$_POST; $Number2=0; $error=0;
1
1265
by: harekrishna | last post by:
Hiii Can some please check my email script. I have gone through it several times but my mails won't come!! here is the script thank you- . .
2
1786
by: pravada | last post by:
Hi i am new to unix. just trying to work my things out. i have a small problem. i needed to search for a file that is created mostly first week of every month and email it to a list.... can some one please help me with a script to do so..... thanks in advance..... pradeep
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10223
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10051
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.