HTML - Mailto Syntax Difficulties
I have the following link, which according to my research, is correct but throws up an error. However, I may very well have missed something obvious:
Code: <a href="mailto:emailaddress@gmail.com?subject=BME%20Sponsorship%20Opportunities&body=Please%20contact%20me%20regarding%20Bendigo%20Motorcycle%20Expo%20Sponsorship%20opportunities.%0A%0AMy%20contact%20details%20are%20as%20follows:%0A%0AName:%0A%0ATel:%0A%0AEmail:%0A%0AThanks."> When the link is selected, the mail window opens with the correct details in the subject line and the body but the following within the 'To' email address field: Code: <script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy48579 = 'emailaddress' + '@'; addy48579 = addy48579 + 'gmail' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + ':' + addy48579 + '\'>' ); document.write( addy48579 ); document.write( '<\/a>' ); //-->\n </script> <script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script> This is placed in an article in Joomla which accepts HTML but I'm not convinced it's related to the CMS. If anyone can point me in the right direction, I would be very grateful. Similar Tutorialshttp://taras.shacknet.nu/~public1/plpp/collectinfo.html This is a page I'm building. FYI, this is my second version of the page, I messed up a few things in the first revision and just started over with a brand new file. The same problem happened in the first revision. This page opens up fine in Firefox and IE for Windows, and Safari for Mac. In Firefox for Mac, well, it always just comes up as a blank. Any ideas? FYI, the main website page is http://taras.shacknet.nu/~public1/plpp/ There is a link near the bottom that goes to the page in question. Thanks! I've had a few different problems with this page. In an earlier version, I had the bottom content contained in a div called 'bottom'; however, in IE this created an unwanted gap between the two top divs and the bottom one that I couldn't figure out how to get rid of. So I tried something else, and I thought I had it figured out. This layout works well enough in FF ((still needs a bit of work, but nothing I don't already know how to do, just haven't gotten to it yet)), but it displays weird in IE. I know that adding the proper doctype fixes the problem, but I don't have that option. The webhost I have to work with isn't the best, and thus I need a way to make this display properly in quirks mode in IE. My problem is the image that appears on it's own row in the middle of the page, it should be in the same row as the two images directly below it. Here's my code: Code: <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive"> <title>Berean Baptist Church</title> <style type="text/css"> #all{ width: 755px; } img{ border: 0px; } a.default:hover{ cursor: default; } #D_1091040261286 { display: none; } #firstright{ float: right; height: 230px; width: 240px; } #firstleft{ float: left; height: 230px; width: 504px; } #bottom{ text-align: center; height: 560px; width: 762px; } #tablist{ padding: 0px 0px 3px 0px; margin-top: 5px; margin-left: 1px; font: bold 10px Verdana; } .buttons{ font: bold 10px Verdana; } #tablist li{ list-style: none; display: inline; margin: 0; } #tablist li a{ color: white; text-decoration: none; padding: 3px; margin-left: 0px; border: 1px solid black; background-color: #69090A; } #tablist li a:hover{ color: #b1272a; background-color: #efefd1; cursor: pointer; } #linkboxes { background-color: transparent; border: 1px solid black; } #linkboxes td { border: 1px solid; } #beforeyouattend a { background: url(/images/10000/3000/914BE/user/beforeyouattend.gif); display: block; width: 220px; height: 28px; } #beforeyouattend a:hover { background: url(/images/10000/3000/914BE/user/beforeyouattendhover.gif); display: block; width: 220px; height: 28px; } #weeklybulletin a { background: url(/images/10000/3000/914BE/user/weeklybulletin.gif); display: block; width: 220px; height: 28px; } #weeklybulletin a:hover { background: url(/images/10000/3000/914BE/user/weeklybulletinhover.gif); display: block; width: 220px; height: 28px; } #volunteeropportunities a { background: url(/images/10000/3000/914BE/user/volunteeropportunities.gif); display: block; width: 220px; height: 28px; } #volunteeropportunities a:hover { background: url(/images/10000/3000/914BE/user/volunteeropportunitieshover.gif); display: block; width: 220px; height: 28px; } #pastorsblog a { background: url(/images/10000/3000/914BE/user/pastorsblog.gif); display: block; width: 220px; height: 28px; } #pastorsblog a:hover { background: url(/images/10000/3000/914BE/user/pastorsbloghover.gif); display: block; width: 220px; height: 28px; } #employmentopportunities a { background: url(/images/10000/3000/914BE/user/employmentopportunities.gif); display: block; width: 220px; height: 28px; } #employmentopportunities a:hover { background: url(/images/10000/3000/914BE/user/employmentopportunitieshover.gif); display: block; width: 220px; height: 28px; } #enter a { background: url(/images/10000/3000/914BE/user/enter.gif); display: block; width: 14px; height: 28px; } #enter a:hover { background: url(/images/10000/3000/914BE/user/enterhover.gif); display: block; width: 14px; height: 28px; } #photo { border: 1px solid black; } </style> </head> <body> <div id="all"> <div id="firstright"> <div align="center"> <form style="margin-bottom: 5px;" method="get" action="http://www.google.com/search"> <input id="google" name="q" type="text" size="20" maxlength="255" value="Google search" onfocus="select();" /><img src="/images/10000/3000/914BE/user/google.gif" style="margin:0px; padding:0px;"/> <div style="margin-top: 7px; margin-bottom: 8px;"><input type="submit" value="Search" /> <input type="checkbox" name="sitesearch" value="bbcfnc.org"/><font size="2">only search </font> </div> </form> <table cellspacing="2" cellpadding="0" id="linkboxes" width="240"> <tr> <td align="center" valign="middle"><div id="beforeyouattend"><a href="/10000/3000/914BE/welcome"></a></div></td> <td width="14px" height="28"><div id="enter"><a href="/10000/3000/914BE/welcome5"></a></div></td> </tr> <tr> <td align="center" valign="middle"><div id="weeklybulletin"><a href="/images/10000/3000/914BE/user/ThisWeeksBulletin.pdf"></a></div></td> <td width="14px" height="28"><div id="enter"><a href="/10000/3000/914BE/ministry10"></a></div></td> </tr> <tr> <td align="center" valign="middle"><div id="volunteeropportunities"><a href="/10000/3000/914BE/floating4"></a></div></td> <td width="14px" height="28"><div id="enter"><a href="/10000/3000/914BE/floating4"></a></div></td> </tr> <tr> <td align="center" valign="middle"><div id="pastorsblog"><a href="http://pastorseansblog.blogspot.com/"></a></div></td> <td width="14px" height="28"><div id="enter"><a href="http://pastorseansblog.blogspot.com"></a></div></td> </tr> <tr> <td align="center" valign="middle"><div id="employmentopportunities"><a href="/10000/3000/914BE/floating6"></a></div></td> <td width="14px" height="28"><div id="enter"><a href="/10000/3000/914BE/floating6"></a></div></td> </tr> </table> </div> </div> <div id="firstleft"> <div> <a id="links" class="pointer" href="#links"><img width="500" height="200" id="photo" src="/images/10000/3000/914BE/user/homepagegallery01.gif" /></a> <ul id="tablist"> <li><a class="buttons" id="previousbutton" onclick="prev()" onmouseover="number=1; changecontent();" onmouseout="number=2; changecontent();">PREVIOUS</a></li> <li><a class="buttons" id="pausebutton" onclick="pause()" onmouseover="number=3; changecontent();" onmouseout="number=4; changecontent();">PAUSE</a></li> <li><a class="buttons" id="nextbutton" onclick="next()" onmouseover="number=5; changecontent();" onmouseout="number=6; changecontent();">NEXT</a></li> <li><a class="buttons" id="servicetimes" onmouseover="number=7; changecontent()" onmouseout="number=8; changecontent()" href="/10000/3000/914BE/floating5"> SUNDAY WORSHIP SERVICES: 8:30am, 10:45am, 6:00pm</a></li> </ul> </div> </div> <img align="middle" height="3px" width="185px" src="/images/10000/3000/914BE/user/blank.png"/><br> <a href="http://www.e-giving.org/start.asp?id=1556"><img src="/images/10000/3000/914BE/user/egiving.gif" alt="E-giving" align="middle" width="185" height="185" hspace="0" vspace="0" ></a> <a href="/10000/3000/914BE/staff1"><img id="welcome" align="middle" onmouseover="number=9; changecontent()" onmouseout="number=10; changecontent()" height="187px" width="370px" src="/images/10000/3000/914BE/user/Welcome-To-Berean.gif"/></a> <a href="http://www.bbcfnc.org/media/media/recent.php"><img id="sermonconnect" onmouseover="number=11; changecontent()" onmouseout="number=12; changecontent()" src="/images/10000/3000/914BE/user/sermonsonline.gif" alt="Connect" title="Connect" align="middle" width="185" height="185" hspace="0" vspace="0" ></a><br/> <img align="middle" height="5px" width="740px" src="/images/10000/3000/914BE/user/blank.png"/><br> <a href="/10000/3000/914BE/history"><img src="/images/10000/3000/914BE/user/UPWARD-box.gif" alt="Upwards" align="middle" width="185" height="185" hspace="0" vspace="0" /></a> <a href="/10000/3000/914BE/ministry5"><img src="/images/10000/3000/914BE/user/Berean-Baptist-Academy.gif" alt="Berean Baptist Academy" align="middle" width="185" height="185" hspace="0" vspace="0" /></a> <a href="/10000/3000/914BE/ShowCalendarMonth"><img src="/images/10000/3000/914BE/user/calendar.gif" alt="Calendar" align="middle" width="185" height="185" hspace="0" vspace="0"/></a> <a href="/10000/3000/914BE/ministry6"><img src="/images/10000/3000/914BE/user/AWANA-box.gif" alt="Awana" align="middle" width="185" height="185" hspace="0" vspace="0" /></a><br> <img align="middle" height="5px" width="740px" src="/images/10000/3000/914BE/user/blank.png"/><br> <div align="center"><img src="/images/10000/3000/914BE/user/BereanCampusPanorama.JPG" width="753" height="172"></div> </div> </body> </html> I need a solution that doesn't cause the page to display wrong in Firefox, and I'd prefer not to have to use a browser-detection script to document.write different HTML in. I know that would work and I could do that, but I think it would work just as well to stick to the table-based layout that's up on our site now rather than bothering with extra scripts. Has anyone else had any problems when using notepad to edit code created with an WYSIWYG editor such as Frontpage or Dreamweaver? In particular, making links, that are correctly coded, work? Something even odder, is that this problem only occurs on the index.html page. If I rename that page the links work just fine. I have asked this same question in other forums and no one seems to have a clue. Has anyone else encountered this or have any thoughts? Im trying to set up a simple form filler to get comments/feedback via e-mail for an Intranet site. This is the code im using: Code: Please Complete the following form to submit Your Comments. <BR><BR> <form method="POST" action="mailto:e-mail address here?subject=Test" enctype="text/plain"> Name: <input type="text" size="8" maxlength="8" name="Name"> <BR><BR> Comments <BR> <textarea name="Comments" rows="10" cols="50" Wrap="virtual"> </textarea> <BR><BR> <input type="submit" value="Send"> <input type="reset" value="Clear Form"> </form> </Font> </TD> </TR> </TBODY> </TABLE> Works ok on most computers. The problem is the program used for sending e-mails is GroupWise but some of the PC's are trying to use outlook but its not installed on any of the PC's. Is there a code to tell it to use GroupWise and not Outlook? i am currently struggling in making a mailto form. I would like it to be so a individual type in there name / email address / comment then it sends to a email address without going to the default email set on computer. how easy is this to set up? thanks I want to have a Subject title "I want to hire you for a project" automatically appear in the email program (Outlook Express and so on..) when someone clicks on my email. Is there a way to do this? Thanks a lot for your help -khan Is there a way to use mailto to send an email to 2 recipients? Is there a way to send an email and to cc someone? Thanks so much. Hi there, I searched online for instructions on how to set the From field of an email from the mailto hyperlink, but there is nothing out there. Is it simply not possible? Thanks, Emmi Hi, I reciently built a site where I included a mailto: link. I placed it in my code using the dropdown menu in Dreamweaver. I have never used the dropdown before and this time the link doesn't work. Can any one tell me why? Here is a link to the site, www.yatchstuff.com see the contact page. Thank you in advance. Quicpic ok. this is my code Code: <html> <body> <h3>This form sends an e-mail to W3Schools.</h3> <form action="MAILTO:(?)" method="post" enctype="text/plain"> Contact:<br /> <form action=""> <select name="names"> <option value="***@hotmail.com">Trevor</option> <option value="***@hotmail.com">Nick</option> <option value="***@hotmail.com">Sam</option> </select> </form> <br/> Name:<br /> <input type="text" name="name" value="your name" size="30" /> <br /> Your e-mail:<br /> <input type="text" name="mail" value="your e-mail" size="30" /> <br /> Comment:<br /> <input type="text" name="comment" value="your comment" size="40" /> <br /><br /> <input type="submit" value="Send" /> <input type="reset" value="Reset" /> </form> </body> </html> as you can see i am trying to send a email to the three adresses though a drop down menu. the (?) is where im not sure what to put. any ideas? Hi, I am using af simple mailto funktion but is it possible that i will send the same message to more than one person? <form action="mailto:xxx@lxxx.com?subject=Besked fra CNC-Spindel" method="post" enctype="text/plain"> <table><tr><td> Navn: <INPUT NAME="Navn" TYPE="text" SIZE=20><BR> <TEXTAREA NAME="Besked" ROWS=10 COLS=45></TEXTAREA><BR> </td></tr> <tr><td align=center> <INPUT TYPE="submit" value="Send Besked" style="color: #ffffff; background-color: #000000"> </td></tr></table> </FORM> So I understand that HTML Mailto forms don't work unless they go through the CGI Script directory of my server first. I called my server to ask them... And they definitely didn't understand what I was asking. Is there a way I can talk to them about how to get this HTML mailto form working properly without using HTML language? Since they pretty much don't understand it, anyway. Or is there a way I can find that information online? I don't see why they didn't understand... It says right in the package I bought for my domain that there is a CGI directory included. Can I make it so that there is a text box and when someone enters something into the textbox and submit it, it will mail to my email.. Thanks in advance. And also, hey everyone.. My first post here Hi all I'm trying to create a website on the intranet at work and want to place a link that when clicked will open an email to an unknown email address (one that will change form one use to another) and have a specific file attached to that email. I have spent the past few days looking all around the web and have found conflicting information some things say that you can do it and others say that you can't. I have been using this code... mailto:name@domain.com?subject=requested file&attachment=""f:\test.txt"" when i do this i get it to open an email with no attachment or i get an error message that i can't recreate right now but it is something to the toon of "invaild comand line. check the switch you are using" any help or solutions that would be great. If this can't be done with mailto can it be done another way? i'm using html and trying to open the emial in outlook 2003 thanks Nick I'm trying to make a form that a person can fill out. When they click submit, it will send what they wrote to me in a e-mail. This is what I have: Code: <form action = "MAILTO:E-mail" method = "post" enctype = "text/plain"> alkdsjflasj alsdjflasdjf a;lkdfalsdj </form> <input type = "submit"> What I dont like that this does, is it opens the microsoft outlook express. I want it to send me the form information without opening outlook express. I would like it to send the form to my e-mail, and also redirect them to a different page. Hi, I am building a webpage with the mailto button to send mail to another person, it's working but is there a way to know if the user click send or close the mailto screen? guys, im having an issue with my mailto form iv pasted the code bellow: basicly the form dosent seem to be working correctly... i dont have the email arrive in my inbox!! http://www.bristolheatingsolutions.co.uk/contact.html Code: <FORM action="mailto:Patrick@bristolheatingsolutions.co.uk" method="post" enctype="text/plain"> <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="4" WIDTH="90%"> <TR> <TD width="30%"><DIV align="right"> <B>Name :</B> </DIV> </TD> <TD width="70%"> <INPUT type="text" name="name" size="50"> </TD> </TR> <TR> <TD><DIV align="right"><B>Address :</B></DIV> </TD> <TD> <INPUT type="text" name="address" size="50"> </TD> </TR> <TR> <TD><DIV align="right"><B>Town :</B></DIV> </TD> <TD> <INPUT type="text" name="town" size="50"> </TD> </TR> <TR> <TD><DIV align="right"><B>Post Code :</B></DIV> </TD> <TD> <INPUT type="text" name="postcode" size="50"> </TD> </TR> <TR> <TD><DIV align="right"><B>Home Tel :</B></DIV> </TD> <TD> <INPUT type="text" name="house Tel" size="50"> </TD> </TR> <TR> <TD><DIV align="right"><B>Mobile Tel :</B></DIV> </TD> <TD> <INPUT type="text" name="mobile tel" size="50"> </TD> </TR> <TR> <TD><DIV align="right"><B>Email Address :</B></DIV> </TD> <TD> <INPUT type="text" name="email address" size="50"> </TD> </TR> <TR> <TD><DIV align="right"> <B>Comment:</B> </DIV> </TD> <TD><textarea name="comment" cols="50" wrap="virtual" rows="4"> </textarea></TD></TR> <TR> <TD> </TD> <TD> <INPUT type="submit" name="submit" value="Submit"> <INPUT type="reset" name="reset" value="Reset"> </TD></TR> </TABLE> </FORM> Hi Guys, The links on my page automatically open the persons default web client, which is usually set to Outlook Express. Most people don't change their settings to use their preferred client, such as gmail or hotmail, when opening links so I was wondering is there a way of getting around this such as a code that will open up gmail or other clients. Thanks HTML Code: <center><a href="mailto:me@myemail.com?subject=Hello World&body=Hi, How are you?"><img src="myimage.jpg" border="0" alt="Barry's Tea Me"></a> </center> Hi, I have recently got a book on HTML and XHTML, and I was looking at forms. I would like a form to send the info to my e-mail: Rautoner@hotmail.co.uk , but whenever I try it, it asks if I would like to send it / security warning (which I don't want) and then it opens the url: mailto:Rautoner@hotmail.co.uk (which is wrong). Can anybody fix this? Code: <form action="mailto:Rautoner@hotmail.co.uk" method="post"> Name:<input type="text" name="Name"> Age:<input type="text" name="Age"> <input type="submit" value="Send"> </form> Heya Guys, I am new to web creation and i am using Macromedia Dreamweaver 8 to create my websites. I have got a hot spot on a webpage and i want to use mailto to create a new e-mail when the hotspot is clicked on. I have figured out how to get the e-mail to open using the following html (which dreamweaver has created based on the link i typed in): <area shape="rect" coords="573,154,633,175" href="mailto:frosty16@hotmail.co.uk" /> However i was wondering what i had to do to have something come up in the subject field as well Can anyone help? |