HTML - E-mail Send
There is a HTML that when you click it, it opens Microsoft Outlook to send an e-mail. But how would you be able to get it to open Hotmail or Sky?
Similar TutorialsYeah I need a little help with my site.I'm trying to make a form so people can sign up their game and send it to my email so it will be displayed on my site but im not sure how to make a form.I have this php code but I'm not sure how to make it so when someone submits their details it will send it to my email. Website: HabSource.Info Email: HabSource@gmail.com Forum: http://i38.tinypic.com/112el29.png PHP forum: PHP Code: <form action="index.php" method="post" /> <table> <tr><td><b>Hotel Name:</b></td><td><input type="text" name="name" /></td></tr> <tr><td><b>Hotel Description:</b></td><td><textarea name="description"></textarea></td></tr> <tr><td><b>Hotel:</b></td><td><input name="url" type="text" value="http://" size="50" /></td></tr> <tr><td><b>Banner URL:</b></td><td><input name="banner" type="text" value="http://" size="50" /></td></tr> <tr></tr> <tr><td><input type="submit" name="submit" value="Submit Hotel" /><br /><b>Abuse be punished!</b></td></tr> </table> </form> Index.html : HTML Code: <!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> <meta http-equiv="Content-Language" content="nl" /> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <meta name="description" content="HabboRegio is een zeer bekende fansite van het tienerspel HabboHotel. Die word beheert door: ::Aijt:: en Dave-bakkie" /> <meta name="keywords" content="HabboRegio, HabboAudio, HabboResource, dave-bakkie, ::Aijt::, Habbo, onofficiele, fansite, radio, topsites, nieuws, informatie, fancenter, crowley" /> <meta name="author" content="dave-bakkie, ::Aijt::" /> <meta name="copyright" content="HabboRegio.nl - 2010" /> <meta name="robots" content="index, follow" /> <meta name="googlebot" content="noodp"> <meta name="revisit-after" content="1 day" /> <meta name="rating" content="Safe for kids" /> <title>HabSource - Find A Retro</title> <link rel="stylesheet" type="text/css" href="style.css" /> <link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" /> </head> <body> <div id="container"> <div class="group"> <div id="top"><img src="images/image.png" align="right"/>HabSource</div> <div id="mid"><br /> HabSource Template Is In Update<br /><br> </center> </div> <div id="bottom"></div> </div> <div class="group"> <div id="top">Habbo Retro Hotels</div> <div id="mid"> <body> <table><tr><td>Want To Have A Sexy Time? </td></tr></table></body> </html> </center> </div> <div id="bottom"></div> </div> <div class="group"> <div id="top">Sign Up Your Hotel:</div> <div id="mid"> <br> <iframe src ="contact.php" frameborder="0" allowtransparency="no" scrolling="No" width="100%" height="200"> <p>Your browser does not support iframes.</p> </iframe> </body> </html> </center> </div> <div id="bottom"></div> </div> </div> <div id="container_end"></div> </body> </html> how to send e-mail from a form?... hi everyone this is my first post here and hope i will get solution of my problem i have designed an form and want when user click on submit button i can recieve that data into my email. here is the code <FORM METHOD="POST" ACTION="mailto:mandeep@vbams.com" ENCTYPE="text/plain"> <INPUT TYPE="text" NAME="username"> : name <BR> <INPUT TYPE="text" NAME="email"> : email <BR> comments <BR> <TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard"> </TEXTAREA> <INPUT NAME="NEXT_URL" TYPE="hidden" VALUE="http://www.vbams.com/index.html"> <BR> <INPUT TYPE="submit" VALUE="Send"> <INPUT TYPE="reset" VALUE="Clear"> </FORM> this is not working can any one help me how to modify this code so it work properly Thanks Mandeep First of all, WOW does this look like a site that can make it happen for me.. websitemakingwise. Im new and boy, loving the info so far.. ok, my problem: So Im cleaning up this code, yes.. again. And I wanted to make this automated php thing that sends emails straight to my inbox. Without having to use the client installed. Only problem is that the submit button isnt doing anything. Could someone have a look whats wrong? Filename: ContactForm.html HTML Code: <!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> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Mailformulier updates - As it is in heaven again</title> <style type="text/css"> <!-- body { background-image: url(afbeeldingen/ups_and_simulation.jpg); } .style1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 17px; color: #000000; } .style2 {font-family: Verdana, Arial, Helvetica, sans-serif} .style4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; } .style6 {font-size: 14px} .style8 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; color: #000000; } a:link {color: #000000;} a:visited{color:#009;} a:hover {color: #000000;} .style10 {color: #FFFFFF} .style14 {font-family:"Bookman Old Style"; font-size: 14px; color: #000000; } #txt{ position:relative; text-align:center; left:100px; top:55px; width:420px; height:40px; z-index:2; font-stretch:wider; } div.row { clear: both; padding-top: 5px; } div.row span.label { float: left; width: 100px; text-align: right; } div.row span.formw { float: right; width: 235px; text-align: left; } div.spacer { clear: both; } --> </style></head> <body> <table width="600" height="400" border="1" align="center" bgcolor="#FFFFFF"> <div id="txt"> <p class="style1">Ja, ik heb interesse. Graag ontvang ik verdere informatie over de toekomstige activiteiten.</p> </div> <tr> <td width="44" height="150"> </td> <td width="814" height="100"> <br /> <br /> <br /> <br /> <div style= "width: 360px; background-color: #ccc; border: 1px dotted #333; padding: 5px; margin: 0px auto;"> <span class="style4"> <form> <div class="row"> <form action="FormToEmail.php" method="post" name="ContactForm"> <span class="label">Naam:</span> <span class="formw"><input type="text" name="Naamgegevens" title="Hier uw volledige naam" size="25" /></span> </div> <div class="row"> <span class="label">Adres:</span><span class="formw"> <input type="text" name="Naamgegevens" title="" size="25" /></span> </div> <div class="row"> <span class="label">Postcode:</span><span class="formw"> <input type="text" name="Postcode" title="" size="25" /></span> </div> <div class="row"> <span class="label">Woonplaats:</span><span class="formw"> <input type="text" name="Woonplaats" title="" size="25" /></span> </div> <div class="row"> <span class="label">Telefoon:</span><span class="formw"> <input type="text" name="Vaste telefoon" title="Uw vaste telefoon-nummer" size="25" /></span> </div> <div class="row"> <span class="label">Mobiel:</span><span class="formw"> <input type="text" name="Mobiel" title="" size="25" /></span> </div> <div class="row"> <span class="label">E-Mail:</span><span class="formw"> <input type="text" name="E-Mail" title="Het E-mail adres" size="25" /></span> </div> <p align="center"> <span class="style14"> <br /> <br /> <br /> ruimte voor opmerkingen/suggesties/reacties</span> <br /> <textarea name="opmerkingen" cols="40" rows="6"></textarea> </p> <div class="spacer"> </div> </form> <div align="center"> <input type="submit" value="Versturen"><br> </div> <br> </div> <div align="center"><span class="style10">-----</span> <a href ="basis.html"><img src = "afbeeldingen/TERUG.png" width="95" height="60" style="border-style: none"/></a></span></div></td> <td width="44"> </td> </tr> <tr> <td height="100" colspan="3"><div align="center"> </div></td> </tr> </table> </body> </html> Thanks for reading till this point! Hop you didnt mind the Dutch lol. FILENAME: FormToEmail.php PHP Code: <?php $my_email = "rsizania@gmail.com"; /* Enter the continue link to offer the user after the form is sent. If you do not change this, your visitor will be given a continue link to your homepage. If you do change it, remove the "/" symbol below and replace with the name of the page to link to, eg: "mypage.htm" or "http://www.elsewhere.com/page.htm" */ $continue = "www.google.com"; /* Step 3: Save this file (FormToEmail.php) and upload it together with your webpage containing the form to your webspace. IMPORTANT - The file name is case sensitive! You must save it exactly as it is named above! Do not put this script in your cgi-bin directory (folder) it may not work from there. THAT'S IT, FINISHED! You do not need to make any changes below this line. */ $errors = array(); // Remove $_COOKIE elements from $_REQUEST. if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}} // Check all fields for an email header. function recursive_array_check_header($element_value) { global $set; if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc:)/i",$element_value)){$set = 1;}} else { foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);} } } recursive_array_check_header($_REQUEST); if($set){$errors[] = "You cannot send an email header";} unset($set); // Validate email field. if(isset($_REQUEST['email']) && !empty($_REQUEST['email'])) { if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";} $_REQUEST['email'] = trim($_REQUEST['email']); if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}} } // Check referrer is from same site. if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";} // Check for a blank form. function recursive_array_check_blank($element_value) { global $set; if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}} else { foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);} } } recursive_array_check_blank($_REQUEST); if(!$set){$errors[] = "You cannot send a blank form";} unset($set); // Display any errors and exit if errors exist. if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;} if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");} // Build message. function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");} $message = build_message($_REQUEST); $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL.""; $message = stripslashes($message); $subject = "FormToEmail Comments"; $headers = "From: " . $_REQUEST['email']; mail($my_email,$subject,$message,$headers); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Dreamweaver Tutorial - Contact Form</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#ffffff" text="#000000"> <div> <center> <b>Thank you <?php print stripslashes($_REQUEST['name']); ?></b> <br>Your message has been sent <p><a href="<?php print $continue; ?>">Click here to continue</a></p> <p><b>Dreamweaver Spot</b> by <a href="http://dreamweaverspot.com">dreamweaverspot.com</a></p> </center> </div> </body> </html> Ok thanks!! So.. whats wrong? Im a total noob.. and it isnt even that I started from scratch.. some of it was already there. Appreciate your advice Hello all, I am currently building an HTML newsletter complete with graphics and it is all set up and appears fine in my IE and other web browsers. However, now I want to actually place this HTML and graphics in the actual e-mail form and test it. This may sound like like a stupid question, but does anyone know how to do this? For the life of me I can't think of any way to actually embed an .html file (or just the HTML coding) inside of an email and have it appear inside of say.. a Yahoo, MSN, google, or outllook express email form. I need to be able to do this to test an send my e-newsletter. I've searched the net for tutorials on how to do this but have come up empty handed. Any ideas on how to go about this? Thanks in advance! wont work what must be done? setting the backround images will not display even the path is properly coded, is my syntax having problem? pls need some advice can u give samples? Hey, i was wondering if anyone has a code for a link which goes somewhere on the page and when the click it, it opens outlook express and it already has a message in it for them to send thx brad I need a code that has two input boxes (one for name, one for content) that sends to my email. I want it so people can send requests to me, without having to leave my site. Is that possible? How can i get a code to automatically send an e-mail to an e-mail adress, where the content of the mail is from an inputbox, and where the mail also include the sender (from an inputbox)? I hope you understood that Hi, i have form. www.atstovybe.lt/contact.php you can see. And then i atach file it dosn`t send. i get mail with info in the textarea but file not get. can you help me ? sorry for my english language Hi All Developed a form that provides 2 mail address with the forms details what i would also like is for the e-mail address entered into the e-mail addess box to also recieve a copy how can i do that? Here is that code <FORM ACTION="/includes/scripts/mail/domailsave.pl" ONSUBMIT="return validate()" METHOD="POST" NAME="olform1"> <INPUT TYPE="hidden" NAME="nextpage" VALUE="http://virginmediahome/access/cabinet_clean_up/thanks.html"> <INPUT TYPE="hidden" NAME="emailto" VALUE="xxxxxxxxxxxx@xxxxxxxxxxxxx.co.uk"> <INPUT TYPE="hidden" NAME="emailto" VALUE="xxxxxxxxxxxxxxx@xxxxxxxxxx.co.uk"> <INPUT TYPE="hidden" NAME="subject" VALUE="Notification of Outage files & Audits"> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" ALIGN="center"> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Your Name</SPAN></B></TD> </TR> <TR> <center> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Submitted_By" VALUE="" MAXLENGTH="50"></TD> </TR> </center> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Your E-mail Address</SPAN></B></TD> </TR> <TR> <TD WIDTH="400"align = "center"><INPUT TYPE="text" SIZE="40" NAME="E-mail Address" VALUE="" MAXLENGTH="50"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Your Contact Number</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Contact Details" VALUE="" MAXLENGTH="50"></TD> </TR></table><p><strong> <font size="3" color="red">Step 3: </strong>The Cabinet</font> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" ALIGN="center"> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">ICOMS Site ID</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="ICOMS Site ID" VALUE="" MAXLENGTH="100"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Housefile ID</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="HouseFile ID" VALUE="" MAXLENGTH="100"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Cab Number</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Cab Number" VALUE="" MAXLENGTH="100"></TD> </TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red">Cab Address</SPAN></B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Cab Address" VALUE="" MAXLENGTH="100"></TD> </TR> </table><p><strong> <font size="3" color="red">Step 4: </strong>The Dates</font><BR> <font size="2" color="Black">Please copy these from the calculator above</font> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="4" ALIGN="center"> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red" align = "center">CRF Date</B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="CRF Date" VALUE="" MAXLENGTH="100"></TD> </TR> <TR> <TD WIDTH="400" align = "center"><B><SPAN STYLE="color: red" align = "center">Audit Date</B></TD> </TR> <TR> <TD WIDTH="400" align = "center"><INPUT TYPE="text" SIZE="40" NAME="Audit Date" VALUE="" MAXLENGTH="100"></TD> </TR> <BR> <TR> <td align = center><INPUT TYPE="submit" NAME="submit" VALUE="Submit"></TD> </TR> </form> I'm trying to set up a website for my Mom, and I'm not very familiar with this stuff. I created the form below, but when I try it I get 3 or 4 pop ups about security and then it still doesn't send the data, and when I had my friend try it said she couldn't because the had no profile. Quote: <FORM METHOD="POST" ACTION="mailto:sharyl@sharylsphotojournal.com"> Name: <BR> <INPUT TYPE="text" NAME="name" SIZE="35"><BR> Email(If you want a response):<BR> <INPUT TYPE="text" NAME="email" SIZE="35"><BR> Message:<BR> <TEXTAREA NAME="message" ROWS=7 COLS=35> </TEXTAREA><BR> <INPUT TYPE="submit" VALUE="Send"> <INPUT TYPE="reset"> Can anyone help me know what I did wrong? Hi, I'm working on a contact form and its almost finished. There are 2 main offices the form can go to. for example UK office and France office. I want to add 2 check boxes or radio boxes so that the person filling out the form can choose which office they want the form to go to. Is this possible and if so anyone got exampel code i can use to add to my form and mail.php script? I am trying to send out an email with html page attached. It an auto generated html page with small pieces of sliced images. All images are in tables. When I send out a test email, it doesn't work on hotmail with firefox. the table breaks down as it is. The original image is a perfect oval. It actually works well on gmail, yahoomail & outlook. It even works on hotmail with IE. But only not on hotmail with firefox. Anyone had the same problem before?? Please help~~~ Hi, I'm not sure if this is a HTML or server-side question, but here goes. I want to set up a page which sends an email as soon as i receive a visitor. The user would not see the mail has been sent as the code is either in the HTML itself, or a script call based on the HTTP return code. Anyone done this before? Does anyone know of a good way to construct & send emails with html in it? I'd like to be able to send professional looking emails to my customers. I've been researching this and I can't seem to find a plain HTML form script that allows the website to send the e-mails. Every form I create opens up my default e-mail program (Thunderbird). I'm looking for something that when the user clicks Submit all the form input will be sent to my e-mail address without them having to login to their e-mail or any external applications. I'm starting to think that there's more scripting included then just basic HTML. Thanks. Hello! I was hoping somebody here could help me. I am quite confused. Here is what I want to do: Create an image in photoshop or a similar program, and save it as an HTML, so I can send them in an e-mail. It will be a newsletter. I know there are sites I can go to that can create them, but I want my own layout - and plus they charge for their service. All I want is a free jpg to html converter. Is this even possible? If so, can u shoot me a link? Thanks in advance! Hi there, I am currently in the process of re-designing my girlfriends dads companies website and he has requested that customers can fill in a form, and when submitted the form gets emailed to his inbox. At the moment his website opens up outlook express, when the form is submitted, using the mailto: function, but he really doesn't like this. Is there any other way of emailing from a browser without any programs popping up? I am open to suggestions on other ideas that may work here if anyone can think of anything. Thanks in advance. Tom hi everyone, i'm new to the community! great forum! i've got a problem with a html mail. I want it to look like that http://www.giannibaccega.com/mail2/mail i've made that layout with inline CSS and absolute positioning, but Gmail messes all up! I've read that i need to use tables, but how can i overlap the logo GIANNI BACCEGA FOTOGRAFIA to the background image (the light)?? with tables they appears one on the right and one on the left, but i need the logo to overlap a bit the background... any suggestions? thanks! |