Adding the send email function on a form.

Hey,
This has been bugging me lately. I have tried lots of methods
to try and get this form to send to a specified email, yet I cannot
get my head around it. I tried integrating PHP, it worked...to some
extent. Problem was that the application was not defined as a form
and the email sent was all screwed up ( no titles and shizzles ).
Also, I had to add validators to the form, so I had to start from
scratch again.
Here is the current form code.
<?xml version="1.0" encoding="utf-8"?>
<!-- validators\FullApp.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.events.ValidationResultEvent;
private var vResult:ValidationResultEvent;
private function validateAndSubmit():void {
vResult = fNameV.validate();
if (vResult.type==ValidationResultEvent.INVALID)
return;
vResult = lNameV.validate();
if (vResult.type==ValidationResultEvent.INVALID)
return;
]]>
</mx:Script>
<mx:Model id="formInfo">
<formData>
<name>
<firstName>{fNameInput.text}</firstName>
<lastName>{lNameInput.text}</lastName>
</name>
<phoneNum>{phoneInput.text}</phoneNum>
<email>{emailInput.text</email>
</formData>
</mx:Model>
<mx:StringValidator id="fNameV"
required="true"
source="{fNameInput}"
property="text"/>
<mx:StringValidator id="lNameV"
required="true"
source="{lNameInput}"
property="text"/>
<mx:PhoneNumberValidator id="pnV"
source="{phoneInput}"
property="text"/>
<mx:EmailValidator id="emV"
source="{emailInput}"
property="text"/>
<mx:Form x="271" y="25">
<mx:FormItem label="First name">
<mx:TextInput id="fNameInput"/>
</mx:FormItem>
<mx:FormItem label="Last name">
<mx:TextInput id="lNameInput"/>
</mx:FormItem>
<mx:FormItem label="Phone">
<mx:TextInput id="phoneInput"/>
</mx:FormItem>
<mx:FormItem label="Email">
<mx:TextInput id="emailInput"/>
</mx:FormItem>
</mx:Form>
<mx:Button label="Submit"
click="validateAndSubmit();" x="373" y="195"/>
</mx:Application>
I know I have to add some sort of HTTPService and then
connect it to a PHP form sender. But how? I have searched high and
low and have yet to find a solid answer with some good code that
will work with most forms.
Thanks a lot.
Kindest regards,
David

Have you checked out the RIA Codes tutorial at http://www.riacodes.com/flex/create-an-email-form-in-flex-with-php/? They show how to do this, I'm pretty sure.

Similar Messages

  • Font size issue with the email functionality of infopath form

    Hi,
    We have a SharePoint list created and customised the form to send the form via email using email functionality in infopath form.
    We have made the font size of the form fields( rich text box) to 11. But it is showing as 10 in email. Also for a text box we set the font size to 14. But it is 13.5 in the email.
    Could anyone please let me know how to fix this issue?

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/afbd9fc3-b8d3-4ef9-a8bf-9cb136d12039/formatting-problem-with-email-from-an-browser-enabled-infopath-2010-form-in-sharepoint-2010?forum=sharepointcustomizationprevious
    Yes, this is normal. Forms Services has to convert the form to an aspx page, and things get lost in translation when this gets submitted via email.  My workaround has always been to set static widths to columns/controls, but you said that didn't work
    for you?  It's always worked for me.
    https://go4answers.webhost4life.com/Example/infopath-send-form-email-162481.aspx
    http://www.formotus.com/15413/blog-infopath/making-the-most-of-email-submit-with-infopath-and-formotus-forms

  • Send Email from approval task form

    In my reusable workflow, I have added an approval action. Everything works perfectly. What I want is - When approver comes to approval form, he should be able to send notification email to the initiator (From that form) that he has started working on that document.
    What I have tried - I have added a button clicking on which will submit the form to initiator. 
    But it fails. possible reason - when I create a data connection in workflow's infopath form to submit form as email, I am getting following warning
    "Domain trust form templates cannot be sent as email attachments. to fix this problem, modify the form option to change the security level of form template to restricted".
    I also tried to update status field and wait for it to changes in workflow and send an email from sp designer workflow. it didn't work.
    Please help or suggest any other possible way to achieve this functionality (Send Email from approval task form to initiator).

    Hi mry,
    I could reproduce on my SharePoint 2013 on-premise based on your another
    post.
    Based on the the following article, SharePoint workflow cannot use the InfoPath form in restricted mode which doesn't allow the data connection, but as your image warning message shows sending InfoPath form as mail attachments will need restricted level.
    http://msdn.microsoft.com/en-us/library/office/ee526352.aspx
    You can consider to send a mail to initiator in "Whe a Task Completes" step when you click button approved/rejected, and construct the current task form link format as follow,
    http://sp/_layouts/15/WrkTaskIP.aspx?List=WorkflowTasksListGUID&ID=[%Current Task:ID%]
    Thanks
    Daniel Yang
    TechNet Community Support

  • Is there a way to disable 'Save as' and 'Send Email' function in Acrobat XI?

    Hi,
    Is there a way to disable 'Save as' and 'Send Email' function in Acrobat XI?
    Thnx in advance.

    I would hope there would be no way to disable Save AS that would reduce the applicationss capability. What are you trying to prevent happening?

  • TS2446 i cant remember the answers to my security questions.  i have reset my password and added the recovery email account but still cant figure out how to purchase new content. it asks me the same security questions. how do i fix this?

    i cant remember the answers to my security questions.  i have reset my password and added the recovery email account but still cant figure out how to purchase new content. it asks me the same security questions. i also have a temp pin. how do i fix this?

    If you've just added an address to your account then it will be an alternate/secondary email address, a rescue email address can only be added by answering 2 of your security questions. If you already had one on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email addressthen you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • HT4191 how do I not sync notes with my email? I have a business email on my iphone as well as his iphone. Now all of my notes are on his phone, and all of his notes are gone. We have never adjusted any settings, I only added the shared email account to hi

    How do I not sync notes with my email? I have a business email on my iphone as well as my husbands iphone. Now all of my notes are on his phone, and all of his notes he previously has on his iphone are gone. We have never adjusted any settings or hooked it up to itunes, I only added the shared email account to his phone. Help???

    Hi StoneLeadyFarms,
    Thanks for visiting Apple Support Communities.
    It sounds like notes on your devices may have synced when the email account was added, as described here:
    iOS: Syncing Notes
    http://support.apple.com/kb/HT4191
    Notes are associated with an IMAP email account or iCloud account. To sync Notes, enable Notes for each account in Settings > Mail, Contacts, Calendars or Settings > iCloud.
    You can stop syncing notes by tapping Settings > Mail, Contacts, Calendars or Settings > iCloud, tapping the email address that you added, and switching Notes to the off position.
    Additionally, if your husband has backed up his iPhone to iTunes or iCloud, the steps in this article can help with recovering the lost notes from his device:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Best Regards,
    Jeremy

  • Problem with Adobe Send Email functionality

    I have come across an issue in Adobe Reader 9 where if a PDF doucment loads with an IE frame, and you click the 'Send Email' button, the subject line is blank.
    Example URL: http://sc.openoffice.org/excelfileformat.pdf
    On clicking the Send Email button -> Send Copy
    Does anyone know a workaround to get the subject line populated?
    In addition, with previous versions of Abode (6,7,8) the subject line defaults to the name of the PDF instead of the PDF title? Is there a way of changing this?
    Any help would be most appreciated.

    I'm sorry to hear that you're having a problem with sending your files through Adobe Send.  Can you provide more details?
    What type of file are you sending?
    When you download the file yourself, is it blank?
    Are all recipients having the same problem?
    Do the recipients get a Preview of the file?
    Are they seeing the blank document as a Preview as well as after downloading?
    Would it be possible for you to send the file to me through Adobe Send?  I will provide you with my email address in a Private Message.

  • What would happen if I added the itouch email to the add accounts on my iphone and confirmed that email address? Would only my iphone get both (itouch and iphone) messages? or will my itouch then also get my iphone messages as well??

    What would happen if I added the itouch email to the add accounts on my iphone and confirmed that email address? Would only my iphone get both (itouch and iphone) messages? or will my itouch then also get my iphone messages as well??

    Thank-you for clarifying third party and for pointing out the potential problems.
    i will either have my phone unlocked by the carrier or get my phone service from them. switching carriers is not essential.
    Thanks agin.
    Cheers!

  • I can't sent an email to a large group of people. The sending email surface on every time I turn on my computer MAC PRO. How can I delete it? Why it happens? How to prevent it to happen again? Thank you. Danielson

    I can't sent an email to a large group of people. The sending email surface on every time I turn on my computer MAC PRO. How can I delete it? Why it happens? How to prevent it to happen again? Thank you. Danielson (Danicolenira)

    What do yo mean by " The sending email surface on every time"?

  • Does Authenticated SMTP Ensure that the Sender Email Address Matches the Username/password Entered?

    Does Authenticated SMTP ensure that the sender email address
    matches the username/password entered?
    <P>
    Not by default. However, in netscape.mail.conf, you can set
    RewriteFromUsingAuth and/or RewriteSenderUsingAuth to "Yes"
    which will rewrite the header "From:" and/or "Sender:" to be
    the authenticated sender of the message.
    <P>
    On NT, the keys are in the registry under
    HKEY_LOCAL_MACHINE\Software\Netscape\Messaging Server\3.0\Dispatch\Config

    I found the answer.
    Apple has turned on an app-specific password for iPhoto and other Apple apps. It's located in the Apple ID management section under Passwords and Security.
    As soon as I entered that new generated password in iPhoto I was able to send a pic with my iCloud.com email address.
    Now I know where to go. Thanks for your help.

  • Setting the 'Return-Path' of emails sent using the send email behaviour

    Hi,
    How do I set the 'Return-Path' of emails sent using the send email behaviour? I am having troubles because the emails sent from my page are being filtered out as spam when they should be coming through. the text is the following (it is the notification of an e-card to the recipient):
    Dear Bart
    We've decided this year to share our holiday greetings while also showing our commitment to protect the planet. Since it takes 24 mature trees to
    produce one ton of greeting cards, this e-card shares our holiday wishes with both you and future generations.
    Please follow the link below.
    Best Wishes,
    John
    http://www.jdgcsfiles.com/_ecards/viewcard.php?ID_cnt=297
    I suspect that it has something to do with the return path setting.
    Can anyone help me on this one and get it through the spam filters of most email clients?!
    Thanks,
    NIk

    Hi Nik,
    so far the only "flagged as spam" reason I know of is, that ADDT curreently misses to insert the current date/time -- please try the fix mentioned in the thread http://www.adobeforums.com/webx/.3c034953/5 and see if it helps
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Designer8..The Send Email button function gives an Error

    I created a name and address form and a dropdown combo in AA9 then saved and closed it.
    I then opened it in designer 8 and placed a "send by Email" button and closed it.
    I then opened the pdf file in Reader 9 (as a user would) Then filled out the form and clicked the "send by Email" button (sent to myself) it arrived as an .xml attachment and would not open....Just gave this error message
    Adobe Reader could not open 'poolcuetip_data(1).xml' because it is either not a supported file type or because the file has been damaged (for example. it was sent as an email attachment and wasn't correctly decoded).
    Is there a Fix for this error (tried it several times)
    OR
    Can I put a send email button on the Acrobat form without having to open in Designer ? If so How ??????
    TIA
    Tony

    There are many restrictions on submit by email and they vary by the code used to perform the submit. If you use the builtin "mailXXXX" method the user must have Windows and and a MAPI enabled email client. And if you use the URI "mailto" format the user with Reader must be viewing the PDF from within a web browser. And then you have the timing problems with slow computers or larger PDF forms. And this does not even start to cover email filters, identity issues and son on.
    If you can use the sumbit to server script.

  • The Send Email button function gives an Error

    Not sure what forum to post this in as I did some in Acrobat 9 and some in Designer 8.
    I created a name and address form and a dropdown combo in AA9 then saved and closed it.
    I then opened it in designer 8 and placed a "send by Email" button and closed it.
    I then opened the pdf file in Reader 9 (as a user would) Then filled out the form and clicked the "send by Email" button (sent to myself) it arrived as an .xml attachment and would not open....Just gave this error message
    Adobe Reader could not open 'poolcuetip_data(1).xml' because it is either not a supported file type or because the file has been damaged (for example. it was sent as an email attachment and wasn't correctly decoded).
    Is there a Fix for this error ?? (tried it several times)
    OR
    Can I put a "send email button" on the Acrobat form without having to open in Designer to do it.? If so How ??????
    TIA
    Tony

    You can create a button with Javascript to do what you want BUT it will
    not be reliable since:
    1) Some people use a web browser to receive and send email. Your button
    will not work.
    2) Some people will use a non-supported email client. For example, on
    the Mac, my email program Mailsmith won't work. Neither will
    Thunderbird. On the Windows side, my email client is Agent. It won't
    work either.
    It is nice that Adobe offers the possibility of using some email
    clients, BUT since it doesn't always work, it is an invitation to
    frustration.
    It is better to post the form on the web and use a script to get the
    information on the form. If you want, the script can email you the results!
    Mike

  • How to maintain format in html email using the send email....

    Does anyone know how to maintain the format in a HTML email using the Send E-mail To Recipients From Recordset behavior?
    When text only is selected instead of HTML text on the Options tab the format of the input is maintained, but when HTML text is selected the email has no format. I have tried to use a replace \n with
    as I have done when hand coding PHP, BUT I am trying to learn to use ADDT. I also tried to use a Custom trigger without success.
    Help!

    Hi Dave,
    in my snippets folder I have this thing which I found on the old MX Kollection forums and which was suggested by the Interakt staff:
    //trigger SendEmail (write content)
    function Trigger_SendEmail(&$tNG) {
    ob_start();
    include("myDynamicContentFile.php");
    $mailcontent = ob_get_contents();
    ob_end_clean();
    $emailObj = new tNG_Email($tNG);
    $emailObj->setTo("[email protected]");
    $emailObj->setFrom("[email protected]");
    $emailObj->setSubject("A new User was added");
    $emailObj->setContent($mailcontent);
    $emailObj->setEncoding("UTF-8");
    $emailObj->setFormat("text");
    $emailObj->setImportance("Low");
    return $emailObj->Execute();
    //trigger SendEmail (write content)
    The only modification is the possibility to include a dynamic PHP file rather than some static text or a HTML file which will also render textarea contents on one line:
    ob_start();
    include("myDynamicContentFile.php");
    $mailcontent = ob_get_contents();
    ob_end_clean();
    That said, it should be possible to define all the "rendering" options in the external PHP file, what would mean to apply the nl2br function there, e.g.: nl2br($row_queryname['columnname'])
    What I´m not sue about is, if you will have to strip the external file´s head and body tags before it´s getting included -- however, please give this a try and tell us how it worked.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • HT5622 I've been trying to reset my security questions lately because I've forgotten my answers.. But when I try to reset by clicking the send email thing, the email won't come. What do I do?

    I really need help, because I've recently bought a ITunes card and I'm trying to buy some songs but it won't let me cause I need my security answers so they know it's me but I have forgotten my answers and tried to reset the questions by clucking on 'Send email to reset' but I did it so many times and hasn't come at all!! I done it a few weeks ago and no email..
    What do I do?

    You need to contact Apple. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (89909)

Maybe you are looking for