Sending Emails | ECC 5.0 | Cannot send Emailtext with Attatchment

I want to send an email with a text and a sap-script document attatched as a pdf.
The conversion otf to pdf is done automatically
It works fine, however since ecc 5.0 i have the problem getting the normal text into the email. on 4.6. that worked fine.
Any hint is welcome
Thx from Vienna
Andy
The Code
0) Getting the Sap-Script Data
    call function 'CLOSE_FORM'
      TABLES
        otfdata                  = it_otfdata
      EXCEPTIONS
        unopened                 = 1
        bad_pageformat_for_print = 2
        send_error               = 3
        spool_error              = 4
        others                   = 5.
1) Document Data
    wa_document_data-obj_name = 'Object-Name'.
    wa_document_data-obj_descr = 'Title of the Email'.
    wa_document_data-PROC_CLINT       = sy-mandt.
2) PACKING_LIST
==============> HERE IS THE PROBLEM
  wa_packing_list-DOC_TYPE = 'RAW'.
      wa_packing_list-obj_name = 'Emailtext'.
      wa_packing_list-obj_descr = 'Obj Descr'.
      wa_packing_list-head_start = 1.
      wa_packing_list-head_num = 0.
      wa_packing_list-body_start = 1.
      wa_contents_txt = 'Emailtext Frist Line'.
      append wa_contents_txt to it_contents_txt.
      DESCRIBE TABLE it_contents_txt LINES tab_lines.
      READ TABLE it_contents_txt INTO wa_contents_txt INDEX tab_lines.
      wa_packing_list-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
      wa_contents_txt ).
      merke_tab_lines = tab_lines.
      wa_packing_list-body_num = merke_tab_lines.
      APPEND wa_packing_list TO it_packing_list.
      clear wa_packing_list.
==================> WITH THESE LINES ABOVE THE
ATTATCHMENT OF THE NEXT LINES IS CORRUPTED AND I DONT
KNOW WHY > In 4.6C this worked, THE LINES ABOVE WITHOUT
ATTATCHMENT (see next lines) ALSO WORKS WELL
BUT NOT THE COMBINATION
CLEAR wa_packing_list-transf_bin.
      wa_packing_list-doc_type = 'OTF'.
      wa_packing_list-obj_name = 'ANLAGE'.
      concatenate 'Rechnung' global_merke_rechnr sy-datum
      into wa_packing_list-obj_descr separated by space.
      wa_packing_list-head_start = 1.
     wa_packing_list-head_num = 0.
      wa_packing_list-head_num = 1.
      wa_packing_list-body_start = merke_tab_lines + 1.
    Appende den SAP Script Output zur Context Tabelle
      LOOP AT it_otfdata INTO wa_otfdata.
        wa_contents_txt = wa_otfdata.
        APPEND wa_contents_txt TO it_contents_txt.
      ENDLOOP.
    Anzahl der Zeilen der neu hinzugefügten
      DESCRIBE TABLE it_otfdata LINES tab_lines.
      wa_packing_list-body_num = tab_lines.
      wa_packing_list-doc_size = ( tab_lines -  1 ) *
      255 +  STRLEN( wa_contents_txt ).
      APPEND wa_packing_list TO it_packing_list.
      merke_tab_lines = tab_lines.
3) OBJECT_HEADER
    wa_object_header = 'Objektheader1'.
    APPEND wa_object_header TO it_object_header.
    wa_email = '[email protected]'.
    wa_receivers-receiver = wa_email.
    wa_receivers-rec_type = 'U'.
    APPEND wa_receivers TO it_receivers.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
      EXPORTING
        document_data                    = wa_document_data
        Damit bekommt der betreffende User das in den Ausgang gestellt
        das erleichtert die Nachvollziehbarkeit
        PUT_IN_OUTBOX                    = 'X'
  SENDER_ADDRESS                   = SY-UNAME
  SENDER_ADDRESS_TYPE              = 'B'
