473,395 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Mailform

Hi,

i am a newbie with php .

Why does the following not work on lycos free account???????

<?PHP
$to = $_POST["to"];
$from = $_POST["from"];
$mes = $_POST["mes"];
mail($to, $from, $mes);
?>

Up this is a html form with fields to from and mes.

what is the simplest mailform.

FiremanSAM
Jul 16 '05 #1
2 3867
RG

"FiremanSAM" <fi********@co.uk> wrote in message
news:6hm7b.3066$P51.5223@amstwist00...
Hi,

i am a newbie with php .

Why does the following not work on lycos free account???????

<?PHP
$to = $_POST["to"];
$from = $_POST["from"];
$mes = $_POST["mes"];
mail($to, $from, $mes);
?>

Up this is a html form with fields to from and mes.

what is the simplest mailform.

FiremanSAM

Probably because they don't want people abusing their mailservers.
If you get proper hosting, your script will work.

RG


Jul 16 '05 #2

"FiremanSAM" <fi********@co.uk> skrev i meddelandet
news:6hm7b.3066$P51.5223@amstwist00...
Hi,

i am a newbie with php .

Why does the following not work on lycos free account???????

<?PHP
$to = $_POST["to"];
$from = $_POST["from"];
$mes = $_POST["mes"];
mail($to, $from, $mes);
?>

Up this is a html form with fields to from and mes.

what is the simplest mailform.

FiremanSAM

If you run phpinfo() you will see a lot of things are disabled

ofor
Jul 16 '05 #3

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

Similar topics

16
by: Christopher Brandsdal | last post by:
I have made a asp mailform. What is wrong? I get this error: Microsoft VBScript runtime error '800a0046' Permission denied
10
by: Adrian | last post by:
Hi I want to write a form that when a user presses submit it carries out the submit action and then closes the browser or redirects to another page. The form CGI I'm using, Demon's does not...
3
by: Gert-Jan van Middelkoop | last post by:
Hi, I'm using an e-mailform on my website. I would like to make a dropdownmenu with several subjects, so when the e-mail arrives I can immediatly see it's subject. Therefore, this code must...
6
by: calfliu | last post by:
hello: everybody! I have a simple question. How can I translate the selected value from art to recipient(hidden input button)? <form name="send" method="post" action="send.cgi"> <select...
2
by: JohnK | last post by:
Hi all, This is my first time visiting this group. I already tried two other java groups, but those aren't very populated. I don't know if it is the right one, otherwise please tell me in which...
2
by: Ryan | last post by:
Hi, I receive an access denied error (see below) when attempting to send an email with BodyFormat=MailFormat.Html from an asp.net page. Exactly the same code works fine in a console...
3
by: moho | last post by:
Hi, I tried to do this: mailstr = "mailto:recipient@domain.com?subject=subjecextract&body=assg"; mailform = document.getElementById("mailform"); mailform.setAttribute('action',mailstr);...
8
by: stilmas | last post by:
Hello, I have a variable that I get from: <% string mys=Request.ServerVariables.ToString(); int n=mys.IndexOf("\\"); if (n!=-1) { mys=mys.Substring(n+1); }
1
by: col 190 | last post by:
Hopefully a simple question. I am using MainForm.asp and the email created changes the email address entered from "me@email.com" to "me@email=2Ecom". This is confusing the program which adds thes...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.