HTML - Email Sen Code Error
Web Page http://www.classic-corvettes-ky.com/Contact.htm does not send eMail as intended. Does anyone know how I can resolve this? Similar TutorialsThe "mailto:" code is fine for a link that has people send an email, IF they are using a non-web-based email program such as Outlook. But if a person is using, say, hotmail, and doesn't know how to configure hotmail as their default email program, how can I write html code that will take them to this kind of web-based email site for writing their email? I have a client who doesn't understand why she can't use the email link I've set up.. Please help! Just a brief question regard HTML emails - I have made this sample design and coded it with inline CSS styling. Just two things - one: is the code terrible?? I read that some email clients knock the header and body out of the email code so inline CSS is the safest way to go. Second, does the design stink? Silly question and i know its a tech forum but its either going to get me a job or not... lets hope so eh? http://www.cfernandez.net/edialog/tesco_css.html -Cheers c Hi All-- I wanted to code HTML email newsletter. Can any1 help me out? Thnx in advance... Hi there, I'm completely new to HTML and have no idea, coming from using Serif WebPlus, a pumped up Publisher some may say! Now, i downloaded a booking form (http://css-tricks.com/downloads/ scroll down till you see 'Step-by-Step Seminar Registration') It really is great, but i want to be able to get it to send the info collected to an email, how is this done? Can a newb achieve this?? Hi, ive been trying for ever, but i just cant make a code that forwards all the emails from my contact form thing to my email adress. if you want me to be more spacific, just ask. ---------------- Thanks, zigga Hello I've searched the web for a simple form code that has a "submit" button, so that when a user clicks it I will receive an email with the submitted data - but - I want the user to click "submit" without being transferred to his default email program. I want him only to enter the data and when he presses the button, the data will be sent to my email. I want to put this code in a blog that supports HTML. What code can I use for it? I hope I made my question clear. I will really be happy to receive your help. Thank you very much. YAY SOLVED THANKS TO COOTHEAD This thing is driving me nuts... over the last 36 hours i, along with a helpfull member of this community have been trying to fix some SIMPLE code that wasnt broken in the first place. It displays fine, when tested in Dreamweaver, tests fine in IE, FF. The several adjusted codes even display fine inside the test previewer of the mail program on www.yourmailinglistprovider.com ! The trouble starts when the email HTML code gets sent to the Gmail & Hotmail inbox. Both my inbox' are stuffed with test mails.. and it isnt going to end any time soon I have CODE 2 that wont load up the CSS image tags. And CODE 1 that wont display the text in its right position, not on top of the image, instead it shows it way down, like so: http://img196.imageshack.us/img196/2625/frustration.jpg So finally... i discovered, why.. the Gods have put me in this misfortune. Google Mail is in BETA, and that means the following: Quote: Google Mail, LotusNotes, and Outlook 2007 present special coding problems. The good news? If you code to account for their oddities, your html email code is more likely to display well in most if not all email software. Because Google cannot control how senders will code CSS and HTML, they have to take steps to ensure their application displays properly regardless of the code quality of the html email that is displayed. As a result, Google Mail acts like an artifact of the mid 1990s when web standards were primitive. It takes some work, but it is possible to crack open a Google Mail page and see just how convoluted their approach is to rendering html email. For one thing, Google Mail deletes any CSS style reference to a set of styles, no matter where it appears in the email. And fonts displayed in html tables have the odd habit of appearing larger than intended no matter how the html email is coded. &#^&%$@3(*(2@#*&y#!!............................. Why Now all my work ive put into this could be all for nothing,.. since I believe the solution given by the website is too far fetched for this amateur. The solution: Quote: Here are coding techniques that appear to work well in Google Mail and older email softwa * Define the background color in a TD cell with bgcolor=, not the CSS style. * Use the background= attribute in the TD cell for background images, not the CSS. A corollary is that the background image can be made as tall as needed. If the content of an email template might be short or tall depending on the email content, using an extra-tall background image this way lets the email layout height shrink or expand based on the height of the copy from one email to the next. Note, however, that Outlook 2007 ignores background images. * If it works better, use the padding style to control margins within a TD cell. The margin style does not work in these cells. Padding does work. * If a border around a TD cell is needed, Google Mail displays a border when defined in a DIV but not when defined as a border style in a TD tag. * If a light colored link against a dark background color is needed, put the font definition in the TD cell (so it applies to P and A tags equally) then add a color= style to the A tag. * If the P and A fonts appear to be different sizes, wrap the A tag in a P tag. * Google Mail aggressively uses the right column of their interface which squeezes the html email into the center panel. Be sure the padding style in the content TDs is set at 10 pixels all round so text does not smash against the left and right edges. * When testing an html email with a Google Mail account, it is likely one or more missing font styles in the TD, H1, H2, P, A, and other tags will be found. Inspect every font carefully to make sure Google Mail displays the fonts correctly. SOURCE I need either of these two amateuristic codes (they are basically the same) re-coded with the rules up above. Could anyone who can do this fluently without breaking a sweat help me out? I am near desperation and willing to transfer a fee to whatever paypal account. I just need this mail template sent out asap. Thank you for reading. CODE 1: HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <base href="http://xx.com/"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title></title> <style type="text/css"> #container{ width:711px; margin:auto; font-family:verdana,sans serif; font-size:16px; background-image:url(blokje.png); } #pic { display:block; } #content { padding:0 0 60px 50px; background-image:url(onderkantcurve.png); background-repeat:no-repeat; background-position:0 bottom; } #p-one { font-weight:bold; color:#410d3e; } #pic-one { text-align:center; } #pic-one img { width:170px; height:190px; } #link { font-size:12px; } </style> </head> <body> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://xx.com/template3.html">Klik hier voor de web-versie mocht de nieuwsbrief niet goed worden weergegeven.</a></font></p> <div id="container"> <img id="pic" src="top.png" alt=""> <div id="content"> <p id="p-one"> Nieuwsbrief februari 2010 </p><p><br> Beste Lezer van mijn eerste nieuwsbrief, </p><p> Graag wil ik je opmerkzaam maken op de nieuwste activiteiten van <br> Sessio Communications. </p><br> <p id="pic-one"> <img src="koord.jpg" alt=""><br> <a href="http://www.xx.com">www.xx.com</a> </p><p> <br> Ik nodig je van harte uit om <a href="http://www.xx.com">mijn website</a> te bezoeken.<br> Reacties zijn welkom. Doorsturen naar andere belangstellenden mag. <br> <a href="[FORWARDTOFRIEND]">Stuur deze email door naar een vriend of vriendin.</a></p> </p><p> Mocht je geen belangstelling hebben om op de hoogte te blijven van<br> mijn verschillende workshops en trainingen dan kun je dat via de <br> link onderaan de pagina aangeven. Je e-mail adres wordt dan verwijderd. </p><p><br> Met vriendelijke groet, </p> </p> </div> </div> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://ymlp154.com/u.php?YMLPID=gejseubgsguejeg"> Uitschrijven / Gegevens wijzigen </a></font></p> </body> </html> CODE 2: HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <base href="http://xx.com/"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="language" content="english"> <meta http-equiv="Content-Style-Type" content="text/css"> <title></title> <style type="text/css"> #container{ position:relative; width:711px; height:910px; margin:auto; font-family:verdana,sans serif; font-size:16px; } #pic { position:absolute; top:0; left:0; } #content { position:absolute; top:170px; left:50px; width:651px; height:680px; } #p-one { font-weight:bold; color:#410d3e; } #pic-one { text-align:center; } #pic-one img { width:170px; height:190px; } #link { font-size:12px; } </style> </head> <body> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://xx.com/template3.html">Klik hier voor de web-versie mocht de nieuwsbrief niet goed worden weergegeven.</a></font></p> <div id="container"> <img id="pic" src="big.png" alt=""> <div id="content"> <p id="p-one"> Nieuwsbrief Februari 2010 </p><p><br> Beste Lezer van mijn eerste nieuwsbrief, </p><p> Graag wil ik je opmerkzaam maken op de nieuwste activiteiten van <br> Sessio Communications. </p> <p id="pic-one"> <img src="koord.jpg" alt=""><br> <a href="http://www.xx.com">www.xx.com</a> </p><p> <br> Ik nodig je van harte uit om <a href="http://www.xx.com">mijn website</a> te bezoeken.<br> Reacties zijn welkom. Doorsturen naar andere belangstellenden mag. <br> <a href="[FORWARDTOFRIEND]">Stuur deze email door naar een vriend of vriendin.</a></p> </p><p> Mocht je geen belangstelling hebben om op de hoogte te blijven van<br> mijn verschillende workshops en trainingen dan kun je dat via de <br> link onderaan de pagina aangeven. Je e-mail adres wordt dan verwijderd. </p><p><br> Met vriendelijke groet, </p> </div> </div> <p align="center"><font face="Verdana, Geneva, sans-serif" size="2"><a href="http://ymlp154.com/u.php?YMLPID=gejseubgsguejeg"> Uitschrijven / Gegevens wijzigen </a></font></p> </body> </html> Thanks for reading.. If you go to https://www.bkriegtech.net/?page=login You'll see the infamous unsecure connection error in IE. I have no idea where this is coming from since every image on the page loads as https. Any ideas? I edited a html file using notepad++ but it won't run anymore. From what I found, maybe the file was originally created in FP, which I don't have. Anyway, I get a http://www.**********.com/_derived/nortbots.htm error on submit. The only thing I had changed was the email address that the form was submitted to. Can anyone point me in the right direction on how to fix this? Code: <html> <head> <title>Rentals</title> <meta name="description" content="******.com" /> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <script src="/resource/js/main.js" type="text/javascript"></script> <link href="/resource/css/main.css" type="text/css" rel="stylesheet" media="all" /> </head> <body onload="initJS();"> <div id="wrapper"> <table id="mainTable" cellspacing="0" cellpadding="0"> <tr id="banner"> <td style="font-family:Arial,sans-serif; color:white; text-align:right; vertical-align:middle; padding:5px 30px 0 0;" colspan="3"> <p style="padding:0; margin:0;"> <!--webbot bot="Include" U-Include="resource/include/quicksearch.html" tag="body" startspan--> <form method=get action="/cgi-bin/listman/exec/search.cgi"> <input type="hidden" name="search" value="1"> <input type="hidden" name="perpage" value="10"> <input type="hidden" name="marknew" value="1"> <input type="hidden" name="euro_numbers" value="0"> <input type="hidden" name="sort_order" value="3,abc,forward" /> CITY <select name="lfield3_match" size="1"> <option value="" selected>Any</option> <option>Affton</option> <option>Arnold</option> <option>Ballwin</option> <option>Barnhardt</option> <option>Bella Villa</option> <option>Winchester</option> <option>Woodson Terrace</option> </select> ZIP <input type="text" size="10" name="lfield5_match" /> <input type="submit" value="Quick Search" /> </form> <!--webbot bot="Include" i-checksum="56169" endspan --></p> </td> </tr> <tr id="menu"> <td style="vertical-align:top;" colspan="3"> <map name="FPMap0"> <area alt="Home Page" coords="9, 3, 120, 29" shape="rect" href="/index.html"> <area alt="Burt's Property Search Page" coords="127, 0, 331, 29" shape="rect" href="/cgi-bin/listman/exec/search.cgi"> <area alt="Rentals Page" coords="337, 2, 459, 29" shape="rect" href="/rentals.html"> <area alt="Contact Us Page" coords="470, 1, 624, 29" shape="rect" href="/contactus.html"> <area alt="About Us Page" coords="633, 2, 795, 29" shape="rect" href="aboutus.html"> <area alt="Burt's Ads Page" coords="806, 1, 959, 29" shape="rect" href="Burtsads.html"> </map> <img border="0" src="resource/image/menu2.jpg" width="974" height="30" usemap="#FPMap0"> </td> </tr> <tr> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowleft.jpg') repeat-y top left; vertical-align:top; text-align:right"> <div style="height:100%; background:url('/resource/image/bgbottomleftcol.jpg') no-repeat bottom left;"> </div> </td> <td style="width:941px; vertical-align:top;"> <div id="content" style="height:100px; border:1px solid black; overflow:auto; padding:15px; background-color:white;"> <div style="border:1px solid black; background-color:lightgrey;"> <h2 style="padding:5px; margin:0;">Rentals</h2> </div> <p>For those of you not looking to purchase real estate, Burt can now offer you a wide range of rental properties to choose from in the area. If you would like to know what properties we have for rent, please fill out the information below and I will respond to your inquiry. For all rental properties, the following applies:</p> <ul> <li>Security Deposit is required that is equal to 1-month rent. </li> <li>Pet Deposit $250.00 which $100.00 is non-refundable and a pet rent of $10.00 is charged.</li> </ul> <form method="POST" name="rentals" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onSubmit="location.href='_derived/nortbots.htm';return false;" webbot-onSubmit=""> <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="TEXT/PRE" S-Email-Address="myemailaddress@aol.com" B-Email-Label-Fields="TRUE" B-Email-Subject-From-Field="FALSE" S-Email-Subject="Info From *****.com Rentals Page" S-Builtin-Fields U-Confirmation-Url="rentals2.html" startspan --><input NAME="VTI-GROUP" TYPE="hidden" VALUE="0"><!--webbot bot="SaveResults" i-checksum="37496" endspan --> <table border="0" width="91%" id="table1"> <tr> <td>First Name<br> <input type="text" name="First" size="20" style="border: 1px solid #0000FF"> </td> <td width="200">Last Name<br> <input type="text" name="Last" size="25" style="border: 1px solid #0000FF"> </td> <td width="375">Email Address<br> <input type="text" name="Email" size="40" style="border: 1px solid #0000FF"></td> </tr> <tr> <td> </td> <td width="200"> </td> <td width="375"> </td> </tr> <tr> <td>Phone<br> <input type="text" name="Phone" size="20" style="border: 1px solid #0000FF"></td> <td width="200">Best Time to Call<br> <input type="text" name="Timetocall" size="20" style="border: 1px solid #0000FF"></td> <td width="375">Price Range You Are Looking For<br> <input type="text" name="Price" size="20" style="border: 1px solid #0000FF"></td> </tr> </table> <p align="center"><b>Location of property you are looking for. Please enter a zip code, multiple zip codes, or community name into the box below. </b></p> <p align="center"> <textarea rows="3" name="S1" cols="60" style="border: 1px solid #0000FF"></textarea><!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=929101; var sc_invisible=1; var sc_partition=7; var sc_security="22ede977"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c8.statcounter.com/counter.php?sc_project=929101&java=0&security=22ede977&invisible=1" alt="free stats" border="0"></a> </noscript> <!-- End of StatCounter Code --></p> <p align="center"> <input type="submit" value="Submit" name="B1" style="border: 1px solid #0000FF"> <input type="reset" value="Reset" name="B2" style="border: 1px solid #0000FF"></p> </form> <p> </div> </td> <td style="width:30px; height:100%; background:#3300cc url('/resource/image/shadowright.jpg') repeat-y top right; vertical-align:top"> <div style="height:100%; background:url('/resource/image/bgbottomrightcol.jpg') no-repeat bottom right;"> </div> </td> </tr> </table> </div> </body> </html> Hello, I have coded my site, and I have a form on the page, and I'm not sure why I am getting the errors I am getting. If anyone can help me out I would be forever grateful! Here is my code: http://pastie.org/366071 And if you paste it into: http://validator.w3.org/#validate_by_input then you will see what errors I have encountered. Hey i recently opened a blogged and wanted to begin customizing it with shoutboxs , games, etc Blog is runned by Mac OSx , it allows u to post html as well, but 98% of the html codes i put in there doesnt work...the ones that do work , well they seem to have <table> inserted in them...and strangly one of my posting options is to insert a table, so when i click on that *insert table* i paste my html code(shoutbox) and click insert (for table) and all the codes seem to work fine and shoutbox looks great, until i cllick the <>(htmlm mod) everything seems to go back to where it was before i started testing with table (which is that it doesnt work), this is only if switch from normal to html and back after i insert html codes through table...but if i just paste the Html codes for the shoutbox into *HTML* section, it shows up as the link that i use to gernate these codes...this happens with every one of my html codes including the ones that do work for the blog and dont work for the blog....So im stuck with HTML codes that only show up when the *insert table dialog box pops up and i insert html from there to blog.(which cancels html codes in the end)..From the table with the successful HTML, if i click Save,HTML mode, or Preview, it just makes the codes void..I think that when iclick any of those commands, the blog messes with codes Does anyone know any great codes to bypass w/e the blog is doing to my codes or simulating the table forever with the codes? TY Friend said that blog has ScriptTags, and by using table i can bypass that...Unfortunatly ive tried inserting <table> and </table> around it...nothing works.. heres an example of one of the few that does work for the blog(had table tags when i copied it from generator): <div class="wiki_entry"> <div> <div> <div><br /></div> <table><tbody> <tr> <td><a href="http://www.website-hit-counters.com"><img src="http://www.website-hit-counters.com/cgi-bin/image.pl?URL=109386-8813" alt="www.website-hit-counters.com" /></a></td> </tr> <tr> <td><a href="http://www.website-hit-counters.com/search-engine-optimization.html" title="search engine optimization firm">This many People saw this</a></td> </tr></tbody> </table></div><br /></div></div> HEre is one that doesnt(after i placed tables around it myself) <div class="wiki_entry"> <div> <div> <div><br /></div> <table><tbody> <tr> <!-- Begin ShoutMix - http://www.shoutmix.com --> <iframe title="jimbaler" src="http://www.shoutmix.com/?jimbaler" width="100" height="130" frameborder="0" scrolling="auto"> <a href="http://www.shoutmix.com/?jimbaler">View shoutbox</a> </iframe> <br /><a href="http://www.shoutmix.com" title="Get your own free shoutbox chat widget at ShoutMix!">ShoutMix chat widget</a><br /> <!-- End ShoutMix --> </tr> </tbody> </table></div><br /></div></div> Hello, I hired contractors to build a site for me. The site's front page has a small section for text, the developers added some placeholder text in this spot. Now that the site is completed, I changed the text as follows: I downloaded the index.php file from my webhost. I changed it to a txt file, then opened in notepad, found the placeholder text, changed it, saved the file, renamed the file back to php, then uploaded to webhost, replacing old index.php file. When I load the page the following error message appears twice at the top of the window: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/XXXX/public_html/index.php:1) in /home/XXXX/public_html/index.php on line 2 Does anyone know what this error indicates ? (I'm not a programmer) I did not save the old index.php file because I didn't think such a minor change would cause problems. The contract with my developer has ended and I don't want to start a new one for this. Any help appreciated. Hi, I want to put in a form to get queries from the user, like so: Name: Email: Comments: 'Send' button and that it will send the information to my email address which is gmail? Thanks Code: Parse error: syntax error, unexpected T_DNUMBER in /home/a6989956/public_html/include/database.php on line 24 Can anyone please tell me whats wrong? Here is line a few lines Code: class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if(TRACK_VISITORS){ /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } line 24-25 is Code: $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); PLEASE HELP! Hello, I am a student and working on a simple first project. All I'm doing right now is writing my code in text edit, saving it as "test.html", and dragging and dropping the file onto Safari/Firefox to view my code. Everything works when I'm at my college's computer lab, but when I'm on my own mac notebook, the files load in the browser as my code. I've tried a variety of samples and checked my preferences, but I can't figure out what I'm doing wrong. Sample code I'm using - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <TITLE>Simple Link Example 2</TITLE> </HEAD> <BODY> <H1 ALIGN="CENTER">Creating Relative Reference Links</H> <HR> <P>Open <A HREF="practice1.html">Practice 1</A>.</P> <P> Open <A HREF="practice2.html">Practice 2</A>.</P> <P>Open <A HREF="practice3.html" TARGET="_blank"> Practice 3</A> in a new window.</P> </BODY> </HTML> Please help! I'm trying to wrap up an assignment and have been banging my head against the wall all night. Thanks! cordelia I was curious to find out, where can i find a cool looking shoutbox code where i can put on my message forum? Looking for some neat, and cozy with some advance options. Meaning, i would like to change the colors to match with my forum and stuff. Thanks. Hello! I have a blog on blogger and i want to make a c++ tutorial.. But every time i type "<iostream>" on post, when i see it, it is only "iostream". How can i make a code like the "[code]" from BBcode to cancel the compiling from HTML? Thanx! Hi, I have a page that does some javascript calculation and put the result in a textbox. I want to have give the user the option the email the result to himself/herself. I saw something like mailto:xxxxxx but this sends email to the known xxxxxx email address. Is there any way where xxxxxx is taken from the input box where the user types his/her email. something like mailto:'getElementById("txtbox").value???? Just to mention, there is no form submit (no post back) is is all done on the client side with javascript Any help would be very appreciated. Note: -I'm new to HTML and web dev. Thank you Hey guys, im new here, just a quick query and im sure its a beginners question How would i align an image to the right of a block of text, for example Text 1 Text 2 IMAGE HERE Text 3 Hope that makes sense? Many thanks Eddy can anyone help me with this, it looks ok but it wont email Code: <form action="mailto:byp_webmaster@hotmail.co.uk" method="POST" enctype="multipart/form-data" name="Website contact form"> <table border="1" align="center"> <td> <center>Your Name:</center><input type="text" align="center" size="40" maxlength="50" name="name"> <br><br> <center>Your Email:</center><input type="text" align="center" size="40" maxlength="50" name="Email"> <br><br> <center>Message:</center><textarea cols="50" rows="4" name="Message" align="center"></textarea><br> <center><input type="submit" value="Send Email" ></center> </td> </table> </form> |