IMPORTING
  SENT_TO_ALL                      =
  NEW_OBJECT_ID                    =
  SENDER_ID                        =
      TABLES
       packing_list                     = it_packing_list
       object_header                    = it_object_header
  CONTENTS_BIN                     = it_CONTENTS_BIN
       contents_txt                     = it_contents_txt
  CONTENTS_HEX                     = it_CONTENTS_HEX
  OBJECT_PARA                      = it_OBJECT_PARA
  OBJECT_PARB                      = it_OBJECT_PARB
        receivers                        = it_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

OK, I figured out that an IT Policy got put on my phone but I am not sure how because I am not on the BES network through my company. I wiped my phone to remove the IT policy and  used the Advanced settings to back up my phone so that I didn't save the IT policy as well. I restored my info and no IT policy was on there. I then reinstalled DM 5 to add a work email and now the IT policy is back on my phone. I tried doing a clean uninstall of DM 5 but I am running Windows 7 and haven't found exact instructions. I try following the Vista instructions but when i reinstall, DM 5 still has my old settings. Is the DM the problem that is putting an IT Policy on my phone? Any fixes?

Similar Messages

  • Apple iPad 3. BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Can anyone help me please.

    BT email not working. Cannot send emails from btconnect SMTP after iOS upgrade. This is the only difference I am aware of. Apple iPad 3. Can anyone help me please.

    All resolved at last
    Deleted the SMTP setting
    Recreated the SMTP using the same settings
    Able to send emails now
    No logic - as usual - just a bug!

  • Can receive email from hotmail but cannot send email

    i can recieve my hotmail emails ok but i cannot send emails. i keep getting this message:
    "cannot send message using the servier hotmail.
    Connections to the server “smtp.live.com” on the default ports timed out.
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent."
    Everything was fine till a few days ago then this error appeared. Any help appreciated.
    Thanks

    tried again now i get message:
    nework diagnostics failed on SMTP .......

  • HT1414 I am new on the iPod 5th Gen, I have managed setting up ok, I can send emails via Mail but cannot seem to receive them ? help what am I doing wrong

    I am new on the iPod 5th Gen, I have managed setting up ok, I can send emails via Mail but cannot seem to receive them ? help what am I doing wrong

    Try this...
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Choose the affected email account, then tap Delete Account.
    Add your account again.

  • We had a contaminated email and now we cannot send emails . our service provider thinks problem in 'mail' settings but did not want to get into that area. Can you advise how we look into this

    we had a contaminated email and now we cannot send emails.  Our service provider advises that 'Mail' settings may be compromised.  but were not willing to get into resetting.   How can this be fixed ?

    jenfromwa wrote:
    we had a contaminated email and now we cannot send emails.
    Not exactly sure what you mean by contaminated, but there is currently no known e-mail that could impact the Apple Mail application as you have described.
    Without knowing who your e-mail provider is and what type of account (IMAP or POP3) we can't advise you as to what those settings might be.
    One way to fix it would be to delete the account from Apple Mail Preferences->Accounts and add it back.

  • HT5654 after update to the latest version on my ipad, it no longer connects to the internet nor can i send emails.  when plugged in to sync with itunes, it remains 'stuck' at syncing  step 2 of 7 backing up.  has anyone had similar problems? any solutions

    after update to the latest version on my ipad, it no longer connects to the internet nor can i send emails.  when plugged in to sync with itunes, it remains 'stuck' at syncing  step 2 of 7 backing up.  has anyone had similar problems? any solutions?

    I had this problem.  I held down the power switch to power down completely.  Takes a few seconds.  Then use the power switch to turn on.  Might take a couple goes.
    Kirk

  • I have 2 hotmail accounts. They worked fine the first month or so, now about 20 seconds after I sign on, it goes to an send message screen but I cannot send. When I go back to inbox, it resets to the send screen again. HELP.

    I have 2 hotmail accounts. They worked fine the first month or so, now about 20 seconds after I sign on, it goes to an send message screen but I cannot send. When I go back to inbox, it resets to the send screen again. HELP.

    Here you can see how you can setup your Hotmail accounts in the Mail App on the iPad; http://convert-dvd-ipad.com/dvdipad/setup-hotmail-microsoft-exchange-ipad-2/

  • When sending email from my ipad, the sender shows as Apple Inc??

    When sending email using my iPad, the sender shows up as Apple Inc. instead of my email address. How can I fix this?

    What does the Description say for the iCloud account on your iPad? (Click on "Settings/iCloud/Account")

  • Messaging Server cannot send email to gmail but can send email to yahoo

    I'm using Messaging server 7.0. My company's domain is {color:#ff0000}*sun-vietnam.com*{color} and the email server name is {color:#ff0000}*mail.sun-vietnam.com*{color}, this name is {color:#ff0000}*registered and resolved*{color} correctly in the DNS server of the ISP.
    When using an email account form this domain, I can send email to an email address from {color:#ff0000}*yahoo.com*{color} such as {color:#ff0000}****@yahoo.com*{color} and the {color:#ff0000}****@yahoo.com*{color} account can receives this email immediately.
    But when I try to send an email address to an email address from {color:#ff0000}*gmail.com*{color} such as {color:#ff0000}****@gmail.com*{color}, the email succesfully sent without no error notified, however the {color:#ff0000}****@gmail.com*{color} account cannot receives this email although I waited for serveral days.
    If anyone know the solution to fix this problem, please help me, thanks all of you very much.
    Edited by: chuotbeo on Feb 15, 2009 7:26 PM

    Hi Shane.
    I'm so sorry, the administrator in my company didn't provide enough information for me.
    Actually, when I sent email to ***@gmail.com, there was a notification sent to me by the system. The error notification is :
    "*{color:#ff0000}Subject: Delivery Notification: Delivery has been delayed Return-path: <[email protected]> {color}*
    Received: from tcp-daemon.mail.sun-vietnam.com by mail.sun-vietnam.com
    (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008))
    id <[email protected]>;
    Sat, 14 Feb 2009 00:30:02 +0700 (ICT)
    Received: from Mali ([118.71.41.126]) by mail.sun-vietnam.com
    (Sun Java(tm) System Messaging Server 7.0-0.04 64bit (built Jun 20 2008)) with ESMTPA
    id <[email protected]> for [email protected]; Wed, 11 Feb 2009 14:21:39 +0700 (ICT) "
    Have you ever seen this error notification, please help me. Thank you anyway :)
    Best regards,

  • Cannot send email in mail app. using POP account with Wi-Fi

    I recently moved to an apartment that only has wireless internet access. Since moving I cannot send email using my POP account, although I can receive email. I was also not able to receive email using my .mac account, but I learned through this forum to change server port to 587 in .mac account and now I can send via .mac account in mail app. But I still cannot sent email with mail app. using my POP account. I changed no settings when I moved, and have never had this problem with cable. Any suggestions?

    It all depends on the policy of whoever is the ISP at your new location and the method used by the outgoing (SMTP) server to determine whether you’re a legitimate user.
    In an attempt to fight spam, many ISPs restrict the ability to send using an outgoing (SMTP) server not owned by them, usually by blocking port 25 for all traffic outside their own network, which means you cannot send with an SMTP server not owned by them if configured to use that port number. And it may happen the other way around as well, i.e. the outgoing server itself may look at the IP address you’re connecting from and refuse the connection if you’re outside its own network.
    Something that often works is changing the outgoing server port to 587 (or whatever alternate port number the outgoing server listens to) instead of 25 and using some form of authentication in Preferences > Accounts > Account Information > Outgoing Mail Server > Server Settings, but two conditions must be satisfied for this change to work: (1) the ISP must not block that port as well AND (2) the outgoing server in question must listen to that port and accept a form of authentication not based on the IP address you’re connecting from.
    Independent mail service providers not tied to a particular ISP, such as .Mac and Gmail, do allow authenticated SMTP access on port 587, which is the reason changing the outgoing server port number solves the problem for them if the ISP doesn’t block that port as well.
    The following article, for example, describes several ways to address this issue in the case of .Mac, but can be useful for other mail accounts as well (not just .Mac), and applies to all versions of Mac OS X (not just Mac OS X 10.4.2 and earlier as the article states):
    .Mac: Server timeout alert message when sending email

  • User two cannot send email from mail app.  (send icon just spins)

    userone can login, use Mail to send and receive.
    user two login and may receive, but not send email in Mail app
    icon next to send paper airplane in folders window just spins.
    able to send email thru facebook, etc.
    also, recently did TDM backup into this iMac of G5 HD.
    how do I access address book data from backup

    resolved part one: played around with mail preferences of user two to match prefs in user one
    still do not know about access to TDM saved addressbook data.

  • Since upgrading my computer last week i cannot send emails using talktalk, i can send via ipad and phone so not the server

    Since upgrading my system i have been unable to send emails using talktalk although i can receive them  i have no problem sending them via ipad or phone. can any one help please

    Open Mail -> Preferences -> Accounts.  Select the TalkTalk account and then the 'Account Information' tab. Drop down the 'Outgoing Mail Server (SMTP)' menu and select 'Edit SMTP Server List'.  Ensure that 'Server Name' under 'Account Information' is set to "smtp.talktalk.net".  You may also need to configure settings under the 'Advanced' tab. 
    More info here:
    http://help.talktalk.co.uk/app/answers/detail/a_id/1668/~/what-are-talktalk's-em ail-settings%3F#TalkTalk

  • Exchange 2013 issues - (new send email Stuck in Drafts not send)

    Exchange 2013 issues - (new send email Stuck in Drafts folder not send)

    I am also having this issue.
    server 2012 VM with exchange 2013. plenty of resources, more than recommended so cannot be a BAck Pressure issue especially as no clients are connected yet.
    In the early stages of setup and testing, mail sent to other mailboxes worked fine in outlook 2007 and OWA but after a few issue that developed and are now resolved, any e-mail send within outlook or OWA just goes straight into the drafts folder.
    I tried, DNS setting changes under roles, on the server, on DNS server, MX DNS records, increased resources, looked at received connectors, changed and even deleted send connectors as this is not required for internal mail. Tried changing authentication
    types but then outlook won't connect to, staying with Basic Auth.
    Have not been able to test inbound e-mail as this is going to replace a production server and is not ready, although I could probably simulate a route from another server and push e-mail to it. Will try tomorrow.
    I have spent about 20 hours trying to figure this out and made probably 40 changes. Change, test, rollback etc. Been searching through loads of forums and technet sites all with no help.
    All services are started, server has been rebooted several times.
    It is also an AD server and has both Exchange roles installed. There is no reason why it should not work. This is so frustrating, we don't have these issues with the now end of life Scalix, or MDaemon or Zimbra. Pity the client wanted a Microsoft solution.
    To be honest there are not a lot of things that cannot be changed in ECP although there is more under exchange powershell however I am not familiar with all the commands yet. I have resorted to watching training videos even though I am a seasoned IT Pro, although
    not so much with exchange it seems.
    I have seen many people have this issue on Exchange 2007, 2010 and 2013. Someone must know how to resolve this or find a work around?
    So far I have an expensive solution the client has purchased that I cannot get running properly.
    Aside from this issue, I really like the new Server 2012 and new Hyper-V.
    I was about to install Exchange Server 2013 on a physical machine due to this f#ckin' issue. But a post for the DNS change has saved my life:
    http://social.technet.microsoft.com/Forums/en-US/exchangeserverpreview/thread/04c0147b-f4e3-4041-a566-310854e71068/ (rafael9908's answer)
    And thanks Jesper Bernle for excellent info provided by your link.

  • On OnPremise, Sending email to multiple recipients doesn't work with SendEmail method

    Hi,
    We are creating a site collection on OnPremise from App by using Sharepoint Client API's (16 version).
    After creation of site collection, we are sending an email to all site collection administrators. But we found that email is being sent to the only first person mentioned in the "To" list. For sending email we are using following method "Microsoft.SharePoint.Client.Utilities.Utility.SendEmail()".
    We tried different scenarios by passing alternately domain username and email address.
    Here are the findings for the different scenarios for the "To" field:
    1) "domain\user1; domain\user1" => sends email to first user
    2) "[email protected]; [email protected]" => sends email to both emails (at least shows in inbox To field, two occurances of email)
    3) "domain\user1; domain\user2" => sends email to first user
    4) "[email protected]; [email protected]" => sends email to first user
    Here is the code we are using:
                    EmailProperties properties = new EmailProperties();
                    properties.To = to.ToList();
                    if (cc != null)
                        properties.CC = cc;
                    properties.Subject = subject;
                    properties.Body = body;
                    Utility.SendEmail(context, properties);
                    context.ExecuteQuery();
    Please let us know what is going wrong here.
    Thanks in advance for your valuable inputs.
    Br,
    Shriram
    Shri07

    According to the R16 Admin preview guide;-
    "Send Email to Multiple Recipients
    Expression Builder is now linked to the email address text field that is presented when the Specific Email Address
    option is selected. Workflow administrators can enter multiple email addresses directly, or click the "fx" icon
    beside the field, and use Expression Builder to define expressions that evaluate to one or more email addresses.
    The benefit of this feature is that emails can be stored on any text field in the base record and multiple emails can
    be sent using one workflow action. "
    But how that works exactly is not clear, I have tried commas, semi-colons, spaces, apostrophes, doublequotes, to separate and try to establish the correct syntax without luck.
    Bob - Perhaps you can do some digging and find out the correct syntax for multiple addresses?

  • Exchange 2007 OWA sends attachments Outlook connector clients cannot send attachments.

    Exchange Server 2007 SP1 + Rollup ***Problem with sending email attachments from Outlook 2007***
    * Inbound mail arrives in OWA and Outlook normally with and without attachments.
    * OWA email to external email account with attachment goes thru successfully.
    * Outlook 2007 sends to an external email address with attachments the message does not arrive at the external mailbox.   The messages leave Outbox but are never delivered. The messages appear in Sent Items also.
    * Outlook sends non attachment emails to external addresses successfully.
    * Outlook sends email attachments to local domain accounts fine.
    #1 Exchange Server on Server 2013 fully patched problem commences. Exchange Server on version less than first RTM release of Exchange 2007.
    #2 Outlook profiles were changed to see if that is the problem.
    #3 Upgraded Exchange to SP1 and Rollup 10(Rollup was autodownloaded by MSUpdate)
    #4 Ran EXBPA nothing of any interest in the report.
    --Unified Messaging not configed (Done nothing)
    --SenderID (Re-enabled) I had shut all of the antispam to eliminate these.
    -- Junk Store threshold not configed (No change)
    Any suggestions to get Outlook clients capable of sending attachments configured.
    Thx,
    -Scot

    Hi Scot,
    Providing some information on Poison Queue:
    The poison message queue is a special queue that's used to isolate messages that are determined to be harmful to the Exchange system after a transport server or service failure.
    The messages may be genuinely harmful in their content and format.
    Alternatively, they may be the results of a poorly written agent that has caused the Exchange server to fail when it processed the supposedly bad messages.
    The poison message queue is typically empty. If the poison message queue contains no messages it doesn't appear in Queue Viewer or
    Get-Queue results. The messages in the poison message queue are never automatically resumed or expired. Messages remain in the poison message queue until they're manually resumed or removed by an administrator.
    According to the description above, I suspect Outlook 2007 changed the email's format when send email with attachment. The reason as below:
    If the original email's (with attachment) content or format is harmful to the Exchange 2007 server, it will go to the Poison Queue when sending via OWA. However it didn't, sending via OWA is perfect. So I suspect it is an issue on the Outlook 2007
    client side.
    Please using Pipeline Tracing to verify whether there is something changed during transmission.
    More details in the following article:
    Using Pipeline Tracing to Diagnose Transport Agent Problems
    http://technet.microsoft.com/en-us/library/bb125198(v=exchg.80).aspx
    If it is convenient, I suggest doing following tests to narrow down this issue:
    Note: Same content, same attachment, same format.
    1. Please using Outlook 2010/2013 or others' Outlook clients for testing.
    2. Please change to another format for testing. More details in the following article:
    Change the message format to HTML, Rich Text, or plain text
    http://office.microsoft.com/en-001/outlook-help/change-the-message-format-to-html-rich-text-or-plain-text-HP001232996.aspx
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

Maybe you are looking for