Sender in the mail

Hi !
I have an requiremnet to add the sender of the mailer which is most likly hard core i. abc@*******in the Call Function
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
Please guide .
Regards
Sheetal

Hi  !
Not able to understand the given solution ..m required to add sender in the mail from abap and currently using the Call Function :SO_NEW_DOCUMENT_SEND_API1
FORM MAIL USING ERRORCODE TYPE I.
Recipients
SELECT SINGLE PARAMVALUE
  FROM ZIBHR_PARAMS
  INTO LV_MAIL1
  WHERE PARAMCODE EQ 'MAIL_ID_EXCP_1'.
SELECT SINGLE PARAMVALUE
  FROM ZIBHR_PARAMS
  INTO LV_MAIL2
  WHERE PARAMCODE EQ 'MAIL_ID_EXCP_2'.
IF LV_MAIL1 NE ''.
  lt_mailrecipients-rec_type  = 'U'.
  lt_mailrecipients-receiver = LV_MAIL1.
  APPEND lt_mailrecipients .
  CLEAR lt_mailrecipients .
ENDIF.
IF LV_MAIL2 NE ''.
  lt_mailrecipients-rec_type  = 'U'.
  lt_mailrecipients-receiver = LV_MAIL2.
  APPEND lt_mailrecipients .
  CLEAR lt_mailrecipients .
ENDIF.
IF LV_MAIL1 NE '' AND  LV_MAIL2 NE ''.
  lt_mailrecipients-rec_type  = 'U'.
  lt_mailrecipients-receiver = at .....com.
  APPEND lt_mailrecipients .
  CLEAR lt_mailrecipients .
ENDIF.
IF  ERRORCODE = '1'.
Subject.
  lt_mailsubject-obj_name = 'TEST'.
  lt_mailsubject-obj_langu = sy-langu.
  lt_mailsubject-obj_descr = 'Biometric INET Time Correction Upload Program Exception <001>'.
  lt_mailtxt = 'Biometric INET Time Correction Upload Program. Missing parameters in ZIBHR_PARAMS table Please contact SAP IT HR Team for further action'.
  APPEND lt_mailtxt.
ELSEIF ERRORCODE = '2'.
  lt_mailsubject-obj_name = 'TEST'.
  lt_mailsubject-obj_langu = sy-langu.
  lt_mailsubject-obj_descr = 'Biometric INET Time Correction Program Exception <002>'.
  lt_mailtxt = 'Biometric INET Time Correction Upload Program. Program did not find any file to upload in the directory.'.
  APPEND lt_mailtxt.
ENDIF.
Mail Contents
IF t_error_ind EQ 'Y'.
  lt_mailtxt =  'Please note that some errors have been encountered while loading the records. Please check error log for further details'.
  APPEND lt_mailtxt.
ENDIF.
Send Mail
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
  EXPORTING
    document_data              = lt_mailsubject
  TABLES
    object_content             = lt_mailtxt
    receivers                  = lt_mailrecipients
  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 EQ 0.
  COMMIT WORK.
  Push mail out from SAP outbox
  SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
ENDIF.
refresh lt_mailtxt.
ENDFORM.    "MAIL
Edited by: sheetal Gulati on Mar 8, 2010 5:22 AM

