Email return data formating

hi all,
I'm building a basic "contact me" email return page, and it's
working...at least partially.
(that's the good news)
the "bad" news is..
when I fill in the above blanks in the swf, and click send,
it opens my email ("mail"-mac) and populates my correct email
address, but then puts ALL the information, not just the subject
line info, in the subject window. Is there a way to tell the code
to put the subject line "jb3_contact" in the subject of the email,
and then "tab" to the body area of the email to dump their name,
email, and message?
what my email subject line looks like: (what I typed into the
swf fields)
Subject: jb3_contact:= Name: jim Email: jimsbook.com Message:
hey dork...
I guess I'd like the subject line to be "jb3_contact" ONLY.
and their message info in the "body" area of their email.
like:
Name: Jim
Email: jimsbook.com
Message: hey dork...
text field instances:
name [ iptxt_name ]
email [ iptxt_email ]
msg [ iptxt_msg ]
I'd appreciate any thoughts...
best,
pow
following code on the "send" button:
[code]//email send button info, for "contact me" area
on (press) {
// these statements simply read the data from the input
fields
// and print them to the output window for debugging
trace(this.iptxt_name.text);
trace(this.iptxt_email.text);
trace(this.iptxt_msg.text);
// save the return email address
returnEmail = this.iptext_email.text;
// create an empty string variable to store the data
urlData = "";
// assemble the data from the fields into the new variable
urlData += " Name: "+this.iptxt_name.text+newline+" ";
urlData += " Email: "+this.iptxt_email.text+newline+" ";
urlData += " Message: "+this.iptxt_msg.text+newline+" ";
// print url data to output window for debugging
trace(urlData);
// send email using user input data
getURL("mailto:[email protected]?subject=jb3_contact="+
urlData);
//>>>>>>>>>>>>>>[/code]

hello kglad,
thank you very much for this, adding your line alone with one
other addition did exactly what I needed.
other added line:
"Add another variable(body in this case) in the mailto and
use "%0A" instead newline"
(see code below)
...that did exactly what your code did, with basically a
carriage return, between for readability.
the email send executed perfectly:
subject (in the subject line, all by itself)
and then:
"Name: Jim lastName
Email: [email protected]
Message: hey Jim how come you're such a dork? "
all stacked, and clear in the body area.
Thank you very much kglad.
best,
Pow.
code below is to create a return email from a "contact me"
form you build in flash.
input text fields have instance names of as follows:
name ( iptxt_name )
email ( iptxt_email )
message ( iptxt_msg )
last line of code just has my email I want it to go to, along
with what I want in the subject line "jb3_contact"
hope this helps someone else.
<final code>
//email send button info, for "contact me" area
on (press) {
// these statements simply read the data from the input
fields
// and print them to the output window for debugging
trace(this.iptxt_name.text);
trace(this.iptxt_email.text);
trace(this.iptxt_msg.text);
// save the return email address
returnEmail = this.iptext_email.text;
// create an empty string variable to store the data
urlData = "";
// assemble the data from the fields into the new variable
urlData += " Name: "+this.iptxt_name.text+"%0A";
urlData += " Email: "+this.iptxt_email.text+"%0A";
urlData += " Message: "+this.iptxt_msg.text+"%0A";
// print url data to output window for debugging
trace(urlData);
// send email using user input data
getURL("mailto:[email protected]?subject=jb3_contact&body="+
urlData);
<end_code>

Similar Messages

  • Date formating error

    select last_day(trunc(to_date(systimestamp,'YYYYMMDD HH24:MI:SS:FF4'))) from dual;
    it return date format not recognized.what is wrong in this query.

    1.) Trunc on systimestamp works for me, what error do you get?
    SQL> select trunc(sysdate) from dual;
    TRUNC(SYSDATE)
    2006/09/05 00:00:00
    1 row selected.
    Elapsed: 00:00:00.00
    SQL> select trunc(systimestamp) from dual;
    TRUNC(SYSTIMESTAMP)
    2006/09/05 00:00:00
    1 row selected.
    Elapsed: 00:00:00.00
    SQL>
    2) Why do you want to format the systimestamp to YYYYMMDD HH24MISS first and then trunc the time of it? Why don't you just format the systimestamp to YYYYMMDD only?
    Robert

  • Get date format given a locale

    Hello All
    if i have a Locale how can i extract date format attached to the Locale given?
    Is there any api support . i do not want to use simpleDAteFormatter or such classes....
    method should return date format eg "M/d/yyyy" for US local?
    can any one help
    thanks
    prash

    Primarily why do u not want to use the SimpleDateFormat class or related classes ? It would make formatting pretty easy, for e.g. i'm using the DateFormat class to give you a rouch indication of the formatting -
    Date dt = new Date();
    DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US);
    String formattedDate = df.format(dt);
    System.out.println("Formatted date: " + formattedDate);

  • Error with the data format in the TXT file, sending as an Email attachment

    Hi all,
    I have an problem in the data formating in the TXT file while sending as an attachment via an email by using the FM "SO_DOCUMENT_SEND_API1".
    For eg:
    The data in the TXT file is looking like as follows:
    0 0 0 0 2        L O U D S P E A K R   O T H E R   3 8 W h i t e                  0 0
    0031  L O U D S P E A K R   O T H E R   3 8 Black                               0 000
    38    L O U D S P E A K R   O T H E R   3 8 Brown                                  0 00040
    L O U D S P E A K R   O T H E R   3 8 Brown                                         0 00042
    and so on
    But it should come as :
    0 0 0 0 2  L O U D S P E A K R   O T H E R   3 8 W h i t e
    0 0 0031   L O U D S P E A K R   O T H E R   3 8 Black
    0 00038    L O U D S P E A K R   O T H E R   3 8 Brown
    0 00040    L O U D S P E A K R   O T H E R   3 8 Brown
    All the internal tables are correctly filled.
    The code is as follows:
    gwa_objtxt = 'Please find attached DATA EXTRACT Sheet'.
      append gwa_objtxt to git_objtxt.
    describe table git_objtxt lines gv_cnt.
      clear git_doc_data.
      read table git_objtxt index gv_cnt.
      git_doc_data-doc_size = ( gv_cnt - 1 ) * 255 + strlen( gwa_objtxt ).
      git_doc_data-obj_langu = sy-langu.
      git_doc_data-obj_descr = lv_mtitle.
      append git_doc_data.
      clear git_packing_list.
      refresh git_packing_list.
    git_packing_list-transf_bin = space.
      git_packing_list-head_start = 1.
      git_packing_list-head_num = 0.
      git_packing_list-body_start = 1.
      git_packing_list-body_num   = gv_cnt.
      git_packing_list-doc_type = 'RAW'.
      append git_packing_list.
      Clear : gv_cnt.
      Describe table git_objbin lines gv_cnt.
      git_packing_list-transf_bin = 'X'.
      git_packing_list-head_start = 1.
      git_packing_list-head_num = 1.
      git_packing_list-body_start = 1.
      git_packing_list-body_num = gv_cnt.
      git_packing_list-doc_type = 'TXT'.
      git_packing_list-obj_descr = 'ATTACH.TXT'.
      git_packing_list-obj_name = 'book'.
      git_packing_list-doc_size = gv_cnt * 255.
      APPEND git_packing_list.
      clear git_receivers.
      refresh git_receivers.
      git_receivers-receiver = gv_eid.
      git_receivers-rec_type = 'U'.
      append git_receivers.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = git_doc_data
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
        TABLES
          PACKING_LIST               = git_packing_list
          CONTENTS_BIN               = git_objbin
          CONTENTS_TXT               = git_objtxt
          RECEIVERS                  = git_receivers
        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.

    please give the code of
    contents bin =  git_objbin " how  this is getting populated.
    0 0 0 0 2 L O U D S P E A K R O T H E R 3 8 W h i t e <b>0 0</b>
    0031 L O U D S P E A K R O T H E R 3 8 Black
    0 000
    38
    from this im not able to understand is this over population or concatenation problem
    y dont u make a append to the final table
    like
    data : begin of itxt occurs 0, ,
    s1(132) type c ,
    end of itxt.
    loop at itab.
    itxt-s1+0(4) = itab-f1.
    itxt-s1+4(6) = itab-f2.
    itxt-s1+10(8) = itab-f3.
    itxts1+18(4) = itab-f4.
    append itxt.
    clear itxt.
    endloop.
    exchange this to the contents bin of hte Fm .
    regards,
    vijay.
    can u please mail the text file and the expected o/p to my mail id [email protected]  so that i can see the same from the data provided i m not able to check the result properly .

  • Email Submit and Data format

    I have been reviewing the following document and have 1 question.
    http://www.adobe.com/devnet/livecycle/articles/lc_understanding_submit_tip.pdf
    Is there a way to customize the data format using a submit button?
    I may have the requirement to have end users submit data through an email submit button, but the client wants the data in the format Fieldname [delimiter of some sort] Fieldvalue, is this possible?  Would you need to manually edit the xml in the form to do this? Any pointers would be appreciated.
    The only options I see in the attributes of the email submit button are:
    XDP
    XML
    PDF
    URL encoded data
    Thank you,

    Hi Paul:
    Currently we are using Acroforms and would use these forms originally.
    In the future, this would be used with LiveCycle so it would probably be an XFA/LiveCycle Designer form. I believe in this case, the best solution would be to do this through a submit using Form Server components of LCES.
    Thank you,
    Working for a Living...

  • Date format in Email notifications

    Service Desk 7.01
    Windows 2008
    MS SQL DB
    When the notification emails are sent out to the user, the date format is in US format (mm/dd/yyyy) and we would like it to be Aus format (dd/mm/yyyy).
    I have set the Default Date Style under Setup > Customer and in Setup > Email > Templates Date Style at the bottom of the window, but it is still showing as the US format.
    Is there another place that it needs to be changed?

    Originally Posted by Madgwicks
    Service Desk 7.01
    Windows 2008
    MS SQL DB
    When the notification emails are sent out to the user, the date format is in US format (mm/dd/yyyy) and we would like it to be Aus format (dd/mm/yyyy).
    I have set the Default Date Style under Setup > Customer and in Setup > Email > Templates Date Style at the bottom of the window, but it is still showing as the US format.
    Is there another place that it needs to be changed?
    It is working in my setup. I modified the date format in setup>Email >Templates and selected Email Summary Templates and modified the format in Date Style. Attach more screen shots.

  • Email date format

    I have a query regarding the default date format in regard to email messages.
    When sending email the message from my pc appears to the recipient the date format is for example:
    From: me <************@btinternet.com>
    To: Someoneelse <**********@btinternet.com>
    Sent: Sunday, 16 February 2014, 10:28
    Subject: Re: subject.
     When sent from my ipad it is
    From: me <************@btinternet.com>
    To: Someoneelse <**********@btinternet.com>
    Sent: Sunday,  February 16 2014, 10:28
    Subject: Re: subject
    When sent from my ipad it is
    I have an account with my company the date format for this account is always:
     From: me ************@company.org
    To: Someoneelse <**********@company.org.com>
    Sent:16 February 2014, 10:28
    Subject: Re: subject
    What determines the date format? Is it the pc or ipad or are these formats set by the provider?
    Robin

    I think it is set by your device and I don't think you can change the date format in your ipad from US to UK.

  • Date format in workflow email

    Hi All,
    I'm having issues with the date format within an automated WorkFlow email. For Leads, users in the UK are entering the 'call back date' field as '26/06/2009' and in the email it seems to base this on the server locale appearing as '06/26/2009'. Can we format this within the code?
    Thanks
    Oli @ Innoveer

    I have just experienced this and used the following to convert the date to Australian format for my workflow email
    %%%Mid([<IndexedDate0>],4,2) + '/' + Left([<IndexedDate0>],2) + Mid([<IndexedDate0>],6,Len([<IndexedDate0>]))%%%
    this gives format DD/MM/YYYY
    hope this helps,

  • How to parse system date to return Date and in yyyy-MM-dd format?

    DateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-dd");
    java.util.Date date = new java.util.Date ();
    String dateStr = dateFormat.format (date);
    try{
    Date date2 = dateFormat.parse (dateStr);
    }catch(ParseException pe){
    pe.printStackTrace();
    Actually, After parsing the date from string, again it is converted into dfault format i.e. 21 Jan 00.00.00 etc...
    But I want this parsing date in yyyy-MM-dd format and again to return date.
    Can anybody tell me how to do this?

    DateFormat dateFormat = new SimpleDateFormat
    ("yyyy-MM-dd");
    java.util.Date date = new java.util.Date ();
    String dateStr = dateFormat.format (date);
    try{
    Date date2 = dateFormat.parse (dateStr);
    }catch(ParseException pe){
    pe.printStackTrace();
    Actually, After parsing the date from string, again
    it is converted into dfault format i.e. 21 Jan
    00.00.00 etc...
    But I want this parsing date in yyyy-MM-dd format and
    again to return date.
    Can anybody tell me how to do this?A Date object does not have a format, it represents a moment in time. You can use SimpleDateFormat to return a String representing that moment in time in many formats - this does not change the Date object to have that format (which it cannot since it does not contain a format).

  • How do i change the date format on an email?

    When my emails load the date shows as mm/dd/yyyy as this is not a format i use how do i change it to dd/mm/yyyy ?
    I had to reinstall Thunderbird and the date problem has just started from the reinstall.
    Thank you for your help.

    TB uses the short date format as set in your OS control panel, e.g. in Windows, Region and Language. There is also an add-on:
    https://addons.mozilla.org/en-us/thunderbird/addon/configdate/
    http://kb.mozillazine.org/Date_display_format

  • Using a submit email button and data format

    I have been reviewing the following document and have 1 question.
    http://www.adobe.com/devnet/livecycle/articles/lc_understanding_submit_tip.pdf
    Is there a way to customize the data format using a submit button?
    I may have the requirement to have end users submit data through an email submit button, but the client wants the data in the format Fieldname [delimiter of some sort] Fieldvalue, is this possible?  Would you need to manually edit the xml in the form to do this? Any pointers would be appreciated.
    The only options I see in the attributes of the email submit button are:
    XDP
    XML
    PDF
    URL encoded data
    Thank you,

    I have discussed this with Lori DeFurio, past Acrobat (and PDF) Developer Evangelist, and most recently, responsible for Customer & Field Enablement, who has informed me that this is possible and directed me to these forums for a resolution.
    Has anyone actually accomplished this?  Any information is appreciated.
    Thank you,

  • Trigger returning date in diffrent formats

    We just reticently received a update to an .net application from a vendor. When our client machines (Windows XP) run the app we receive 2 different date formats returned from an post insert table trigger. The correct format is 'DD-MON-YY' in which a couple machines still return and the others return the format 'YYYY-MM-DD HH24:MM:SS'. I've tried setting the NLS_Date Format with no success. Any suggestions?

    tell your vendor not to use the machine date instead let them use Sysdate from the database. it is more safer compare to client machine date.
    Let them use the "SELECT sysdate FROM dual".
    urs,
    Reynald

  • Error in date format returned in FM: RH_READ_OBJECT

    Hi All,
    I found an error in date format returned in field OBEG of FM: RH_READ_OBJECT.
    It returns: 20112804 and it should be 20110428 (this is Sap internal date format)
    It is strange because it does not happen all the time just in some particular scenarios.
    Do you have any idea about this issue? Is there any note related to this?
    Below a link to a debug screenshot:
    [http://tinypic.com/view.php?pic=1zegppt&s=7]
    Thanks!

    Hi Viji and thanks for your answer!
    I checked checked user default settings and we have the same date format as anther user who is working ok.
    Also I do not think it is a user settings related error because this is the result returned by a standard FM in debug mode so the value in the screenshot should be in internal Sap format which is: YYYYMMDD.
    Any other idea on this?
    Thanks!

  • Trigger returning different date formats.

    Posted from Windows forum:
    We just reticently received a update to an .net application from a vendor. When our client machines (Windows XP) run the app we receive 2 different date formats returned from an post insert table trigger. The correct format is 'DD-MON-YY' in which a couple machines still return and the others return the format 'YYYY-MM-DD HH24:MM:SS'. I've tried setting the NLS_Date Format with no success. Database is Oracle 8i. Any suggestions?

    CREATE TABLE X.ACCESS_LOG
    ACCESS_LOG_ID NUMBER NOT NULL,
    SYS_ID NUMBER NOT NULL,
    DATE_IN DATE NOT NULL,
    DATE_OUT DATE NOT NULL,
    INSTRUMENT_ID_IN NUMBER,
    INSTRUMENT_ID_OUT NUMBER,
    STATION_IN VARCHAR2(20),
    STATION_OUT VARCHAR2(20),
    AREA_IN VARCHAR2(25),
    AREA_OUT VARCHAR2(25)
    CREATE OR REPLACE TRIGGER XFER_TO_TRACKING
    AFTER INSERT
    ON x.ACCESS_LOG
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
         v_qtr Number;
    BEGIN
    SELECT qtr
    INTO v_Qtr
    FROM X.QTR_SET
    WHERE to_date(:new.Date_In,'dd-mon-yy') BETWEEN first_date AND last_date;
    Insert (....)
    END/
    Here is the basic code for table and trigger. When the trigger fires the value for :new.date_in will come over in the format of "dd-mon-yy", which we have been looking for, or "YYYY-MM-DD HH24:MM:SS" which just came up with this new release depending on which station is used.

  • Receiving email attachments in winmail.dat format

    i am receiving almost all email attachments in winmail.dat format, which cannot be opened. the same attachments are being received on other laptops in the same sent format.what could be the problem?

    What a Winmail.dat File Is, and How to Open It - NYTimes.com

Maybe you are looking for