کدجاواامکان ارسال ایمیل ازوبلاگ جمعه 89/4/11 , 9:7 ص • کدجاوا/ارسال ایمیل/وبلاگ , سید مصطفى میرسیدی نوری نظر برای دریافت کدامکان ارسال ایمیل روی ادامه مطلب کلیک کنید... <!-- Start of E-Mail Form Java--> <!-- DEION: This will send you an e-mail with whatever your visitor enters in the fields. INSTRUCTIONS: Place this entire where you want the form to show up on the page. You can change the values (Name, E-mail, Phone, etc.) Just be sure to change that fields value in the . See where is says, "document.ccform.name.value", that is for the input field "name". BE SURE TO CHANGE THE E-MAIL ADDRESS BELOW. Currently it"s at "you@yourprovider.com". FUNCTIONALITY: Works in both Netscape and IE. ONLY WORKS IF THE VISITOR HAS THEIR E-MAIL SET UP ON THEIR BROWSER. --> < LANGUAGE=Java> //Modified by CoffeeCup Software //This code is Copyright (c) 1998 CoffeeCup Software //All rights reserved. License is granted to a single user to //reuse this code on a personal or business Web Site. <!-- if (navigator.appVersion.lastIndexOf("Win") != -1) { dropline = "\r\n" } else { dropline = "\n" } function coffeemsg(form) { document.ccform.Message.value = ( " " + dropline + dropline + "-----CoffeeCup AutoMated E-Mail Form---START----- " + dropline + dropline + dropline + "Name : " + document.ccform.name.value + dropline + "Phone : " + document.ccform.phone.value + dropline + "Subject : " + document.ccform.subject.value + dropline + "E-mail : " + document.ccform.email.value + dropline + "Message: " + document.ccform.message.value + dropline + dropline + "-----CoffeeCup AutoMated E-Mail Form----END------ " + dropline + dropline + "E-Mail Form Java by:" + dropline + "http://www.coffeecup.com" + dropline + dropline + dropline + " FIELD VALUES: " + dropline + " " + dropline ); } // --> </> <FORM name="ccform" method="post" action="mailto:you@yourprovider.com?subject=Message" enctype="text/plain"> <INPUT type=hidden name="Message"> <FONT FACE="VERDANA, ARIAL"><B>Name:</B></FONT><P> <INPUT type="text" size=25 name="name" onChange="coffeemsg()"> <P> <FONT FACE="VERDANA, ARIAL"><B>Phone:</B><P> <INPUT type="text" size=25 name="phone" onChange="coffeemsg()"> <P> <FONT FACE="VERDANA, ARIAL"><B>Email:</B></FONT><P> <INPUT type="text" size=25 name="email" onChange="coffeemsg()"> <P> <FONT FACE="VERDANA, ARIAL"><B>Subject:</B></FONT><P> <INPUT type="text" size=25 name="subject" onChange="coffeemsg()"> <P> <FONT FACE="VERDANA, ARIAL"><B>Message:</B></FONT><P> <TEXTAREA rows=5 cols=45 wrap="auto" name=message onChange="coffeemsg()">