Specify sender name in Email

Hi All.
I'm using the BCS objects to send emails and it works like a charm.
Recently I've been asked to allow the user (through a Z setting-table) to control the address & display-name of the sender.
I had no problem setting the sender address to be different than the generic user that runs the Job, but I could not find a way to control the display-name of the sender: it displays the full email address.
Does any of you know how to control this?
I want to add that we are not working with SAP mail but with Outlook, and although the email address displayed is known to Outlook it will not translate to the display-name it knows.
Regards.
Ayal Telem.

Dear Orhan.
I found the solution myself.
Since I knew what to look for, the solution can only be found in one of the comment to the blog.
Anyway, this is the solution:
DATA: gv_sender_addr      TYPE adr6-smtp_addr,             
             gv_sender_name      TYPE adr6-smtp_addr.
  DATA: lf_sender         TYPE REF TO if_sender_bcs.
  TRY.
*     Create Sender object.
      lf_sender = cl_cam_address_bcs=>create_internet_address(
                                       i_address_string = gv_sender_addr     "Email address
                                       i_address_name   = gv_sender_name ).  "Display name
*     Declare Sender.
      CALL METHOD pc_send_request->set_sender
        EXPORTING
          i_sender = lf_sender.
    CATCH cx_bcs INTO lf_bcs_exception.
      IF pv_err_msg = 'X'.
        MESSAGE i149(y1) WITH lf_bcs_exception->error_type. "Error number & encountered when adding recipient.
      ELSE.
        pv_error_no = 2.
      ENDIF.
  ENDTRY.
You can see that the display-name of the sender is declared during the creation of the Sender object.
Enjoy.
Ayal.

