Ayuda - Formulario de correo en Web

Buenas a todos, pues nada, no tengo ni idea de como configurar un formulario de correo en una web que estoy haciendo, tengo el código pero lo que hay que rellenar no tengo ni idéa, si alguno me puede orientar o ayudar se lo agradezco, os dejo el código

<?xml version="1.0" encoding="utf-8"?>
<!--
      Please read this information to learn how to set up the contact form integrated
      into the template.
     
      This readme file explains in details the meaning of the settings that can be
      done in the fcContactFormConfiguration.xml configuration file.
     
      It is recommended for you to use an XML editor to make changes to this file
       because it’s less possible to make an error in the markup which can cause to
      a not working contact form.
  -->
<contactFormConfiguration>
           
    <!--
          An e-mail address which will be used to receive messages from your contact form.
          You can specify several e-mail addresses separating them with a comma.
          For example: first_email@domain.com, second_email@domain.com, third@domain.com
      -->
    <emailTo>miguelangel@eccodet.com</emailTo>
   
    <!--
          A server script type which will process sending e-mails. It depends on your
          hosting and in the current version of the contact form it is allowed to use
          two types:  php (Apache, PHP Hosting); asp (IIS web server, ASP).
      -->
    <serverProcessorType>php</serverProcessorType>
   
    <!--
          A name of the script file which process sending e-mails on your server (without
          extension). The name contact is used by default.
      -->
    <serverProcessorFileName>contact</serverProcessorFileName>
   
    <!--
          Text showing to the user when the form is submitted without any errors.
      -->
    <messageSentText>gracias por su mensaje.</messageSentText>
   
    <!--
          Text showing in case the form is not submitted because of a server error.
      -->
    <messageSentFailedText>error en servidor, pruebe más tarde.</messageSentFailedText>
   
    <!--
          Text your visitor will see while waiting till the processing is over.
      -->
    <formProcessingText>procesando...</formProcessingText>
   
    <!--
          Your SMTP server (for ASP only).
      -->
    <smtpServer>localhost</smtpServer>
   
    <!--
          Your SMTP port (for ASP only).
      -->
    <smtpPort>25</smtpPort>
   
    <!--
          Set whether to send the message as a plain text (true) or as HTML (false).
      -->
    <plainText>false</plainText>
   
    <!--
          ID of the input field (in the structure XML file) to use for the “from: ”
          or “sender: ” label in your e-mail client.
      -->
    <emailFromSource>1</emailFromSource>
   
    <!--
          Subject of the e-mails that will be sent through this contact form or ID of
         the input field (in the structure XML file) to use for the “subject: ” label
          in your e-mail client.
      -->
    <subjectSource>Contact Form from your site</subjectSource>
   
</contactFormConfiguration>
Tienes el servidor SMTP a configurar?
elordenatres escribió:Tienes el servidor SMTP a configurar?


Si
Te he generado un codigo mas limpio y te he puesto donde tienes que poner los parametros ;D

<?xml version="1.0" encoding="utf-8"?>
<contactFormConfiguration>
    <emailTo>AQUI PONES A QUIEN VA DIRIGIDO EL MAIL</emailTo>
    <serverProcessorType>ASP</serverProcessorType>
    <serverProcessorFileName>contact</serverProcessorFileName>
    <messageSentText>AQUI PONES EL MENSAJE QUE VAS A ENVIAR</messageSentText>
    <messageSentFailedText>AQUI PONES LO QUE QUIERES QUE TE DIGA CUANDO DA ERROR</messageSentFailedText>
    <formProcessingText>procesando...</formProcessingText>
    <smtpServer>AQUI PONES EL SERVIDOR SMTP</smtpServer>
    <smtpPort>AQUI PONES EL PUERTO DEL SERVIDOR SMTP</smtpPort>
    <plainText>false</plainText>
    <emailFromSource>1</emailFromSource>
    <subjectSource>Y AQUI PONES EL ASUNTO</subjectSource>
   
</contactFormConfiguration>
Oye, el archivo con el código lo tengo que guardar con un nombre específico??
Esque no me funciona.

Tengo otro archivo llamado form05structure.xml con el siguiente código por si aquí también hay que tocar algo

<?xml version="1.0" encoding="utf-8"?>
<contactFormStructure>
   
    <formItems>

        <item id="1" label="Name" required="true">
            <textToShow>Name*:</textToShow>
        </item>

        <item id="2" label="E-mail" required="true">
            <textToShow>E-mail*:</textToShow>
            <validator>EmailValidator</validator>
        </item>

        <item id="3" label="Message" required="true">
            <textToShow>Message*:</textToShow>
        </item>

    </formItems>
   
</contactFormStructure>
4 respuestas