<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" pageEncoding="UTF-8"%> <%@ page import="java.util.*" %> <%@ page import= "javax.mail.*"%> <%@ page import= "javax.mail.internet.*"%> <% String infoText = "init()"; // si se presiono el boton if ( request.getParameter("Submit") != null ) { //********************************************************* // Get values from hidden fields for sending the mail //********************************************************* String captchaGen = (String)session.getAttribute("idCaptcha"); String captchaInput = (String)request.getParameter("securityCode"); if ( !captchaGen.equals(captchaInput) ) { infoText = "init();alert('Security Code is invalid')"; } if ( infoText.indexOf("alert") < 0 ){ // if there is not error String form_from = request.getParameter("from"); //who is the mail from, e.g. feedback@yoursite.com String form_to = request.getParameter("to"); // who is the mail to, e.g. info@yourcompany.com String form_email = request.getParameter("email"); String form_subjet = request.getParameter("subject"); // text to appear in subject line of the e-mail String form_importance = request.getParameter("mail_importance"); //importance of the e-mail. Must be a number 0,1 or 2. 2 = High, 1 = Normal, 0 = Low String form_redirect = request.getParameter("next"); // page to redirect to after sending e-mail, e.g. http://yoursite.com/thankyou.htm try { String host = "mail"; String from = form_from; String to = form_to; Properties props = System.getProperties(); // Setup mail server props.put("mail.smtp.host", host); // Get session Session s = Session.getDefaultInstance(props, null); // Define message MimeMessage message = new MimeMessage(s); message.setFrom(new InternetAddress(from)); message.addRecipient(Message.RecipientType.TO, new InternetAddress(to)); message.setSubject("Confirmation e-mail (request contact information) "); String text = " \n" + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + "\n"; text += "This is a confirmation e-mail "; text += " \n" + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + "\n" + "\n"; text += "Contact Name: " + request.getParameter("contact") + "\n" + "\n"; text += "Company Name: " + request.getParameter("compname") + "\n" + "\n"; text += "E-mail: " + request.getParameter("email") + "\n" + "\n"; text += "Business Phone: " + request.getParameter("busphone") + "\n" + "\n"; text += "Ext: " + request.getParameter("ext") + "\n" + "\n"; text += "Fax: " + request.getParameter("fax") + "\n" + "\n"; text += "Questions or Comments: " + request.getParameter("comment") + "\n" + "\n"; text += "Sent from: " + "\n" + request.getHeader("referer") + "\n"; text += " \n" + "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" + "\n"; message.setText(text); Transport.send(message); } // end try catch (Exception e) { out.println("Error sending mail " + e); } response.sendRedirect("brands-files.html"); } } %> EBSG® --- eBusiness Secure and Guaranteed
 
| Card / Account Holder Support
   SEND A MESSAGE
Contact Name:
E-Mail:
Company Name:
Business Phone: ext:   (please include area code)
Fax:   (please include area code)
Questions or Comments:
 
 
CARD / ACCOUNT HOLDER SUPPORT
If you are a cardholder and need assistance with your account, please contact us at SUPPORT

 

Home | Privacy Policy | Terms of Use | Contact Us | Help
Copyright © 2001- EBSG, a service of TRANSYSA. All right reserved.
EBSG® is a registered trademark utilized pursuant to license by Inadam Corporation. All other logos are registered trademarks of their respective owners.