Similar Messages

  • Sender's address instead of sender name in email messages list

    Hello
    please tell me how to set up my blackberry posche design 9981 so that each item of email messages list contained such fields:  date, sender's address, theme message,
    my problem is that instead of  sender's address displays  nickname/login of sender

    If the user IS in your BlackBerry Address Book, the Address Book name you've entered will display.
    noparams wrote:
      theme message,
    I don't know what you mean there.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • ABAP Email Sending Program: Change Display user name in email

    Hi All,
    I have developed an email sending program using function module SO_NEW_DOCUMENT_ATT_SEND_API1. It is working fine but there is requirement that when the customer receives email, in the display name of sender, there should be some fixed name. But here in this case it is picking the Sy-uname i.e. system user name who is triggering the program.
    I also tried the FM SO_DOCUMENT_SEND_API1, but it only changes senders email address, and the requirement is to change the display name in email.
    Regards,
    Nikhil

    You will have to use ABAP class CL_BCS. With it you can specify the sender, both the address and the name.
              lv_smtp_addr = iv_senderaddress.
              lv_smtp_name = iv_sendername.
              call method cl_cam_address_bcs=>create_internet_address
                exporting
                  i_address_string = lv_smtp_addr
                  i_address_name  = lv_smtp_name
                receiving
                  result          = lo_sender_address.

  • "Sender Name is Invalid" (can't send email from POP account) iPhone 2.1

    I updated from V2.0.2 to V2.1 today. I also swapped out my original iPhone EDGE for a new iPhone EDGE due to unrelated problems with the speaker.
    Upon testing things after restoring from backup to the new phone I discovered that I could no longer SEND email from my POP account. I could receive email just fine on that account. Sending and receiving email on my MobilMe account also worked, as did sending and receiving email via the POP account while on the Mac computer I use to sync with this iPhone.
    After digging into this with AppleCare we discovered that somehow the Port Address for the Outgoing Mail Server for that POP account had been changed from 25 to 587 on the iPhone.
    Changing it back to 25 fixed my problem.
    We don't know whether the problem was due to the 2.1 upgrade or due to something in the restore process after swapping the phones.
    If you get the error message "Sender Name is Invalid" while trying to send email from a POP account on your iPhone, go to Settings > Mail, Contacts, Calendars and select the line for your POP account.
    Now scroll down to the Outgoing Mail Server entry which should show "SMTP" and the name of the outgoing mail server for that POP account. Select that line. This will display a list of servers with your POP account server showing at the top as the Primary Server. Select that line.
    In the panel that displays, check the Server Port. If it is something odd like 587, that may be your problem. Select the line and you can edit it to something more normal like 25. Touch the "SMTP" button at the top left of the number entry screen to accept that new value.
    We discovered that after correcting that value on the iPhone it STAYS corrected even after doing a new Sync with iTunes, or after MobileMe syncs.
    --Bob

    Sorry you had problems Bob.
    Depending on the mail service you are using, Port 25 or Port 587 are usually acceptable for outgoing
    SMTP mail. Many cafes will block the customary port 25 to prevent spammers from using their
    wireless access.
    There is a superb tutorial posted here:
    http://www.webmail.us/docs/support/Macintosh-OSX-Mail.pdf
    Also be sure for each mail account to turn ON the secondary AT&T server shown at the bottom
    of the SMTP server list for each account -- it will make your transition from wireless to Edge
    to 3G networks much more reliable.
    Thanks for sharing what you've learned. Hope this helps.

  • How can I send an email to a group in my address book, but hide the individual names and email addresses?

    how can I send an email to a group in my address book, but hide the individual names and email addresses?

    You used to be able to do this through leaving unchecked the box in preferences "when sending to a group show all member addresses". However, that feature failed some time ago (two or three years?) and the only way to hide the addresses now is to put the group in the BCC field.

  • I used to be able to increase the size font of the persons name sending me an email or text message.  I have an iphone 5 and can no longer do that.  Help!

    I used to be able to increase the size font of the persons name sending me an email or text message.  I have an iphone 5 and can no longer do that.  Help!

    Just the name? Don't ever recall that being a feature. However, for Mail and Messages (and a few other apps): Settings app > General > Text Size

  • How to block emails with specific sender name?

    I find some of the spam emails has a common sender name, but the sender email address is random. How to create an Outlook rule to block such emails? It seems Outlook rule can only blocks emails based on sender email address, not the sender name.
    Also is it possible to block emails based on its language, for example, I want to block all emails in Russian.

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • How to send a group email where the recipients' names and addresses remain anonymous?

    I wish to send out an email to a "Group" in my Apple Contacts. I want the several recipients in the group to be unknown to each other, where their names and addresses are invisible – except myself, the creater of the email.
    Does Apple 'Mail' and/or 'Contacts' allow for this?
    And, by keeping the group invisable, will this prevent any one recipient from responding as a 'Reply All,' thereby still being able to respond to everyone in the otherwise invisible group?
    TOM

    Put the addresses in the Bcc field. If it is not shown, select it from the button on the compose window:

  • Name of attachment PFD form, while sending it by email?

    after displaying PDf form on screen (preview) , we send it by EMAIL from ICON on screen,
    the email is creating ,but the name of the attachment PDF file, is internal sap name.
    we want to control this name, and make it our name (with some meaning)
    how can we control this name from the program that sends the PDF to the screen?
    Edited by: MIRADV on Jul 10, 2011 9:15 AM

    its a privet  QM form, the program has been converted to 'Z' privet program : ZQMR_RQQMUD03,
    sending the form for printing by :
    CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = ie_outputparams.....
      CALL FUNCTION lv_funcname
        EXPORTING
          /1bcdwb/docparams  = fp_docparams

  • Default the sender name while sending email from discoverer 11g viewer

    Hi,
    Can we put a default value of a sender in the email which are sent from discoverer 11g viewer.??

    Hello
    Yes, you can do this but you have to edit one of the UIX files to do it. The following is taken from my new Discoverer 11h Handbook which will be out later in the year.
    If you want to force users to send Discoverer reports from a prespecified e-mail account, use the following workflow:
    Locate this file: $MIDDLEWARE_HOME/user_projects/domains/ClassicDomain/servers/WLS_DISCO/tmp/_WL_user/discoverer_11.1.1.2.0/<tmpfolder>/war/Email.uix
    NOTE: In my system the name of the tmpfolder was 51oeh7. You may have a different name for <tmpfile> on your system and so may need to do a search for Email.uix.
    Make a safe backup of Email.uix.
    Find the following line and add the information in bold, changing [email protected] with your default email address:
    <contents>
    <messageTextInput required="yes" name="sender" disabled="true"
    tip="[email protected]" columns="40"
    prompt="${uix.data.nls['email.text.sender']}" text="[email protected]"/>
    NOTE:  In the above, you will be replacing text="${uix.eventResult.sender}" with your default email address like: text="myemail.mycompany.com"
    Find the following line and add the line in bold below it:
    <formValue name="event" value="sendEmail" />
    <formValue name="sender" [email protected] />
    NOTE: Make sure the domain name you provide is the same domain you are using for the SMTP server; otherwise, your Discoverer Viewer users will not be able to send e-mail.
    Take a backup of the modified file and place it somewhere safe.
    Stop and restart the WLS_DISCO server in the WebLogic Server Administration Console.
    Notes concerning editing of UIX files:
    Never make any changes without first backing up the UIX file you intend to work on. You need to go slowly and carefully, making backups as you go and trying your modifications on a test system first.
    Any changes you make to a UIX file will not be supported by Oracle, and if you run into any problems with changes you make to a UIX file, you will be on your own, which is why you need a backup.
    If you need future support, you will need to be able to prove that the issue you are encountering is not because of any changes you have made. You will basically need to have a clean instance to prove that the issue is still there.
    Any upgrades or patches that you subsequently apply may overwrite any custom changes that you have made to the UIX files. It will be your responsibility to keep copies of any changes you have made, and it will be your responsibility to make sure these changes are still valid after any upgrade or patch.
    NOTE: I cannot be held responsible if you tamper with your UIX files and mess up your system. You have been warned! That said, there are many examples for editing UIX files on Oracle’s Support site. So long as you are careful and heed the warnings mentioned, you should be fine
    Best wishes
    Michael

  • How do i change the my sender name that is appearing in my email that's incoming? its correct on my iPhone email and my internet carriers email access site.

    How do i change my sender name that is appearing in my email that's incoming? it's correct on my iPhone email and my internet carriers email access site, but not on my imac email. for instance, when someone else gets my email...it says its from "mike Hoak".  I need it to be me (Karen), not one of my random contacts.  not sure how it even happened.

    Hi karen elizabeth I,
    I understand that you want to change the full name associated with your email account in Mail on OS X. Here is an article that will help you find this setting and adjust it:
    Mail settings you might need from your email provider - Apple Support
    http://support.apple.com/en-is/HT1277
    This setting can be found by going to your Mail Preferences, then the Accounts tab, then selecting your account. Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • Email Sender Name not changed as per note-788626

    Hi,
    We have scenario where WebApplication are posting orders into ECC via SAP XI in the form of IDOC. Once Orders are placed in ECC, we want to send confirmation email back to web customers with Order number. As per note#788626, We have put in the logic for changing the generic sender name as internet address  in the driver program calling smartforms and send as attachment. This driver program is atttached to output type via transaction NACE for Transmission Mediom - 5 (External Send). NOW, The program - RBDAPP01 which posts IDOC into ECC is scheduled through a JOB Scheduling tool in ECC.
                                        Surprisingly, the emails are getting triggered with sendername (userid) of Job Scheduling tool. But we want sender name as generic internet address. The custom code as per note - 788626 is not changing the sender name. Am i doing anything wrong here ?
    Regards,
    Sarang

    Sorry, but I don't believe you can do that. I've never heard of it or seen it done.

  • Sending from Mail - email name

    I have my yahoo emails coming to my Mail software and also emails from my website directing to this. I want to be able to send emails with my website address rather than the yahoo name. How can I do this?

    If you mean the sender name (the name that appears on the From line when other's receive your email), to change it on an iOS device, go to Settings>Mail,Contacts,Calendars...tap iCloud under Accounts, tap your iCloud account at the top of the next screen, tap Mail at the bottom of the next screen, then enter the name you want to use in the Name field at the top.

  • Changed Sender name/address of previously received email?

    Something weird is happening with my Apple Mail.  I'm receiving some old messages that I already received last year, but the Sender name has been changed to a totally different person.  That is, the re-sent message has the wrong Sender name and not the name of the sender who originally sent me the message.  I've only received a couple of these messages but when I looked around in my mailbox, I noticed that this same thing has happened to other messages too. 
    Has this happened to anyone else?  Is my mail getting too full?  Any advice would be appreciated.

    ''ricktls [[#question-1023149|said]]''
    <blockquote>
    I will receive several emails when I turn on the computer. Most of the emails will have the correct sender and their message details. Sometimes though I will receive the emails from different senders but when I open the message detail the messages are all the same. Is there a setting that I can use to fix this problem?
    </blockquote>
    ''Airmail [[#answer-635676|said]]''
    <blockquote>
    Your folder is getting corrupted.
    Right click the problem folder and select Properties. Then Repair Folder.
    '''Be prepared to lose some messages if the corruption is very bad.'''
    Read this on how to maintain your email system to help prevent this in the future.
    http://kb.mozillazine.org/Keep_it_working_-_Thunderbird
    </blockquote>
    I have tried repairing the folder but with no improvement

  • EWS Managed API: Email sender name incorrect if loading properties of multiple emails and several emails have same email address (but different names)

    Hi,
    I have an issue using the Exchange Web Services Managed API. I'm essentially implementing an 'inbox', and am essentially using two calls:
    folder.FindItems(filter, view) with the view set up with the 'idonly' property.
    The returns a 'FindItemResults<>' object containing a set of items.
    And then calling service.LoadPropertiesForItems(items, props), where the props contains all 'first class properties', which includes the sender details.
    Now, the inbox contains several emails from the same email address but with different displaynames.
    E.g. There may be one email from "Bob <[email protected]>" and another email from "Alice <[email protected]>" and another email from "Charlie <[email protected]>" etc.
    The issue is that in the information that EWS returns from the call to LoadPropertiesForItems, every email ends up with the same sender name (from the first one in the list)!
    i.e. When I enumerate through the returned items, the item.Sender.Name will always be"Bob" for every email where Sender.Address is [email protected] 
    I have debugged this with a http sniffer just to ensure that it really is the EWS coming back with this information rather than anything in the managed layer.
    Is this a known issue? How can I work around this (without querying every single email for the sender name individually, as that would be too slow)?
    Thanks

    Hi Venkat,
    Thanks for the reply.
    The scenario is that the client receives emails from a (3rd-party) automated system. The email address from this automated system is always "noreply@<blah.com>", while the display name is used to differentiate the actual sender.
    I suspect that this kind of system will likely become more widely used, and so for us will increase in priority (obviously its a priority for our client already)!
    Just for the record, if this is a known issue do you have a bug number or equivalent for it? (I tried to search but couldn't locate it).

Maybe you are looking for

  • [SOLVED] Yaourt search on AUR stopped working

    hi all :> yaourt's search engine was working quite nice until i booted up my computer this morning -.- does anyone have an idea to solve this problem!? downloading + building from aur works great with yaourt just the search thingy is kinda broken -.-

  • Multiple Account Assignment problem in BAPI_REQUISITION_CREATE

    I'm calling BAPI_REQUISITION_CREATE and passing tables REQUISITION_ITEMS and  REQUISITION_ACCOUNT_ASSIGNMENT. I'm passing the following to the items table:             'Y'           to lt_bapiebanc-acctasscat,             '1'            to lt_bapieba

  • Automatically change energy saver

    Is there anyway that I can have energy saver automatically change the setting to "Highest" when I start up Halo? I noticed a huge performance leap when I changed to highest in the middle of playing halo and was wondering if there were an easier way t

  • Missing media from itunes purchases

    I'm not sure what to do here. I have two Apple IDs and I can't remember one of them. If I search for it it only gives me the option of changing my password for the current one I do remember. I'm missing 8 seasons of a show that was linked to my Apple

  • Urgent: Passing Metadata to SWF loaded via SWFElement?

    Hi! my problem: I have a SWF-Animation made in Flash. This animation will be loaded via a OSMF-Plugin as an overlay (SWFElement in ParallelElement). That works perfectly so far. But now I have to pass some Text (Metadata) to the SWF. Passing the meta