Email script adds a ghost address in email client

I am using the following script to send an attached PDF back to my client when their customers complete and submit the form. Everything works well, except that it lists the email address twice in the "to" field (the second is not a complete address so it fails).
the result is that one email goes through as expected, but the customer also receives an "undeliverable" notice in their inbox.
has anyone seen this before? or can you see the problem with the script?
Here is the script:
var iVar = 0;
var oDoc = event.target;
if (iVar = 0)
oDoc.mailDoc({
bUI: true,
cTo: "[email protected]"
cSubject: "Questionnaire",
cMsg: "Seller Questionnaire",
thank you for your help.
Brian

I have not seen that before can you post the form to [email protected] and I will have a look.

Similar Messages

  • Emailing documents adds unwanted text to the email

    Hi all
    We have just implemented SAP email through Exchange server, on a 8.81 upgrade, and it works fine but whenever a document is emailed it adds detail from the document, including the remarks box (as per the Data tab of the Send Message form), into a one line table in the body of the email. Our customer uses the remarks box for internal comments and although we could advise them to record these comments elsewhere eg in activities this is the easiest and most visible place for this purpose and they've been using it for years. It seems a bit inflexible to hard code this sort of information given that we can control other outputs quite easily. Does anyone know of a way to remove or modify the table content?
    Thanks

    Using the Outlook client connection resolved this.

  • Can Mail add the date of an email and a link to the email in Address Book?

    I seem to remember back in the days when I used Entourage, that there was a feature that allowed me to have the email program add a date and link to the email in the address book file for the email recipient. Is there a script or anything that would allow that automation?
    I would like to be able to open a persons address book file and see all of the emails I sent to that person in Address Book. I know I could do a search in Mail for that address, but it would be sweet if I could have a record of all the emails sent to a given person with a link to each email directly from within Address Book.
    Am I crazy or is this something others would like? Or, am I missing a little box somewhere that I need to click somewhere?...

    What you're wanting is not a feature in any mail client, so I wouldn't hold your breath waiting for it to appear in Mail, or Address Book.
    If you want to keep track of all the emails sent to or from a particular person, you'd need to create Smart Mailboxes for all of them and rules to route Sent mail from each person's address to those respective mailboxes. If that's too much work for you, you can still do a search by name in Mail and select whether you're looking for mail sent From, or To that person and all of them will appear, except any you may have deleted.
    Mulder

  • Has anyone got a script to read a list of email addresses from a Mail message and put them into a group in Contacts?

    Has anyone got a script to read a list of email addresses from a Mail message header and put them into a group in Contacts?

    Now Tony, I know you can't hear my tone on a forum post but I was not complaining, simply stating facts . This change brought several people in my office to a grinding halt in a long established workflow that is really rather simple (and I thought was already assumed from the original post above ):
    1) Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.
    2) Open that CSV file in Excel.
    3) Copy the column of e-mail address.
    4) paste into the appropriate recipient field in Mail.
    5) Send
    If I were to complain it would be about Apple's typically opaque approach to updates. There is no granular explanation of why changes were made or even "what" changes were made.
    Complaining is futile since Apple is Apple and is unlikely to change, but sometimes it is cathartic to "shout into the void" .
    I had thought about doing something with a formula in Excel and your suggestion was simple and helpful. Again, however, it is only a workaround for a long established helpful behavior that Apple has inexplicably broken/removed in Mavericks Mail.
    I, and the other posters here, would love to have the capability back rather than have to add previously unneeded steps to our workflows.
    Ultimately we may add scripting steps to the FileMaker side to export the address lists with commas inserted already if Apple ends up having permanently removed this feature.

  • My email has changed.  Should I create a new Apple ID or add the new address as an alternate to the old account?

    I have an Apple ID that uses an old email address.  Would like to use current email.  Should I update my old ID, create a new one or just add the new address as an alternate email for the old account?  I understand there are issues with updating apps if you change your ID.  Can someone please explain the best way to set this up?

    Contact iTunes support, explain the situation & ask that they add your old apps to the download queue of your new Apple ID. If they do so(they most likely will), delete the old apps from your iTunes library & move all files to trash:
    http://www.apple.com/support/itunes/

  • When I add a contact with multiple email addresses to an email, how do I get the email to send to both addresses?

    I want to send out an email to one of the groups in my address book, but when I add the group to my email only the first email address for each contact is added.  How would I make it so Mac always adds all of a contacts email addresses to the email.

    I look at it like this, it was a solution to my problem. There is obviously something wrong with the new version. When everyone starts complaining, and some genius figures out the fix, then I will worry about the upgrade. Until then, I am fine with running 4.0. I have to disagree with you though. 6.0 is a downgrade for sure. There is a lot to be desired compared to this version. Who wants price gong, and screwed up emails. Not me. The problem is out there, and now someone needs to work on the bug fixes on this BETA version.

  • I need to change the "from" address (the "add to addressbook" address) in the first line of emails that I send. How do I do this?

    I need to change the "from" address (the "add to addressbook" address) in the first line of emails that I send so that people reply to my email alias not the address where my emails originate. How do I do this?

    So you have added a new 'Identity' to your existing email address.
    If someone sends an email using that 'other identity'
    you have a choice of where those received emails can go. they can be received into the original mail account, like a collect all in the one Inbox or perhaps sent to Local Folders, so you can see them as separate. Or you can filter on that identity to put those emails in a specific folder.
    When you REply to any incoming mail that has used that new identity email address, it will use the new identity in the Email address in FROM assuming the received email in the main mail account of which the new identity email is applied.
    This should also now offer the added identity email address as an option in the FROM drop down list. So you can easily swap when sending an email if required.
    If you want to send using your default email address to people, but want their reply to use the identity email address:
    Tools > Account Settings
    select the original email address mail account name
    Where it says: 'Reply to addresses: enter the reply to identity email address.
    click on OK
    This means when they click on 'Reply' it will auto insert the Reply-to option.
    This will work providing it is a 'Reply' to an email you sent which contains the Reply-to email address.
    If someone is not actually replying by using the Reply-to new identity email address:
    In other words they are sending you a new email using the original email address because perhaps that is the one in their address book or the one they located on a webpage etc.
    Then, when you select to Reply to that email, it will use the email address to which it was sent to in the FROM field - the original email address. Hence why you would need to select the new identity FROM in the drop down list.
    One way to get around this is set out below.
    If you do not use an identity - instead you create another existing mail account for the 'identity' email address, so you have two mail accounts for the two email addresses.
    You can move selected emails manually or perhaps using a filter to screen them from the original mail account into the newly created mail account.
    Then when you click on Reply, it will use the new mail account email address instead of the original email address.

  • My friend give me his apple id that i use to download apps and then i change its email add name and address.. now i update my iphone ios then now its asking for i cloud id and password but when i open the email add for that account its been dissabled beca

    my friend give me his apple id that i use to download apps and then i change its email add name and address.. now i update my iphone ios then now its asking for i cloud id and password but when i open the email add for that account its been dissabled because its been long time not used... what can i do to activate my iphone???
    iPhone 4, iOS 7.1

    Call Apple and ask for Account Security.

  • ICal: You must add your own card and email address in Contacts to be able to use mail alerts.

    Problems with Mountain Lion. Have never had these problems previously. Have been a mac user since 1990.
    iTunes no longer sends music to my airport express. NO FIX EXISTS !
    Now iCal every time I want to send an email alert puts up this message: You must add your own card and email address in Contacts to be able to use mail alerts.
    COME ON I HAVE DONE THIS OVER AND OVER TO NO RESULT.
    MACINTOSH WHAT ARE YOU DOING?
    UNHAPPY !

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode.  Shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac

  • You must add your own card and email address in Contacts to be able to use mail alerts. mean

    I am trying to set up notifications in Calendars. I click "custom" and choose email. I get a message"You must add your own card and email address in Contacts to be able to use mail alerts." I have my own email address entered into Contacts, but don't know what this message intends, or how to deal with it. Please advise.
    Thanks

    Thank you Eric. So easy, when you know what you're doing.
    Thanks.

  • LiveCycle ES2 - add cc to Submit via Email button

    I did find a discussion on this subject but I am unable to view the sample provided.
    I need to add a cc address to the Submit via Email button on a form designed in LiveCycleES2.
    I don't see where I can edit the script on the button.
    Any help is really appreciated.
    Thank You.

    Please check this thread- http://forums.adobe.com/message/4263770#4263770

  • Email script  problem

    Can someone help me with the script below, I can't make it to work!!!!!
    This I try to achive is after printing, to email the form as PDF.
    For Click event in a PRINT Button:
    form1.subALL.Submit.Print::click - (JavaScript, client)
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    Also into the same PRINT Button for PostPrint event :
    form1.subALL.Submit.Print::postPrint - (JavaScript, client)
    xfa.host.messageBox("You are about to Email the form\n\nThank you!","EMAIL FORM",3);
    var DropList =Drop_1.rawValue;
    var subjectbody = "?subject=" + DropList + "&body=Hello!";
    Email_Button.resolveNode("#event.#submit").target = "mailto:" + "[email protected]" + ";" + subjectbody;
    Email_Button.resolveNode("#event.#submit").embedPDF = "0";
    Email_Button.resolveNode("#event.#submit").format = "pdf";
    Email_Button.execEvent("click");
    There is also a Email Submit Button(Email_Button), HIDDEN from layout
    with Email address:[email protected]
    THANKs

    Hi Paul,
    In the console here are the only one I can see:
    Acrobat EScript Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Functions Version 9.0
    Acrobat Annotations / Collaboration Built-in Wizard Functions Version 9.0
    Acrobat SOAP 9.0
    My script works till: You are about to Email.. and then does NOT
    execute for some reason the Event Click for the Email_Button!
    I am not getting any message!
    Thanks

  • Changing email of a contact in address book

    Hey guys,
    I want to change the email of a contact in address book.
    my code is as follow.
    but somehow it doesnt work.
    do you know why?
    - (BOOL)peoplePickerNavigationController:
    (ABPeoplePickerNavigationController *)peoplePicker
    shouldContinueAfterSelectingPerson:(ABRecordRef)person {
    CFErrorRef anError = NULL;
    ABMultiValueRef email = ABMultiValueCreateMutable(kABMultiStringPropertyType);
    NSString *personEmail = [conversationHistory getReceiver];
    ABRecordSetValue(person, kABPersonEmailProperty, email, &anError);
    CFRelease(email);
    [self dismissModalViewControllerAnimated:YES];
    return NO;

    Congrats on finding a solution, David!
    Actually the code you posted would've worked except that 'multi' isn't mutable. To fix that code, just make a mutable copy before adding the "other" email info:
    - (BOOL)peoplePickerNavigationController:
    (ABPeoplePickerNavigationController *)peoplePicker
    shouldContinueAfterSelectingPerson:(ABRecordRef)person {
    CFErrorRef anError = NULL;
    ABMultiValueRef multi = ABRecordCopyValue(person, kABPersonEmailProperty);
    ABMutableMultiValueRef mutableMulti = ABMultiValueCreateMutableCopy(multi); // <-- add
    ABMultiValueAddValueAndLabel(mutableMulti, @"[email protected]", kABOtherLabel, NULL);
    ABRecordSetValue(person, kABPersonEmailProperty, mutableMulti, &anError);
    ABAddressBookSave(peoplePicker.addressBook, &anError);
    CFRelease(multi);
    CFRelease(mutableMulti);
    [self dismissModalViewControllerAnimated:YES];
    return NO;
    - Ray

  • How to send an email with an attachment to the customers email address.

    Hi friends,
    How to send an email with an attachment to the customers email address.
    the attachment will be in doc format.
    Having an Header
    the data which i am sending must be in a TABLE format
    with 5 columns.
    and each column must have a column heading
    Please guide me.
    Thanks in Advance,
    Ganesh.

    *& Report  ZEMAIL_ATTACH                                               *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  ZEMAIL_ATTACH                   .
    TABLES: ekko.
    PARAMETERS: p_email   TYPE somlreci1-receiver .
    *Here get the values of mail from the table adn6 for the customer address.
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
      ebeln(10) TYPE c,
      ebelp(5)  TYPE c,
      aedat(8)  TYPE c,
      matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
      Retrieve sample data from table ekpo
      PERFORM data_retrieval.
      Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'DOC'
                                          'filename'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekpo.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
      CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
                 con_tab TYPE x VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
       con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
             INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
        CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
                    wa_charekpo-aedat wa_charekpo-matnr
               INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    endform.                    " POPULATE_EMAIL_MESSAGE_BODY
    regards,
    venkat.

  • Render and Email script

    Hello everybody. I have a question that I have thoroughly researched on the web with no results.
    I am trying to get the default After Effects "Render and Email" script to run properly. I have only been able to successfully send FROM one specific email address TO another (slightly less specific) email address. Most other email services I put in (icloud, gmail, etc) all give strange errors upon execution.
    For the SENDING email address, I'm currently using one I created that is a part of my web hosting account (this is the only account I am able to successfully send from). For RECEIVING, I've only successfully gotten my gmail address to work. All other receiving addresses don't always give me error, but also never show up. Either that, or I get very weird errors. The most common one I get is "Unaable to send mail. 533 5.7.1 AUTH command is not enabled."
    I haven't been able to find this error documented anywhere online. I'd like to be able to send emails to my icloud account, since it pushes email notifications to my phone in real time.
    Long ago someone by the name of Ko Maruyama supposedly explained all this in detail, but the writeup was posted on a .mac website (http://homepage.mac.com/komaruyama/Tutorials/AE/AE_javamail/AE_mail.html), which Apple officially discontinued/took down several years ago.
    Does anyone have any experience with this?

    For Mac, the path is of course slightly different. If you cannot delete the file, you should at least be able to edit it in Extend Script Toolkit or any text editor or run the script separately to change its config data. Works for me...
    Mylenium

Maybe you are looking for