Similar Messages

  • I get this error msg. "An error occurred while sending. The mail sever responded: From address is not valid [R0107001]. My email address is correct. Why?

    Can't send email. Get error: "An error occurred while sending. The mail sever responded: From address is not valid [R0107001]. Please verify your email address is correct in your Mail Preference and try again."
    My email ([email protected]) is correct.
    After receiving the error message I try to resend. Get second error message. BUT AFTER ABOUT SIX TRYS THE MESSAGE IS SENT.
    What shall I do???

    problem solved. an update thunderbird message showed up, did update and now works. WOW!

  • Do we need to create the mx records if the send/receive the mail in the same organization?

    1,May I know do we need to create the mx records if we send/receive the mail in the same organization?
    2,If we send /receive the mail between two different organization/forest, we need to create the mx records  ,is it right?
    Please click the Mark as Answer button if a post solves your problem!

    1,May I know do we need to create the mx records if we send/receive the mail in the same organization?
    2,If we send /receive the mail between two different organization/forest, we need to create the mx records  ,is it right?
    Please click the Mark as Answer button if a post solves your problem!
    for 1. If you mean the same Exchange org, no.
    For 2, it depends. You need a MX record for your receiving SMTP server ( At least, You *should* have one), but if sending to another org, not necessarily, as you could smarthost messages to it and a MX would not be required.
    Just curious, what problem are you trying to solve?
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • When I search for sent mail, I only see the sender of the mail (me). I want to see the receiver. How can I change that?

    When I search for sent mail, I only see the sender of the mail (me). I want to see the receiver. How can I change that?

    What kind of mail? gmail?
    Maybe this:
    Sent folder only show senders name in mail apps

  • Why don't mail show the picture of the sender in the mail I receive

    Hi everybody
    I am using Mail and Address book and I have pictures of my friends and colleagues etc. and therefore the mail program should show me a picture of the sender when I receive e-mail from one of them. It also does normally but when I have two e-mail addresses on the same person it don't show any pictures.
    Why is that?
    Best
    Kudsk

    This looks like a bug, and should be reported using OS X Feedback. It also happens if you browse your sent mailbox (well, it does for me, anyway). In the sent mailbox, if the recipient has no picture in my Address Book, no picture appears. If the recipient has a picture and a single email address, my picture appears. If the recipient has a picture and multiple email addresses, sometimes my picture appears and sometimes not. I suspect it is there if the email is to the first-listed address, and not otherwise. It is probably the same for incoming emails.
    I don't think there is anything you can do to cure it.
    AK

  • Problems sending via the Mail app [Lion OS X]

    I'm using the standard Mail app on my Macbook Pro with Lion OS X.  I have 3 Hotmail accounts and at one point had all of them hooked up to the Mail app and receiving e-mails fine.
    The problem I've had is when trying to send an e-mail or reply to one via the Mail app. Even though I have 3 accounts and have got the 'Send messages from account of selected mailbox' selected in Preferences > Composing, it always used to send from only one of the 3. If I recall correctly it was the second account I had added that it always sent from.
    Recently I'd decided to try and sort this. I like to use one account for business e-mails and the other 2 for personal so when I recieve a business e-mail I really don't want it replied to from one of my personal e-mails. The simplest idea I had was to remove the 2 personal accounts (under Preferences > Accounts) and use the app purely for my business e-mails.
    However after removing them I now don't receive any e-mails for those accounts, but after testing a bit with a friend all e-mails are still being sent from an account no longer registered on the app.
    How can I sort this so I only have 1 account that I can send and recieve from??

    Seem to have sorted it now (I think).
    Made sure all trace of the accounts was removed from the Preferences of the Mail app, removed any trace of stored passwords it could be using in the Keychain Access, and finally unlinked my accounts from each other on the options page of Hotmail.
    Then tried resetting up just the one account and it seems to have done the trick.

  • Restrict E-mail sender in the Mail sender communication channel.

    Hi All,
            My scenerio customers want to Email with attachment to PI server. I've successfull tested this scenerio without one open issue. Right now anyone having email id can send mail to PI server.
    I want to restrict the senders list. Is this possible in the sender Mail adapter configuration.
    Thanks,

    Hi,
    Its possible.
    You need to configure 2 receiver
    1)MailA
    2)MAILB
    in receiver determination.
    then you need to route it based on Subject using condition in receiver determination.
    Use the below XSD to create your sender mail message type
    <?xml version="1.0" encoding="utf-8" ?>
    <!--
    SAP takes no position regarding the validity or scope of any intellectual property or
    other rights that might be claimed to pertain to the implementation or use of the
    technology described in this document or the extent to which any license under such
    rights might or might not be available; neither does it represent that it has made any
    effort to identify any such rights.
    Copyright © SAP 2003-2004. All Rights Reserved.
    This document and translations of it may be copied and furnished to others, and derivative
    works that comment on or otherwise explain it or assist in its implementation may be
    prepared, copied, published and distributed, in whole or in part, without restriction of
    any kind, provided that the above copyright notice and this paragraph are included on all
    such copies and derivative works. However, this document itself does not be modified in
    any way, such as by removing the copyright notice or references to SAP.
    This document and the information contained herein is provided on an u201CAS ISu201D
    basis and SAP DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY
    IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
    -->
    <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
      xmlns:xi="http://sap.com/xi/XI/Mail/30"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--
      * Mail
      -->
      <xs:element name="Mail">
        <xs:annotation>
          <xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Subject" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="From" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="To" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="Reply_To" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="Content_Type" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"></xs:element>
            <xs:element name="Message_ID" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="X_Mailer" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="Content" minOccurs="0">
              <xs:annotation>
                <xs:documentation>any type</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="encoding" type="xs:string"></xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element name="MailReceipt">
        <xs:annotation>
          <xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Server" type="xs:string"></xs:element>
            <xs:element name="Format" type="xs:string"></xs:element>
            <xs:element name="UseMailPackage" type="xs:boolean"></xs:element>
            <xs:element name="Encoding" type="xs:string"></xs:element>
            <xs:element name="Subject" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="From" type="xs:dateTime" minOccurs="0"></xs:element>
            <xs:element name="To" type="xs:string" minOccurs="0"></xs:element>
            <xs:element name="Date" type="xs:dateTime" minOccurs="0"></xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    and use mail package in sender mail adapter.
    Then your mail will come in XI in the above format.
    then based on subject field you can conditionaly determine the receiver.
    Message Protocol
    u25CF      XIALL
    In this mode, the content of the RF C822 e-mail matches the content of the XI message. The XI message is a multipart MIME message with a SOAP envelope as its first part. See also: Messages, under XI Message Protocol.
    u25CF      XIPAYLOAD
    In this mode, the content of the e-mail is put in the payload of the XI message. If you do not set the Use Mail Package indicator, the information about the sender (From), receiver (To), and subject of the e-mail is lost.
    http://help.sap.com/saphelp_nw70/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm

  • Mail in OS Mavericks HELP!!! Why do some of my emails not send despite the sent sound playing?

    Dear Mac Community
    I have a MacBook Pro running OS 10.9.1 and everything is fully updated.
    I use the Mac Mail programme to send and receive Gmail emails as I have done for many years.
    Recently, I started to notice a worrying problem. Every 10 or 20 emails or so, (I haven't noticed a specific regularity), I write an email and press send. The mail seems to send fine and I get the sound notifying me it has left the outbox. However, when searching for a reply, I find that in fact it is not in sent items, and it has only been located in Archive - Gmail (all mail) or Trash - Gmail, and not in any sent folder. Indeed, when I ask the recipient if it has been received they say no.
    Since the mail programme is telling me at the time of sending there isn't a problem, how can I ensure that all emails are sending correctly without checking 'sent items' every time I send one, which would be deeply frustrating. I've only noticed this a few times because key emails haven't been replied to - but it's possible that there have been several other incidences I haven't been aware of.
    I don't know if this is related, but another similar problem occasionally arises, whereby an email pops in on my phone (iPhone 5s also using mac mail programme for gmail) but not on the computer. In fact I can't see it unless I click on the 'Gmail Archive' folder where it appears, and copy it manually into my inbox. The regularity of this seems to be equal to that of the former problem, which is why I wondered if it could be related.
    All help gratefully appreciated
    Thanks
    MacBook Pro (13-inch Mid 2012), OS X Mavericks (10.9.1)

    In that case your email provider's server is having difficulties to deliver the message to the recipients email provider server.
    This has got nothing to do with Thunderbird.
    There is little you can do though. You may have the recipient to check with his email provider if they have any issues.

  • Excluding sender mail id in the mail

    Hi,
    I want to develop and application to send a mail. I can do it
    but the problem is i want to hide or exclude from address in the
    mail. I am not setting the from address then it taking the system
    user name as the sender of the mail. I don't want to show anything
    in the from field of the mail. how can i achieve it.
    phani.

    It's easy enough to build a message without a from address. The problem is that most mail servers will reject the message for transport or delivery since spammers are the only ones who try faking the address.

  • ME21N - How to send an "Ok Mail".

    Hello everyone, i have this problem:
    I need , somehow, that each time the user make a purchase order, SAP send a mail to the owner of the order request, previously made in ME51N.   (internal mail or outlook)
    The idea is that the user who needs the item to be purchased in ME21N, ( the one who made the request )  knows that his request was done.
    I really appreciate your help.
    Thanks.

    Hi Felipe,
    One option to acheive this is to locate a User Exit available for PO creation then write a ABAP code for that User Exit to send email to the Creator of the Purchase Requisition. There are 2 options to send email to the Creator of the PR.
    1. Retrieve the creator user id from the PR and send email to the user SAP inbox (user exit function). Create batch job for RSWUWFML2 to send item in SAP inbox to the User's internet/outlook email (need to maintain the user email address with t-code SU01). 
    2. Uesr Exit program to retrieve the creator user id from the PR, then retrieve the user's internet email address from the User address (email address maintain with SU01) and send email to the user internet email (outlook). 
    Then run t-code SCOT to send out the mail (or can create batch job for program RSCONN01 to send out email). as your Basis people to setup the SCOT for you if previouly is not configured.
    best regasrds,
    Eric Ho

  • Items or messages shared from within apps by email don't get sent but sit in the Mail app outbox until sent manually.

    Many apps, including the Photos app, allow many options for sharing or social networking. When I select to send by the Mail app the message never gets sent as I would expect, but remains in the Mail Outbox until I remember to drill down to the Outbox and send it manually.
    Has anyone else had this problem?
    Is this normal?
    Is there a 'Setting' that causes this?
    Why doesn't the message just go?
    Hope you can help.

    I've been having similar issues with my iPhone 5 and the latest iOS version.  I read somewhere else about an issue with having Exchange and Imap in use with Mail being an issue.  I had both, but had my Exchange connection to Gmail off.  I was still having the issue.
    The solution that worked was to delete my Exchange Gmail account.  Now, emails are being sent immediately.  If you have Exchange and Imap Gmail accounts on your iPhone, pick one and delete the other.  Good luck.

  • I have just dowloaded the icloud control panel on my PC and i am am able to see everything that has been pushed to icloud from my ipad. However i cannot see my email. i can send from the computer using icloud, but i do not see any mail that is being rec.

    i have just dowloaded the icloud control panel on my PC and i am am able to see everything that has been pushed to icloud from my ipad. However i cannot see my email. i can send from the computer using icloud, but i do not see any mail that is being received by my ipad, which is set up with my mail server. What haven't i checked lol?

    turn your ipad off by holding the sleep wake button for 5 seconds and slide to turn off then turn it back on and the apps should be finished and if the apps didnt finish just redownload them

  • On my iPad I have installed the update ios 7.0.4 and now I can't send emails from the mail app is it just me or a problem with the update?

    On my iPad I have updated the software to iOS 7.0.4 and now I can't send any emails from the mail app.  Is this me or the update?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

  • I deleted my old Email account because I wanted to create a new one, and I did. However, when ever I send an Email from the Mail app on my laptop it says the Email was sent from my old Email and I just can not get rid of it.

    I deleted my old Email and only used my new Email to set up the Mail app on my laptop. And the old Email is completely dead, hotmail.com says the Email no longer excists when I try to sign back in to it however my Emails remain saying 'Sent from Jordan [*old Email*].
    I can't find a solution!!

    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare(or Apple ID Support), upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

Maybe you are looking for

  • Having one field display the text of a different field in a statis form

    Hi All-- My goal is to pull back a single value and display it in two fields, using a static form and formhandler. When a co-worker had both fields with the binding used to retrieve the value, he found that the population for the field was getting ga

  • BI : Error While Creating the Generic DS

    Hi Experts, I would like to know that while creating the generic data for Journal entry i am getting the below error. Kindly advise. "Field FRATH with reference field WAERS: ZOXTCD0017 is to replace reference table T001". thanks & regards, M.S

  • Installing Application Server 10g R1

    Hi Experts, whil installing application server 10g R1, I am facing below warning ============================================= checking operating system certification+ OUI-11101: Mandatory attribute 'value' missing from glibc ========================

  • Web interface to read CSS service status

    I'd like to write a web page to read the service summary. I'm using Content Switch SW Version 5.00. It looks like the xml interace can write but not read. Is there any method to read the CSS service status from an active server page?

  • I log in to 'HP Enterprise Business Community' and 'Consumer Support Forums' with the same username?

    Hi,, I am expecting that I must use a different user ID to log in to each of 'HP Enterprise Business Community' and 'Consumer Support Forums.' However, I am logged in to both with the same user id. Then, how to get to  my subcriptions I posted in eac