Html form in an email body
hey,
Actually i, have a requirement to send an html form in the body of an email message( couple of radiob button questions, some checkboxes, etc.) and then read the recipients answers into a java program.
when i tried sending this form in an email. It went perfectly, but when the recipient click ed on reply, he could not fill the form as only the (html formatted)text was there and all the html controls were gone ie no circle for radio button, no square for checkboxes, etc.
Can anyone please help me...Thanks in advance.
I don't know how, or if it's even possible, to send a filled in html form
as part of an email reply. Normally what I would expect (assuming the
mail client supports displaying html forms) is that the form would
appear in the received message and the user would fill it out there
and then click a "submit" button in the form to send the results back
via http. The user would not "reply" to the message.
Better would be to direct the user to a web page that contained the
form and let them fill it in there.
Similar Messages
-
Upload image in an html form to be emailed
Hi everyone. Here is another one of my last minute, hurry up and wait requests.
I have to create a form that will enable the viewer to upload an image and send the
form on its way to a predetermined email address. This is for a contest starting tomorrow.
The form has been made and works. The only thing I haven't worked out yet is the "upload image"
feature. This is absolutely necessary and must be included. I have tested this several times and all the data
comes thru. What I need is for an image to go along with the form fields and appear when the email is opened.
With all due respect I do not have a very long learning curve here so if anyone can just provide
me with the code, both html and php, instruct me exactly where to place it I would be
extremely appreciative.
here is the temporary link:
Sirui/Argraph Wildlife-Landscape Photo Contest
The image upload button will be in between the two horizontal rules towards the bottom of the form;
above the submit/reset buttons.
Thanks in advance as always.
-Cliff-Below is the code and php for your complete form together with the file upload field and code. How you style the form and validate the form fields (if your going to) is down to you. Change the email address marked in red to that of the recipient you want the information to go to.
You need to copy all the code and save it with a php extension so instead of:
SiruiWildlifePhotoContestEntryForm.html
This:
SiruiWildlifePhotoContestEntryForm.php
Obvioulsy being php it only works if the file is on a php enabled server so if you dont have a local testing server you need to upload it to your remote server before it will work.
<?php
if(isset($_POST['Submit']))
//The form has been submitted, prep a nice thank you message
$output = '<h1>Thanks for your file and message!</h1>';
//Set the form flag to no display (cheap way!)
$flags = 'style="display:none;"';
//Deal with the email
$to = 'yourEmailAddress.com';
$subject = 'Competition Entry';
$LastName = ($_POST['LastName']);
$FirstName = ($_POST['FirstName']);
$Email = ($_POST['Email']);
$Phone = ($_POST['Phone']);
$Address1 = ($_POST['Address1']);
$Address2 = ($_POST['Address2']);
$City = ($_POST['City']);
$State = ($_POST['State']);
$Zip = ($_POST['Zip']);
$Dealer = ($_POST['Dealer']);
$TripodMonopodHead = ($_POST['TripodMonopodHead']);
$CameraLens = ($_POST['CameraLens']);
$ImageEntry = ($_POST['ImageEntry']);
$DepositWhere = ($_POST['DepositWhere']);
$YouTubePage = ($_POST['YouTubePage']);
$attachment = chunk_split(base64_encode(file_get_contents($_FILES['file']['tmp_name'])));
$filename = $_FILES['file']['name'];
$boundary =md5(date('r', time()));
$headers = "From: [email protected]\r\nReply-To: [email protected]";
$headers .= "\r\nMIME-Version: 1.0\r\nContent-Type: multipart/mixed; boundary=\"_1_$boundary\"";
$message = "Last Name: $LastName\n\n";
$message .= "First Name: $FirstName\n\n";
$message .= "Email: $Email\n\n";
$message .= "Phone: $Phone\n\n";
$message .= "Address1: $Address1\n\n";
$message .= "Address2: $Address2\n\n";
$message .= "City: $City\n\n";
$message .= "State: $State\n\n";
$message .= "Zip: $Zip\n\n";
$message .= "Dealer: $Dealer\n\n";
$message .= "Tripod Monopod Head: $TripodMonopodHead\n\n";
$message .= "Camera Lens: $CameraLens\n\n";
$message .= "Deposit Where: $DepositWhere\n\n";
$message .= "You Tube Page: $YouTubePage\n\n";
$message.="This is a multi-part message in MIME format.
--_1_$boundary
Content-Type: multipart/alternative; boundary=\"_2_$boundary\"
--_2_$boundary
Content-Type: text/plain; charset=\"iso-8859-1\"
Content-Transfer-Encoding: 7bit
$message
--_2_$boundary--
--_1_$boundary
Content-Type: application/octet-stream; name=\"$filename\"
Content-Transfer-Encoding: base64
Content-Disposition: attachment
$attachment
--_1_$boundary--";
mail($to, $subject, $message, $headers);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>MailFile</title>
</head>
<body>
<?php echo $output; ?>
<form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" <?php echo $flags;?>>
<p><label for="LastName" class="barheader">Last Name:</label>
<input name="LastName" type="text" id="LastName" size="28" maxlength="50" />
</p>
<p><label for="FirstName" class="barheader">First Name:</label>
<input name="FirstName" type="text" id="FirstName" size="28" maxlength="50" />
</p>
<p><label for="Email" class="barheader">Email:</label>
<input name="Email" type="text" id="Email" size="50" maxlength="75" />
</p>
<p><label for="Phone" class="barheader">Phone:</label>
<input name="Phone" type="text" id="Phone" size="12" maxlength="15" />
</p>
<p><label for="Address1" class="barheader">Address 1:</label>
<input name="Address1" type="text" id="Address1" size="75" maxlength="100" />
</p>
<p><label for="Address2" class="barheader">Address 2:</label>
<input name="Address2" type="text" id="Address2" size="75" maxlength="100" />
</p>
<p><label for="City" class="barheader">City:</label>
<input name="City" type="text" id="City" size="33" />
</p>
<p><label for="State"><span class="barheader">State:</span></label>
<input name="State" type="text" id="State" size="2" maxlength="2" />
</p>
<p><label for="Zip" class="barheader">Zip:</label>
<input name="Zip" type="text" id="Zip" size="10" maxlength="10" />
</p><label for="Dealer" class="barheader">Dealer:</label>
<input name="Dealer" type="text" id="Dealer" size="100" maxlength="150" />
</p>
<p><label for="Tripod/Monopod/Head Used:" class="barheader">Tripod/Monopod/Head Used:</label>
<input name="TripodMonopodHead" type="text" id="Tripod/Monopod/Head Used:" size="75" maxlength="100" />
</p>
<p><label for="YouTubePage" class="barheader">Camera/Lens Used:</label>
<input name="CameraLens" type="text" id="Camera/Lens Used:" size="75" maxlength="100" />
</p>
<p><label for="Image/Entry:" class="barheader">Image/Entry #:</label>
<input name="ImageEntry" type="text" id="Image/Entry:" size="25" maxlength="25" />
</p>
<p></p>Where will you deposit your entry?:</p>
<p><label for="DepositWhere"></label>
<input name="DepositWhere" type="text" id="DepositWhere:" size="20" maxlength="50" />
</p>
<p><label for="YouTubePage" class="barheader">For YouTube Videos: URL to your YouTube page:</label>
<input name="YouTubePage" type="text" id="YouTubePage" size="50" maxlength="100" />
</p>
<p>
<label for="file">Attach File</label> <input type="file" name="file" id="file"></p>
<input type="submit" name="Submit" id="Submit" value="Submit" />
<input type="reset" name="Reset" id="Reset" value="Reset" />
</form>
</body>
</html> -
Any way to have info from a form show in the body of an email window?
I've built a question form in the new Catalyst Beta that when completed, the user will click the submit button opening their email client(which, since this is an internal app for my office, is MS Outlook) showing the information already entered and they just have to hit Send.
I have imported the FC file into Flash Builder 4 and have been able to populate the To and Subject fields but I'm having trouble with the body of the email. I can't think of/find a way to link/export the info from the form to the email body. Anyone have any suggestions or ideas?
Thanks.user457097 wrote:
Is it possible to do using plain text?No. mailto is an HTML tag. The only way for the email client to be able to interpret it properly is to send an HTML message with the mailto tag.
Many mail clients will automatically take text that looks like URLs or email addresses in a plain text email and make them links. If this is an internal application where you know what mail client everyone is using, that may be worth testing out. You may not need a mailto.
Justin -
Email bursting send report as HTML in email body
Hello,
I have Oracle BI Publisher 10.1.3.4.1 (build# 1101) version installed as part of Oracle Business Inteligence.
I have question about email bursting. I created simple report and I am bursting it via email. But I would like to send report in HTML as part of email body and not as attachment. I read that it is possible in other versions of BIP (as part of EBS) with using of bursting configuration file. But I can not use this file with my version of BIP, I can configure bursting only vie SQL query.
Is there any solution?
Thank youMy bursting SQL query:
SELECT DISTINCT
ip.APPL_ID KEY,
'11F_Search_Prospect_Email' TEMPLATE,
'RTF' template_format,
'en-US' locale,
'HTML' output_format,
'EMAIL' DEL_CHANNEL,
ip.email PARAMETER1,
'[email protected]' PARAMETER3,
'Welcome' PARAMETER4,
'true' PARAMETER6
FROM ugrad.inquiry_prospect ip,
ugrad.correspondence f,
ugrad.address e,
ugrad.f_lookup fl
WHERE ip.appl_id = f.appl_id
AND ip.APPL_ID = e.APPL_ID
AND fl.TYPE_CODE='C'
AND ip.record_stage = 'Prospect'
AND e.COUNTRY_CODE=fl.code
AND e.table_name = 'INQUIRY_PROSPECT'
AND e.address_type =
NVL ((SELECT gg.address_type
FROM ugradadm.address gg
WHERE gg.address_type =
DECODE (f.mailpref,
'Home', 'HOME',
'Best', 'LOCAL',
'HOME'
AND gg.table_name = 'INQUIRY_PROSPECT'
AND gg.APPL_ID = ip.appl_id
AND((gg.address_type='LOCAL' AND NVL(gg.address_expir_date,sysdate)>sysdate)
OR gg.address_type='HOME')),
'HOME'
AND f.batchid = :Batch_ID
This report when bursted sends an email with the layout template as html body.
The EMAIL configuration is set with a server Port number and its host address. -
Fetching Dynamic email address from the HTML content sent in the email body
Hi All,
I have a scenario where in i have to send an html content via an email body . while doing so , i need to fetch the email address from the html content and send a mail to the specified email adrress in the html content .
How to fetch the email address from the html content.
Regards
Vinay P.Hi ,
Dynamic configuration means ...do i need to come up with a mapping which contains the To,From,Subject fields & all...so that when i click on the mail package in mail adapter ...this "To" email id will be fetched dynamically
Regards
Vinay P -
Hello,
Is it possible to send a Adobe form as a email body and not as attachment? I know it is possible with smartforms. I am interested to know if it is also possible with ADOBE forms
Dose anyone have some solution?
Thanks.Hi
The PDF file generated is available in the parameter fp_formoutput which is returned by the generated function module.
call function fm_name
exporting
/1bcdwb/docparams = fp_docparams
Z_VNDBNK = wa_vndbnk
importing
/1BCDWB/FORMOUTPUT = fp_formoutput.
The next step would be to extract this PDF and send it using BCS.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_formoutput-PDF "PDF file from function module
TABLES
binary_tab = lt_att_content_hex.
Add your PDF content lt_att_content_hex to Mail body as you do in Smartforms
You can use 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the mail or use Objects to send the mail as below.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
***Message body and subject
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
Add your PDF content lt_att_content_hex to lt_message_body
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Vendor Payment Form' ). -
Hi All,
Currently I am sending email with PDF attachement. I want to send the email body same as PDF attachement.
Can give me any FM name to onvert SMARTFORM into HTML to paste in email body.
Arun PrasadThank you for reply Krishnan.
But I believe some FM should be ther to convert SMart form to HTML content. I found SO_OBJECT_SEND FM for adding fixed text in email body which can use HTML format also.
I need another FM to convert SMARTFORM to HTML,later I can use above mentioned FM for embedded in email body.
Arun Prasad -
Email body copy created by email submit button
The body of a message created by the email submit button contains the following copy:
"The attached file contains data that was entered into a form. It is not the form itself.
The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 for more details."
How do I prevent this, or change the default copy?jimmy,
I've also followed your advice. FYI I'm using LiveCycle Designer 7.1. My only problem is that I can't use HTML markup inside the HTTP Submit Button's URL attribute.
For example, a
tag in the HTTP Submit Button's URL attribute appears as just that inside the email body copy:
. There's no line break.
The default "Submit by Email" body copy message has a paragraph break as seen below:
The attached file contains data that was entered into a form. It is not the form itself.
The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 for more details.
My question is, how can I add HTML markup in the email body copy? Can this be done with the HTTP Submit button's URL attribute or can the Email Submit Button be customized to change the above email body copy? -
Embed Livecycle form into Outlook email
Anybody know of a way to, upon clicking submit, embed my form into the actual body of an Outlook email? Accounting needs this in order to keep an audit trail on monies being transferred.
You should not embed an html form in an email. While it may work with some email clients, it will not work in most clients.
Instead you should link to the form that is located on a web server somewhere.
You could also use Google Docs to create your form and gather replies. -
Email data from form to my email
Hi,
I have a ColdFusion form; I need this form mail to my email address. I use this line of code:
<FORM METHOD=POST ACTION="mailto:[email protected]" ENCTYPE="text/plain">
Also I tried <cfform tag too.
It doesn’t give me any error but I'm not getting any email too. Even when I try this code in simple .html page it doesn’t send any email as well. Is there any problem with my computer should I change any setting or does it have any other way make it work.
I really appreciate your help.
Thanks,Hi,
The following should take care of your situation.
For example purposes, lets say your .cfm page is called: mail_form.cfm
In the body of the mail_form.cfm page, enter the following code structure.
When this page is opened in a browser the first thing displayed is your form.
After completing the form and clicking on the "Send" button, the second part
of the code structure will be processed thus sending an e-mail containing the
input content of the form.
Text inserted between <- Comment -> can be removed when coding into the
page as it is not required for functionality.
Leonard
<== Code Sample To Try ==>
<cfif IsDefined('form.btn_send')>
<=============>
<=============>
<cfmail
to="[email protected]"
from="[Enter email address]"
subject="[Enter a subject]"
server="mail.servername.com/org/net/us, etc."
username="[Enter approrpiate username - mail server]"
password="[Enter appropriate password - mail server ]">
<cfmailpart type="text"><- Comment - Sends a plain text version
<- Comment - Enter email body content --->
<- Comment - Do not use any html code at all in this section --->
</cfmailpart>
<cfmailpart type="html"><- Comment - Sends and html verson
<- Comment - Enter email body content --->
<- Comment - Can use html code here --->
</cfmailpart>
</cfmail>
<- Comment - By adding the following <cflocation> tag into the process, you reduce
and/or eliminate the chance of multiple e-mails being sent if the page
gets refreshed.
<cflocation url="mail_form.cfm?send_status=Successful" addtoken="no">
<=============>
<=============>
<cfif IsDefined('url.send_status' AND Trim(url.send_status) eq "Successful">
<=============>
<=============>
<- Comment - Enter code to let you know that the process has been processed
successfully ->
<=============>
<=============>
<cfelse>
<=============>
<=============>
<cfform
action="mail_form.cfm"
method="post"
enctype="multipart/form-data"
name="mail_form"
preloader="no"
id="mail_form"
lang="en"
dir="ltr">
<- Comment Form element code here ->
<cfinput
type="submit"
name="btn_send"
id="btn_send_mail"
dir="ltr"
lang="en"
value="Send">
</cfform>
<=============>
<=============>
</cfif> -
I've spent 10+ hours researching this, and still can't come
up with a good solution.
Q: What's the BEST WAY to translate/convert/import/export
from an HTML form input (PHP processor; i.e. text file) to either
an HTML email or a PDF email?
Online Application
HELP!You cannot do a form in an HTML email that will be filled out
in the email
body and submitted. The best you can do is to email a PDF
that gets
printed, or email a link to the webpage.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"BeausMom" <[email protected]> wrote in
message
news:fe5hgk$bus$[email protected]..
> It needs to LOOK like a form - rather than a list of
input data.
>
> This is a new task for me, so I'm just looking for the
simplest (and least
> expensive) solution. What server side script generates
an HTML email?
>
> -
How to embedded oracle report data in email body from forms?
Hi,
I am working on oracle forms and report 10g and i am new to this. I want to knw How to embedded oracle report data in email body ?
Regards
ShrutiI have uploaded a sample . This might help
http://www.alexyscorp.com/send_report_email.zip -
How can I change the order of html form data submitted to me via email?
I am having customers contact me via an html form posted on my website using the "sendtoemail" command. When I receive the data in an e-mail it is not presented in the order it appears on the web page and I can't seem to find out what dictates the order the data is presented in or how I can change it.
Anyone have any ideas on how I can make HTML form data elements appear in the order I want?
Thanks,
AndyOr find a commercial form-to-email script that is compatible with your server's configuration (PHP, ASP, Perl...) and customize it to your needs.
Formm@ailer PHP from DB Masters
http://dbmasters.net/index.php?id=4
FormToEmail.com (free & pro versions available)
http://formtoemail.com/formtoemail_pro_version.php
Tectite
http://www.tectite.com/formmailpage.php
Forms to Go from Bebosoft (script generating software)
http://www.bebosoft.com/products/formstogo/overview/
Nancy O. -
From:, To: and Subject: end up in email body - html email using sendmail
To the experts and the experienced:
I am trying to send email in html format from a Korn shell script on Solaris 10. The
email does get delivered and is displayed html-formatted, except that the From:, To: and
Subject: lines are displayed in the email body, rather than in the email header. I
would appreciate it very much if experts and the experienced could shed some light.
I use this command line to send the email:
sendmail -t [email protected] < testmail
The content of the testmail file is as follows:
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="frontier"
--frontier
Content-Type: text/plain
From: [email protected]
To: [email protected]
Subject: test html email
This is a plain-text email.
Newman
--frontier
Content-Type: text/html
From: [email protected]<br/>
To: [email protected]<br/>
Subject: test html email<br/>
<h3 align="center">This is a html email</h3>
<p>This is the paragraph.</p>
<p>Newman</p>
frontier\
The email received in Microsoft Outlook (html-formatted), looks like this:
From: [email protected]
To:
Subject:
From: [email protected]
To: [email protected]
Subject: test html email
<h3 align="center">This is a html email</h3>
<p>This is the paragraph.</p>
Newman
Two things in the email need fixing:
1. All the From:, To: and Subject: lines are treated as part of the email body and are
displayed in the email body, rather than in the header as I wanted them to.
2. The From: line in the email header is the actual sender, not the Bursar.Office as I
put in the testmail file. This can be easily done when using SMTP (telnet to port 25)
or mailx.
How do I tell sendmail/the email client to display in the intended places the From:,
To: and Subject: information that I specified in the testmail file?
Many thanks!
NewmanI searched in google and found a solution:
mailx -r [email protected] -s "test html email
content-type: text/html" john.doe < testmail
The testmail file is a pure html file with one <html></html> element. The content embedded in this element is the body of the email, with all the usual tags you would like to use: <head>, <style>, <h3>, <p>, <ul>, etc.
The trick is piggy-backing a content-type with the subject. It seems to me this it to get the content-type into the email header rather than into the body. And that was exactly the problem I had.
The command lines was executed on Solaris 10. It works.
Hope this could be useful to someone who would encounter the same problem.
Newman -
Hi,
Can someone please let me know how can I send a email with formatted body. I am planning to use HTML for formatting.
I am using the method
cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = html
i_length = conlengths
i_subject = subject ).
This is not working. However I am able to attach HTML file to the mail .
Thanks and regards,
VamsiHi Mohana,
Please use the below FM first to convert raw text to HTML and then append the html data to final FM.
Please check the below piece of code which we have used and its working.
Header record for converting to HTML
ls_header-tdname = zemailtxt.
ls_header-tdspras = 'E'.
ls_header-tdid = 'ST'.
ls_header-tdobject = 'TEXT'.
ls_header-tdstyle = 'system'.
FM to convert SAP script to HTML
CALL FUNCTION 'CONVERT_ITF_TO_HTML'
EXPORTING
i_header = ls_header
TABLES
t_itf_text = lt_lines
t_html_text = lt_html
EXCEPTIONS
syntax_check = 1
replace = 2
illegal_header = 3
OTHERS = 4.
REFRESH gt_content.
Populate email body to an internal table
LOOP AT lt_html INTO ls_html.
lwa_content = ls_html-tdline.
APPEND lwa_content TO gt_content.
CLEAR lwa_content.
ENDLOOP.
Populate the packing details of Mail body
CLEAR : gv_lines.
DESCRIBE TABLE gt_content LINES gv_lines.
lwa_objpack-head_start = 1.
lwa_objpack-head_num = 0.
lwa_objpack-body_start = 1.
lwa_objpack-body_num = gv_lines.
lwa_objpack-doc_type = 'HTM'.
APPEND lwa_objpack TO lit_objpack.
-- Some code for header and doc size ..
*-- FM for sending email to NERC Team,
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = gs_doc_chng
put_in_outbox = 'X'
sender_address = lv_sender_mail
sender_address_type = lv_add_type
commit_work = gc_x
TABLES
packing_list = lit_objpack
contents_txt = gt_content
receivers = gt_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
Maybe you are looking for
-
Why won't my iphone 3gs charge even though it is plugged in?
Hi guys, so I've had my 3gs for nearly 2 years. A couple of weeks ago I noticed that charging it wasn't going easy. When my iphone shuts down from no battery life and I plug it in to charge, it charges enough to turn itself back on, but when it event
-
To get details after second list in interactive report
hai abap experts, i got a problem, i have written acode in which 3rd list is not executing how to write code for 3rd list(my 3rd list is to get item details by call transaction 'me23') i'll send u all my code lz check n help out. TABLES : EKKO,
-
This.submitForm fails to download target document
after some probs with certificate installation (http://www.adobeforums.com/webx/.59b87b22/3) I can now successfully submit form information via this.submitForm in a Linux (Ubuntu) environment. I had a problem where the following was displayed: "Canno
-
Repeated dyld errors reported in sh.crash.log -- how fix?
On trying to locate where my spare disk space on my boot drive had gone , I found ~user/Library/Logs/CrashReporter had a 274Mb sh.crash.log file...! This seems to entirely consist of repeated dyld error messages (see below). Can anyone suggest a culp
-
Message Mapping - JDBC to IDoc
Hi, I trying to map the resultset from a JDBC adapter (sender) to Inbound IDoc into SAP. I have problems with message mapping and after reading through a number of threads, I followed the following steps: 1. Download the IDoc definition as XSD. 2. Ch