Seite 1 von 1

PDF Formular mit eMail Sende Button

Verfasst: 26.11.2013, 15:45
von Antarktic
Hallo zusammen,

ich habe mal wieder ein kleines Problem.
Mit Acrobat Standart XI habe ich ein Formular erstellt mit welchem Kundendaten erfasst werden sollen.
Dieses Formular soll dann per Mail versendet werden. Das versenden über ein eMail Button funktioniert auch sehr gut. Auch das die Felder nicht mehr editierbar sind klappt wunderbar. Nun möchte ich jedoch das wenn der Kunde den eMail Button drückt, das die Mail an eine feste eMail geht und an die vom Kunden angegebene. Man müßte also das Feld eMail auslesen und mit einbringen.
Nur das bekomme ich zur Zeit nicht hin. Da bräuchte ich eure Hilfe.

Danke.

P.S. Ein Beispiel habe ich angefügt.

PDF Formular mit eMail Sende Button

Verfasst: 27.11.2013, 10:38
von Antarktic
Guten morgen,

habe über Google eine Seite gefunden die mir den passenden Java Code geliefert hat. Funnktioniert.

Ich wünsche euch noch einen schönen Tag.
Oliver

PDF Formular mit eMail Sende Button

Verfasst: 03.03.2014, 19:18
von litserv
Die Antwort hier zu posten, wäre sehr nett…

PDF Formular mit eMail Sende Button

Verfasst: 26.06.2014, 16:28
von Antarktic
Hallo,

sorry für meine sehr späte Antwort.

Hier der Code :

Code: Alles auswählen

// This is the form return email. It's hardcoded // so that the form is always returned to the same address. // Change address on your form to match the code below var cToAddr = "formsAdmin@BigCorp.com"  // First, get the client CC email address var cCCAddr = this.getField("ClientEmail").value;  // Now get the beneficiary email only if it is filled out var cBenAddr = this.getField("BennyEmail").value; if(cBenAddr != "") cCCAddr += ";" + cBenAddr;  // Set the subject and body text for the email message var cSubLine = "Form X-1 returned from client" var cBody = "Thank you for submitting your form.\n" + "Save the filled form attachment for your own records"  // Send the entire PDF as a file attachment on an email this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody});
Damit funktioniert es bei mir ganz wunderbar ...

PDF Formular mit eMail Sende Button

Verfasst: 26.06.2014, 21:54
von nele_sonntag
Wir haben zu danken. :)