Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.javascript > #8311

Re: mailto e tabella html nel corpo della mail

Path csiph.com!aioe.org!.POSTED./A1TKn/94V/PquXUnZNe7Q.user.gioia.aioe.org!not-for-mail
From Roberto Tagliaferri <tagliaferri@bofhland.org>
Newsgroups it.comp.lang.javascript
Subject Re: mailto e tabella html nel corpo della mail
Date Mon, 14 Oct 2019 11:53:26 +0200
Organization Aioe.org NNTP Server
Lines 49
Message-ID <qo1gim$spm$1@gioia.aioe.org> (permalink)
References <qnq41f$bg6$1@news.fcku.it>
NNTP-Posting-Host /A1TKn/94V/PquXUnZNe7Q.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 8Bit
X-Complaints-To abuse@aioe.org
User-Agent KNode/4.14.9
X-Notice Filtered by postfilter v. 0.9.2
Xref csiph.com it.comp.lang.javascript:8311

Show key headers only | View raw


MarcoP wrote:

> Buongiorno a tutti,
> non ho esperienza con javascript, e sto provando ad inserire una parte di
> una pagina HTML nel corpo di una mail.
> Si tratta di una tabella che vorrei "copiare" nel corpo, ed aprire la
> finestra della mail per far inserire il destinatario, e spedirla.
> 
> Come dicevo non ho familiarità con il codice e le funzioni javascript,
> quindi sono arrivato ad un punto morto.
> Nel codice che posto c'è anche una text area, che ho aggiunto per
> verificare che effettivamente la tabella sia stata recuperata (ed è così
> :-)):
> 
> Parte javascript:
> <script type="text/javascript">
> <!--
> function Email() {
> var oggetto   = "Titolo della tabella";
> var table = document.getElementById("myTable").innerHTML;
> table = '<table>' + table + '</table>';
> document.getElementById("corpoMail").value = table;
> table = encodeURIComponent(table);
> window.open("mailto:?subject=" + oggetto + "&body=" + table);
> }
> </script>
> 
> Richiamato da un bottone:
> <input type="button" value="Invia" onclick="Email()">
> <br>
> <textarea id="corpoMail" rows="500" cols="100"></textarea>
> 
> Dato che non ne esco:
> - c'è qualche errore particolare?
> - esiste un'alternativa al "semplice" mailto che mi permetta di costruire
> la mail pezzo per pezzo (compreso il tipo mail HTML)?
> 
> Grazie in anticipo... e spero non sia la solita domanda posta mille volte
> :-))
> P.S. Nel mio PC uso Outlook, ma se si potesse usare con qualsiasi client
> meglio
> 

Ciao, non mi risulta che il mailto: accetti nel body dell'html.

-- 
Roberto Tagliaferri-Linux user #30785 <-> r.tagliaferri@(forse)tosnet.it
www.robyt.eu

Back to it.comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

mailto e tabella html nel corpo della mail "MarcoP" <marco.pertegato.2604@gmail.com.invalid> - 2019-10-11 14:36 +0000
  Re: mailto e tabella html nel corpo della mail Roberto Tagliaferri <tagliaferri@bofhland.org> - 2019-10-14 11:53 +0200
    Re: mailto e tabella html nel corpo della mail "MarcoP" <marco.pertegato.2604@gmail.com.invalid> - 2019-10-14 15:14 +0000

csiph-web