1,105,363 Community Members

html code to send email, my email should not be shown

Member Avatar
MRehanQadri
Junior Poster in Training
55 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

Kindly write a simple code to produce a form, where Subject & Message is displayed and when user clicks on submit button, and e-mail is sent to me, with the same subject as the user mentions. My e-mail address should not be displayed. I've been searching web for more than an hour and 30 minutes and I find the code which when I use on my blog does not work and NOT FOUND ERROR is displayed.
I don't know anything about html.

I'll be very thankful to you.

Member Avatar
Octet
Posting Pro
579 posts since Nov 2011
Reputation Points: 45 [?]
Q&As Helped to Solve: 53 [?]
Skill Endorsements: 16 [?]
Featured
Sponsor
 
0
 

A couple of things I should point out, firstly is that the forums are not designed for you to ask for code to be created, we shall happily give you hints on how to start, and help with debugging if you show your code and the error messages but what the forum is not designed for is for us to write your code.

Secondly, HTML cannot be used to send emails, you shall need to use a server side and be running an email server or be able to connect. PHP, a common server side language has the functionality to send emails and I suggest you look into the following function mail().

Good luck, and by all means return with any specific questions.

Member Avatar
MRehanQadri
Junior Poster in Training
55 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

blogger.com supports only html, can't I create a feedback form on that?

Member Avatar
MRehanQadri
Junior Poster in Training
55 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

How to make the following code workable on my blog?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Feedback Form</title>  
</head>
<body>
<h1>Send Us Your Feedback!</h1>
<form action="send_mail.php" method="post">
<table>
<tr>
<td>Email Adress:</td>
<td>
<input type="text" name="email_address" value="" maxlength="100" />
</td>
</tr>
<tr>
<td>Comments:</td>
<td>
&lt;textarea rows="10" cols="50" name="comments"&gt;&lt;/textarea&gt;
</td>
</tr>
<tr><td>&nbsp;</td>
<td>
<input type="submit" value="Submit" />
</td>
</tr>
</table>
</form>
<p>Form code inspired by <a href="http://www.truefastian.blogspot.com">True Fastian.com</a>!</p>
</body>
</html>
Member Avatar
Octet
Posting Pro
579 posts since Nov 2011
Reputation Points: 45 [?]
Q&As Helped to Solve: 53 [?]
Skill Endorsements: 16 [?]
Featured
Sponsor
 
0
 

Ok, the code you have posted is HTML, although you have a slight error with the following line: &lt;textarea rows="10" cols="50" name="comments"&gt;&lt;/textarea&gt; which should read: <textarea rows="10" cols="50" name="comments"></textarea>

What is the error message you are getting?

It won't be a problem with the HTML but more likely with the 'send_mail.php' file which is a PHP script (server side as mentioned before) which is the core. This is what actually sends the email.

Member Avatar
MRehanQadri
Junior Poster in Training
55 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Method Not Allowed

Error 405.

What I want to do is to allow the user to add an ask page to my blog where they can ask questions.
Kindly solve my this big problem.

Member Avatar
MRehanQadri
Junior Poster in Training
55 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Can this problem be solved using JAVA SCRIPT?

Member Avatar
Octet
Posting Pro
579 posts since Nov 2011
Reputation Points: 45 [?]
Q&As Helped to Solve: 53 [?]
Skill Endorsements: 16 [?]
Featured
Sponsor
 
1
 

No, you need some form of server side language, whether you are writing to a relational DB such as MySQL or to a flat file .txt document.

Error 405 is an HTTP response code, and is likely to occur because you cannot use the POST method in your form, which if you say your host shall not allow PHP is to be expected.

I'm sorry but you shall only be able to create a Static Website.

Member Avatar
drjohn
Posting Pro
526 posts since Mar 2010
Reputation Points: 50 [?]
Q&As Helped to Solve: 106 [?]
Skill Endorsements: 4 [?]
 
1
 

google for free email form services.
There are many, and they usually include an advert for themselves in the email sent. But as it is going to yourslef, that doesn't matter, does it?

They give you a bit of code to stick on your pages.

Member Avatar
drjohn
Posting Pro
526 posts since Mar 2010
Reputation Points: 50 [?]
Q&As Helped to Solve: 106 [?]
Skill Endorsements: 4 [?]
 
1
 

A service that helps you with forms and emails was mentioned in a forum thrread I read elsewhere today.

http://phpforms.net/

I've not tried it, but for someone who struggles with html and php it might be ideal. There's a free version for a small number of emails per month,

Member Avatar
Octet
Posting Pro
579 posts since Nov 2011
Reputation Points: 45 [?]
Q&As Helped to Solve: 53 [?]
Skill Endorsements: 16 [?]
Featured
Sponsor
 
2
 

The problem is DrJohn, from the sounds of it his host won't allow the execution of PHP.

Member Avatar
MRehanQadri
Junior Poster in Training
55 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks a lot for every one's time.
Now I'd like to ask a general question. What is the sallary of a fresh BScs abroad?

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article