PDA

View Full Version : [XML]Come si compila un file xml che gestisce un form per l'invio di messaggi?


(neo)
26-04-2009, 11:13
Ciao a tutti ragazzi. :)
Vengo subito al dunque, spero possiate aiutarmi.
Ho un template di un sito fatto in flash, e nella sezione contatti c'è un form per l'invio di messaggi, solo che non riesco a farlo funzionare. Cioè sembra funzionare quando provo a mandare un messaggio, dà anche il messaggio di OK che il messaggio è stato inviato, ma in realtà non invia nulla.

Come devo fare? Ho un dominio su aruba con windows, che dati devo inserire nel file .xml a parte quelli evidenti (tipo email del destinatario etc..) per fare in modo che i messaggi vengano inviati???
Grazie!!

Di seguito vi incollo il file di cui parlo, ci sono anche le istruzioni, ma ci sono alcune sezioni in cui non so proprio cosa mettere, e penso di dover mettere qualcosa che ha a che fare con aruba da qualche parte.. ma non so dove ne come :cry: :
(Non vi spaventate della lunghezza del documento, sono più le istruzioni in inglese che le righe di codice..)


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

<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>your_email@yourdomain.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>Thank you for your message.</messageSentText>

<!--
-- Text showing in case the form is not submitted because of a server error.
-->
<messageSentFailedText>Error. The Message Could Not Be Sent. Please try again.</messageSentFailedText>

<!--
-- Text your visitor will see while waiting till the processing is over.
-->
<formProcessingText>processing...</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>

cucumiao
11-09-2011, 11:51
sò che è una discussione un pò vecchia, ma ho il tuo stesso problema ho un sito su ar..ba e per inviare le email ho necessità di aggiungere al form che hai anche tu nome utente e password del server smtp.. Come hai risolto?
Grazie