Mail is using anothers name

For a couple of years, and different computers and operating system versions I have a unique problem i have been unable to solve. Some but not all emails I receive and send have anothers name attached, as sender, and receiver. The last name is the same, but the first name is my daughters, who has never been on my machines, but is in my address book, but not associated with my email address.
Case in point; Today i sent a newspaper article to myself, and on this MapBook Pro it came through as the sender and me as the receiver was her name. I went to my Mac Mini and the addressing was accurate for the newspaper article, how figure?

You could start by removing your deleted email.  To do this, go to icloud.com from your computer, open your Mail, click on the gear shaped icon on the upper right and choose Empty Trash.  If you need to remove more, click on your mail folders, select the mail to delete, press your Delete Key, when done, empty the trash again.

Similar Messages

  • How do I force Mail to use contact names in Address Book?

    I ~need~ Apple Mail to display sender names as I have them in Address Book. My students are Thai and have typed their sender names in Thai, so I can't recognise a thing. I've sorted all the names out in Address Book (in English) but Mail still displays sender names using the email default, rather than the names from Address Book.
    • Upon receiving new mail however, the message's sender name ~WILL~ show up as the name put in Address Book. HOWEVER, after viewing the message the name reverts back to the one specified by the email author!! After that I can't get the name to show up as the Address Book name!
    Is there a toggle somewhere? How do I force Mail to use the contact names from Address Book?

    Try unchecking this:

  • Connecting to SMTP mail server using user name and password in java

    Hi,
    I am trying to send mail using SMTP server in java.
    But my SMTP server only allows valid users to send mails. I need a way to pass my user name and password to my SMTP server.
    How do I do this ?
    Thank you
    Ramesh

    I think the client is not able to do a HTTP POST
    to the WLS server but it can do a HTTP GET.
    I dont know why.
    http://manojc.com
    "Ganesh" <[email protected]> wrote in message
    news:3eba91bc$[email protected]..
    >
    Hi,
    I deployed a rpc web service using WLS 7.0 SP2 in HP-UX 11 environment.When I
    invoke the web service through my browser (IE 6.0) using the web servicesurl,
    it brings my service method correctly. From there, if I click the invokebutton
    it asks me for a network user name and password under "weblogic" realm???If I
    provide the admin user credentials (which I supplied while creating mydomain)
    it is not accepting that it keeps popping up this network user passwordwindow
    over and over. Not sure which username/password I have to provide here tosee
    the result of my service.
    If I try to invoke the web service through my client (static) I am gettinga connection
    refused exception. I guess either way, I am not able to access my webservice.
    In the attached file, I have cut and pasted the client stack trace as wellas
    the server log trace from weblogic.
    Any ideas would be highly appreciated.
    Thanks,
    Ganesh

  • Configure Mail to use host name

    Hi,
    I'm trying to configure Mail on a Mac Mini Server. My problem is that I can't get the from email address to show correctly. The host name is demo.company.com, however email arrives with appleserver2.local (domain name). I've setup two accounts - administrator and user. When I send email from administrator to user it shows as coming form [email protected] - what I want it to show is [email protected]?
    I found an article (http://serverfault.com/questions/55342/change-email-domain-os-x-server) which seemed to ask the same question. The accepted answer made some changes to the main.cf file:
    myorigin = $mydomain
    mydestination = $myhostname localhost.$mydomain localhost $mydomain
    After I made the changes I restarted the Mail service, but it didn't solve my problem. I even rebooted the server but no change.
    Also, am I correct in thinking that a user's email address is configured using the Workgroup Manager under the Info tab?
    Mark

    I cannot recommend this, as I am not sure all the intergrations with other apps and databases would work properly, but see:
    http://hintsforums.macworld.com/showthread.php?t=108443
    Are you sure this is worth it?  My Mail folder is a long term archive, and I don't delete many messages.  Yet it is less than 20 GB.  Sounds like other apps and databases will overtake your space savings quickly.
    Ernie

  • We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is: Cannot send mail. The user name or password for iCloud is incorrect.

    We purchased a new iPad2 and registered it using a 'new' iCloud email/ID. We are unable to send email from the iPad and iPhone. The error is:>> Cannot send mail. The user name or password for iCloud is incorrect.

    About ~20 hours later, this ended up solving itself. We can send email using the '.icloud' email from both the iPad and iPhone.  Advise would be 'wait' before you start seeking alteranatives like yahoo, hotmail, etc.  This definitely is a convenient way to keep all your 'cloud' information in a centralized place, including the common email...

  • How to use multiple name-adresses pairs in Mail?

    Hello there,
    I had to format my machine due to a RAM glitch, and forgot how this was done.
    On the same email account, I want to use different names-addresses pairs (Alias), not just adresses (that is easy to do). I know it involves the edition of com.apple.mail.plist with a specialized editor (I started with Pref Setter, but it doesn't seem to be working properly as one item can't be renamed) since it is not in clear text anymore, but I can't succeed.
    Can anyone detail what is implied by this change?

    Thanks Abishek for your reply. 
    The problem is about passing 2 array list objects. 
    I have already done your proposal and the problem is you have both array list object with same value.
    My requirement is,
       I want to have ArrayList variables arrayList1  and arrayList2. Each will be populated with corresponding values based on the Rules fired.
    For. eg. Rule1 fires and adds "Value1" to arrayList1. Rule2 fires and adds "Value2" to arrayList2.
    I guess, this is not possible with default behaviour. Only Custom Helper Class can help.
    However I solved the problem in a different way. I created a schema which supports repeating nodes. Also I created a Helper class to Add Node to the document.
    <Test>
          <RepeatingNodes1><Node></Node><Node></Node>.......</RepeatingNodes1>
          <RepeatingNodes2><Node></Node><Node></Node>.......</RepeatingNodes2>
    </Test>
    Using the helper class, I add as many nodes possible.
    thanks

  • When sending an e-mail I used to just click on contacts then click on the name or group I wanted to send the e-mail to and move it to the "To" area of the e-mail.  All of a sudden I now get a full screen in "contacts" and can no longer move a name .

    MacBookPro 15
    OS - Yosemite
    Problem area - "Contacts"
    Problem - when sending an e-mail in "Mail" I used to open contacts to get an address.  A small window opened, I clicked on addressee and moved the addressee name to the e-mail.  Can no longer do this because I now get a full screen in Contact.
    Question - how do I get back to the small window in Contact?

    Mike,
    Are any of your other applications going wonky, or is it just Logic?
    I'm afraid I've never heard of this particular problem before, but if it were happening to me the first thing I would do is delete my "com.apple.logic.express.plist" file in Library>Preferences, then repair permissions in Disc Utility, and finally restart my computer.  Then I would launch Logic and see if the problem has been corrected.  It's amazing how much these two steps can accomplish.
    If that doesn't resolve the issue I would launch Logic and go to Preferences>Audio Units Manager to see if all my plug-ins are properly validated.

  • Is there any way to have Mail automatically use our default "Sent" folder?

    We are a small college, with a fair number of users who use Macs and iOS devices, and we run an IMAP mail server. By default, our accounts are configured with Sent, Trash, Drafts, and Junk folders. Apple's Mail.app insists on "Sent Messages" and "Deleted Messages" rather than "Sent" and "Trash".
    We instruct our users to use the menu command Mailbox > Use This Mailbox For > commands to select our server's folders on their desktops, and on iOS to use the Settings > Mail > Account > Advanced, but this is tedious and annoying. Most users get it about half right, so that some devices use our default "Sent", and some use "Sent Messages". (This happens with Trash as well, but most users are not concerned if their Trash differs device to device.)
    Is there any server setting that can hint to Mail.app that it should use "Sent" rather than "Sent Messages"?
    Apple has a support document about this issue, "Mountain Lion Mail: If messages aren't stored where expected on the server" (  http://support.apple.com/kb/PH11810 ).
    However, that doc (and the similar one for Snow Leopard) merely says, "When Mail stores messages on the server, it looks for specific mailboxes, by name, in which to put the messages. If Mail doesn’t find those mailboxes on the server, it tries to create them on the server or, failing that, on your Mac."
    The document does not specify what the "specific mailboxes" are, and certainly does not suggest that there is any way to have it cooperate better with our server, but perhaps there is a way?
    (If I was trying to be a good IMAP client, I might look for any of "Sent", "Sent Messages", or "Sent Items", and use what I found before going to the next step of creating my own folder. Hard to imagine that any IMAP account would be initially configured without some "Sent" folder, so why not try to discover what the user has before pig-headly making your own.)

    Unfortunately, I have not found a consise way to explain this to the general user, just a huge wall of text to work around something that Apple got wrong the first time they created an IMAP client, and has stubbornly persited with. Here's our documentation for this silly problem:
    Special Folders on IMAP
    The basic idea is that all IMAP mail programs keep all your mail on our server, so that, e.g. when you read or reply to a message, all of your devices can then show that message as read and replied to.
    By convention, each IMAP program treats a few folders on the server as "Special", such as a "Trash" folder, that deleted messages get moved to, and a "Sent" folder, where each message you send gets copied. When they all pick the same special folders, all of your devices will show the same view of your mail. However, if different devices use different server folders for their "special" Sent folder, then the mail from these two devices will wind up in two different places, and be harder to find.
    Unfortunately, Apple's Mail programs are particularly obscure and obtuse in the way they treat these folders: They show their special Sent and Trash folders on screen with the obvious names "Sent" and "Trash", but secretly, under the covers, they insist on using folders named, "Sent Messages" and "Deleted Messages" instead. Even if the server already has perfectly usable "Sent" and "Trash" folders, Apple clients will ignore them and create their own special case "special" folders.
    If you only ever use Apple devices to look at your IMAP mail, you might never even notice their deception. But, if you sometimes use another mail client, such as webmail, you will encounter the confusing truth: When we created your account for the very first time, we add a "Sent" folder (actually named "Sent") and a Trash folder, named "Trash", and this is what everything except Apple's mail will use by default, because those folders are already their the first time the client connects to your account. However, even though Apple shows your special sent folder at the top of the list, with a paper-airplane icon, and labels it "Sent", in fact they ignore the existing "Sent" folder and make and use their own "Sent Messages."
    SO, if you send some mail from webmail, it will be in your actual "Sent" folder, whereas if you send it from an Apple mail program, it will be put into your "Sent Messages" folder. If you look into either "Sent" special folder, you'll only find part of your previously sent mail.
    Similarly for Trash, though most users find it more problematic to have two different Sent collections than to have multiple trash buckets.
    To unify things, you can either set your non-Apple mail programs to use "Sent Messages" and "Deleted Items"; OR, you can set all of your Apple devices to use "Sent" and "Trash". Doesn't really matter which way you go, though if a majority of your devices are doing it a particular way, you should change the non-matching devices to agree with the majority.
    (All clear so far? Why did Apple make this so hard? It would have been utterly simple for them to check for an existing "Sent" folder, and to use one if there is one, rather than to always stubbornly create and use a new "Sent Messages" folder. Then, they add to the problem by pretending that their new "Sent Messages" folder is really just named "Sent". Stupidity all the way down.)
    Anyways, to find out what the majority of your devices are doing, check them each to see which of the "sent" folders shows up in the "normal" list of folders rather than in the "special" location, that is, what folder name is in the list at the bottom of the folder area, rather than up at the special "Sent" icon, (because the special one will always be labeled "Sent", not matter what the actual folder name is).
    For example, say that on all-but-one of your mail setups, you see a "Sent Messages" folder down in the normal list, and on the other device, you see "Sent" down in the normal list.
    In that case, you'd want to set the "different" device to make the folder named "Sent" be the special one, instead of the "Sent Messages" that it was currently using.
    Conversely, if all but one showed "Sent" down in the regular folder area, and only one showed "Sent Messages", then you'd want to make "Sent Messages" the special folder on the odd device.
    Once you have decided, see the specific sections below for the procedure to set the "special" folders for Apple's Mail.app on a Mac, Apple's Mail on an iPhone/Pad/Pod, or for RoundCube webmail, or for Thunderbird.
    Once you have every device using the same sent folder, then you can move any messages from the "extra" version of the folder into your special folder, and then you can delete the extra folder. (If you delete this extra folder and it later re-appears, then it means one of your mail programs is still using it as its "special" folder, and recreating it.)
    Similarly for Trash, though probably you could delete the extra trash folder without moving the files, because they are trash.
    Here are the details for changing the Special Mail Folders on the systems we use:
    A) iPhone, iPad, iPod:
    As a first step, use Settings > Mail to set your device to read your email account, then open the Mail program so that it will read the list of all of your folders from the mail server. After that, go back to Settings > Mail to make sure it is using the desired special mailboxes on the server.
    Select your IMAP account in the settings tool, and then press the button for "Advanced" settings, and find the list of special mailboxes, e.g. Sent, Trash, Drafts. For each, scroll through the list of folders on the server to choose the folder you wish to use for that function.
    Note: iPhones/Pads/Pods also can be set to keep sent mail locally on the device. This is a spectacularly stupid choice for normal IMAP, as none of your other devices will be able to see the messages you send from your phone.
    B) Mail.app on Mac desktops and laptops:
    Set up mail so that it reads your messages and folders from the mail server.
    Select the "Sent" folder that you wish to use in the list of folders at the lower left of the mail window. (On newer Macs, the folders may be hidden by default. Use the "View > Show Folder List" menu command to display them if necessary.)
    Use the menu command "Mailbox > Use This Mailbox For > Sent" to specify that the selected mail box is the special folder for sent mail, and similarly for your Trash, Junk, or Drafts folders.
    C) RoundCube Webmail (with the standard skin):
    Login to your webmail site , and select the "Settings" icon in the upper right of the window, which has a "Gear" icon. This will display a "Settings" panel with buttons for "Preferences", "Folders", and "Identities" settings. When you first open the Settings panel, the "Section" panel shows a row of buttons for different Preferences.
    Click "Special Folders" in the "Section" list to open a list of "Drafts", "Sent", "Junk", and "Trash". Each special folder is followed by a menu of all your server folders. Select the server folder to use for each special folder.
    D): Thunderbird:
    After you have set up your connection to your IMAP account, click "Get Mail" to fetch your existing mail and list of folders on the server.
    Next, select the menu command "Options > Account Settings…" (Note that on current versions of Thunderbird, the default menu drops down from an icon of three horizontal bars, in the upper right corner of the mail window. You can use the Options command in this menu to display a menu bar at the top of the Thunderbird window if you wish. With the full menu, the menu command to access the special folders settings is "Tools > Account Settings…"
    Select "Copies and Folders" in the list at the left of the Account Settings window. This panel has a section for Sent mail, Archives, Drafts, and Templates. Select "Junk Settings" in the list at left to specify the location of the Junk special folder.
    For each special folder, the default choice is the the folder on the server with the "typical" name, e.g. "Sent" for sent, and "Trash" for trash. To use a different name, select the "Other:" option for the folder, and then choose the desired folder from the list of folders on the server.
    Oof! That's a lot of explaining for a issue that Apple should have gotten right in the first place, or at least should have fixed in their next several tries. It would not break any existing functionality if they merely used whatever folder the server had created, and only made their own if there was none.

  • How to set up two POP e-mail accounts using the same POP and SMTP servers

    I have an e-mail address based on a domain I purchased which is based on my company name. Now retired, I have purchased a new domain with a simpler, personalised name. My original e-mail account uses the incoming (POP3) and outgoing (SMTP) mail servers operated by my ISP; mail.btinternet.com.
    I have set up a new account on my PC in Microsoft Outlook, and have successfully sent and received emails using the new e-mail address taken from my new domain name.
    I have now tried to mirror this on my iPhone, but every time I enter all the relevant data for the new e-mail address, user name, password, mail servers etc., and then press 'save', I get a pop-up which says: "xxxx" is Already Added  This POP account has already been added to your iPhone. ("xxxx" is the name given to my original e-mail account).  Nowhere have I input "xxxx" in the course of setting up the new account.
    I need both accounts operational during an extended switch-over period as I alert everyone to the e-mail change over. Can anyone suggest a solution to this problem?

    What targeting the Mail.app preference file, do the following:
    Quit the Mail.app first and using the Finder, go to Home > Library > Mail. Copy the Mail folder and place the copy on the Desktop for backup purposes.
    Using the Finder, go to Home > Library > Preferences > com.apple.mail.plist. Move the com.apple.mail.plist file to the Desktop.
    Note: Moving the com.apple.mail.plist file out of the Preferences folder will require re-entering all email account information when re-launching Mail.
    The only exception to this is if you have a .Mac account which will be recreated automatically and/or if you created an email account as part of the computer setup assistant when first turning on the computer when new.
    Launch Mail and decline any prompt to import mailboxes. After re-entering all email account information, the Mail.app should rediscover the existing account named folders and mailbox files at Home > Library > Mail.
    After confirming all mailboxes were successfully rediscovered, you can delete the copy of the Mail folder and old com.apple.mail.plist file from the Desktop.
    Test if this resolves the problem.

  • On ipad 4 how can I get the contacts to show up in alphabetical using first name first

    How is it possible to set up the contacts on my ipad 4 to display in alphabetical order using first name first????

    Finally figured it out...under settings> Mail, contacts, calendars> Contacts, sort order> Then choose first, last or last, first then do the same for display order

  • My iCloud mail is used in my old apple id, how can i move my old iCloud mail to my new apple id

    my iCloud mail is used in my old apple id, how can i move my old iCloud mail to my new apple id

    If the old ID is yours, and if it is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Mail is using 100% CPU processes - wondering if I possibly have the answer?

    Hi...
    I have a big problem with Mail using all the CPU processes but may just have found a possible solution. I'm posting to see if anyone else shares this problem or can shed some light on whether or not this is a possible solution.
    _*The Problem*_
    Over the past couple of weeks, I've noticed that Mail is using on average 100% of the processes and sometimes up to 168% (I have screenshots to prove it). My 17" MacBookPro gets very, very hot and the fans spin up to cool it down so it's obviously not right as it's never done this before. I can only use Mail intermittently now as the machine overheats quickly soon after Mail starts up. As a result, the CPU is being hammered so I can't now use Mail or other CPU intensive applications properly, which is a big problem.
    I've used the iStatPro widget to verify that Mail is constantly using 100% of the CPU processes. I've also verified this using Utilities / Activity Monitor. When the Activity Monitor application loads, I've selected Mail from the list of Process Names and then clicked Inspect. I've managed to identify the parent process as being launchd (110) which is using all the CPU power. Here are some other stats for this parent process:
    %CPU 95.56 (at that specific instance)
    Threads 15
    Ports 275
    CPU Time 3:30.55
    Context Switches 310968
    Faults 65795
    Page Ins 1
    Mach Messages In 272627
    Mach Messages Out 65025
    Mach System Calls 1459878
    Unix System Calls 103120
    I guess the important bit is the first bit that says 95.56%.
    I have screenshots to back this up but no way of posting them here. I have also managed to use Activity Monitor to generate sample data that the process is creating and again there is no way of posting an attachment here but there is lots of sample data from the process to look at. I've compared the sample data from my MacBookPro to a colleagues machine and the difference between the sample data is enormous. There is obviously something very wrong happening.
    Here's some basic info about my machine, with the serial number removed:
    Hardware Overview:
    Model Name: MacBook Pro 17"
    Model Identifier: MacBookPro2,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.33 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 2 GB
    Bus Speed: 667 MHz
    Boot ROM Version: MBP21.00A5.B08
    SMC Version: 1.14f5
    Sudden Motion Sensor:
    State: Enabled
    System Software Overview:
    System Version: Mac OS X 10.5.6 (9G55)
    Kernel Version: Darwin 9.6.0
    Boot Mode: Normal
    Time since boot: 1:44
    _*The Possible Solution??*_
    I recently installed a Beta version of Daylite 3 as I was interested in the application and remembered that it integrates closely with Mail. I wondered if Daylite was constantly trying to communicate with Mail and having problems. Having uninstalled Daylite 3, the problem of Mail using all the processes has so far not reappeared. Mail is now using very little of the CPU processes as is usual. However, I'm currently at home instead of on my network at the office so I'll wait to see if the problem still fails to appear when at work.
    I know other people have had problems with Mail using 100% of the processes. Have you also installed Daylite 3? There has been some talk of Flip4Mac being a possible culprit but I use Flip4Mac and haven't previously had the problem. The only recent change and connection I can think of is an install of Daylite 3.
    I don't want to talk down Daylite 3 but it's the only thing I can think of and having uninstalled it, the problem hasn't occurred. I hope I have stumbled across the solution but any thoughts, shared experiences or feedback would be greatly appreciated...
    Many Thanks,
    Nigel

    Hi...
    Thanks for the post. Not sure what you mean when you say "What does Mail say it's doing?" Can you be more specific and supply specific instructions to follow so that I can give you the information you need?
    I've sampled the process but can't post any attachments on the forum. I've listed what the Activity Monitor stats are saying at the top level in the post above.
    This is a serious problem that's hammering my machine and making it overheat and almost making it unusable. Any feedback or instructions anyone can give me for what info to supply to help you determine what the issue is would be greatly appreciated. I'm hoping to find a solution here rather than have the machine overheat permanently and eventually fail, leaving me to sort it out with AppleCare.
    Help!
    Clown Guy

  • TS3899 With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this pro

    With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.

    Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad.  Pay real close attention to the outgoing server name, and port.  You may need to change in on the pad. 

  • Mail sending using sender importing parameter using so_object_send function

    Hi all,
            I using so_object_send function module to send mail. My requirement is with respect to any user 
            logged in the sender mail address should be taken by V_SENDER parameter in exporting
            parameter.
    <code>
    CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                folder_id                  = wa_folder_id
                forwarder                  = w_forwarder
                object_fl_change           = wa_object_fl_change
                object_hd_change           = wa_object_hd_change
                object_id                  = wa_object_id
                object_type                = w_object_type
                outbox_flag                = w_outbox_flag
                owner                      = w_owner
                store_flag                 = w_store_flag
           IMPORTING
                object_id_new              = wa_object_id_new
                sent_to_all                = w_sent_to_all
                sender                     =  v_sender
           TABLES
                objcont                    = i_objcont
                objhead                    = i_objhead
                objpara                    = i_objpara
                objparb                    = i_objparb
                receivers                  = i_receivers
           EXCEPTIONS
                active_user_not_exist      = 1
                communication_failure      = 2
                component_not_available    = 3
                folder_not_exist           = 4
                folder_no_authorization    = 5
                forwarder_not_exist        = 6
                note_not_exist             = 7
                object_not_exist           = 8
                object_not_sent            = 9
                object_no_authorization    = 10
                object_type_not_exist      = 11
                operation_no_authorization = 12
                owner_not_exist            = 13
                parameter_error            = 14
                substitute_not_active      = 15
                substitute_not_defined     = 16
                system_failure             = 17
                too_much_receivers         = 18
                user_not_exist             = 19
                originator_not_exist       = 20
                x_error                    = 21
                OTHERS                     = 22.
      IF sy-subrc  0.
      ENDIF.
    </code>    
    My Requirement is V_SENDER can be any user of that SAP system,noot particularly logged in user.
    I tried using this functionality my sy-subrc is zero. but i am not able to get any mails with that user name in V_SENDER.
    Do i need to do any further settings or any more code is required.
    Even i tired giving SUBMIT rsconn01 .
    still its not working.
    Please suggest any solutions if we have.
    Thanks,
    satish

    Hi,
    to send mails check this:
    FORM docu_send_email USING pv_otfdata TYPE tsfotf
    pv_emailid TYPE any
    pv_formname TYPE any.
    DATA: lv_filesize TYPE i,
    lv_buffer TYPE string,
    lv_attachment TYPE i,
    lv_testo TYPE i.
    DATA: li_pdfdata TYPE STANDARD TABLE OF tline,
    li_mess_att TYPE STANDARD TABLE OF solisti1,
    li_mtab_pdf TYPE STANDARD TABLE OF tline,
    li_objpack TYPE STANDARD TABLE OF sopcklsti1,
    li_objtxt TYPE STANDARD TABLE OF solisti1,
    li_objbin TYPE STANDARD TABLE OF solisti1,
    li_reclist TYPE STANDARD TABLE OF somlreci1,
    li_objhead TYPE soli_tab.
    DATA: lwa_pdfdata TYPE tline,
    lwa_objpack TYPE sopcklsti1,
    lwa_mess_att TYPE solisti1,
    lwa_objtxt TYPE solisti1,
    lwa_objbin TYPE solisti1,
    lwa_reclist TYPE somlreci1,
    lwa_doc_chng TYPE sodocchgi1.
    CONSTANTS: lc_u TYPE char1 VALUE 'U',
    lc_0 TYPE char1 VALUE '0',
    lc_1 TYPE char1 VALUE '1',
    lc_pdf TYPE char3 VALUE 'PDF',
    lc_raw TYPE char3 VALUE 'RAW',
    lc_ordform TYPE char15 VALUE 'ZORDCONFIRM_01',
    lc_attachment TYPE char10 VALUE 'ATTACHMENT'.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = lc_pdf
    max_linewidth = 132
    IMPORTING
    bin_filesize = lv_filesize
    TABLES
    otf = pv_otfdata
    lines = li_pdfdata
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT li_pdfdata INTO lwa_pdfdata.
    TRANSLATE lwa_pdfdata USING ' ~'.
    CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer.
    CLEAR lwa_pdfdata.
    ENDLOOP.
    TRANSLATE lv_buffer USING '~ '.
    DO.
    lwa_mess_att = lv_buffer.
    APPEND lwa_mess_att TO li_mess_att.
    CLEAR lwa_mess_att.
    SHIFT lv_buffer LEFT BY 255 PLACES.
    IF lv_buffer IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Object with PDF.
    REFRESH li_objbin.
    li_objbin] = li_mess_att[.
    DESCRIBE TABLE li_objbin LINES lv_attachment.
    Object with main text of the mail.
    lwa_objtxt = space.
    APPEND lwa_objtxt TO li_objtxt.
    CLEAR lwa_objtxt.
    DESCRIBE TABLE li_objtxt LINES lv_testo.
    Create the document which is to be sent
    lwa_doc_chng-obj_name = text-008.
    lwa_doc_chng-obj_descr = text-008.
    lwa_doc_chng-sensitivty = lc_0.
    lwa_doc_chng-obj_prio = lc_1.
    lwa_doc_chng-doc_size = lv_testo * 225.
    Pack to main body.
    CLEAR lwa_objpack-transf_bin.
    header
    lwa_objpack-head_start = 1.
    The document needs no header (head_num = 0)
    lwa_objpack-head_num = 0.
    body
    lwa_objpack-body_start = 1.
    lwa_objpack-body_num = lv_testo.
    lwa_objpack-doc_type = lc_raw.
    APPEND lwa_objpack TO li_objpack.
    CLEAR lwa_objpack.
    Create the attachment.
    Fill the fields of the packing_list for the attachment:
    lwa_objpack-transf_bin = gc_x .
    header
    lwa_objpack-head_start = 1.
    lwa_objpack-head_num = 1.
    body
    lwa_objpack-body_start = 1.
    lwa_objpack-body_num = lv_attachment.
    lwa_objpack-doc_type = lc_pdf.
    lwa_objpack-obj_name = lc_attachment.
    lwa_objpack-obj_descr = text-008.
    lwa_objpack-doc_size = lv_attachment * 255.
    APPEND lwa_objpack TO li_objpack.
    CLEAR lwa_objpack.
    lwa_reclist-receiver = pv_emailid.
    lwa_reclist-rec_type = lc_u.
    lwa_reclist-notif_del = gc_x.
    lwa_reclist-notif_ndel = gc_x.
    APPEND lwa_reclist TO li_reclist.
    IF li_reclist IS NOT INITIAL.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = gc_x
    TABLES
    packing_list = li_objpack
    object_header = li_objhead
    contents_bin = li_objbin
    contents_txt = li_objtxt
    receivers = li_reclist
    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 0.
    MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    ENDFORM. " DOCU_SEND_EMAIL

  • External e-mail id used in snc

    Hi Team,
    How do we have external e-mail idu2019s used in SAP SNC.
    e.g. in case the downloaded PO Confirmation file is to be sent to Vendors Gmail id or vice versa.
    Thanks,
    Sanjay

    Hi Sanjay,
    Follow the below steps:
    1)Login as a Supplier and go to Tools --> File transfer --> download center and click on create
    2) Enter Customer BP=<customer_BP> then click on next
    3) Select Purchase due list then click on next
    4) click on next
    5)Select peridicity of the job as per your need and click on next
    6)Enter profile name,delivery type of download file as email attachment and enter external email ID(supplier email id or person who wants this file as email) check the immediate file generation check box then click on finish.
    Ensure that basis setting is done such that external email can be sent otherwise system will not sent email to external email id.
    You can check email is sent or not goto transaction code:SOST and check the same.
    Regards,
    Nikhil

Maybe you are looking for

  • Is there a way to prevent a PDF file from being forwarded?

    is there a way to prevent a PDF file from being forwarded? For example, im a personal trainer and if i send a client a plan via PDF file, i want to make sure that they cannot send it to anyone else. I read about how you can secure a file by creating

  • Integration of sap R/3 (4.7) and Microsoft active directory (2003)

    Hi All, I would like to know integration of sap R/3 (4.7) and Microsoft active directory (2003) and also SAP EP and Microsoft active directory. I have been working as a ep consultant with a local bank. I am new for this integration work, So please ki

  • Repairing system permissions

    OK, I have wondered this already for a while now.. Last time, my microphone from my iBook stopped working. I thought.."noo..!the wire is cut" etc. I tried everything from settings etc etc. Nothing. Then - I decide to try "repair system permissions" f

  • Error loading w_day_d

    In trying to extend the date of w_day_d by setting the refresh dates of w_day_d, w_dual_g, w_week_d, w_month_d, w_qtr_d, and w_year_d to null, the tables are empty except for one row with the date of 1/1/1900. This had previously worked when tested i

  • How to Disable OWA 2013 Mobile View

    Hi, I've the Exchange Servers 2013 CU6 at my environment. If I access OWA from mobile, default owa view is auto changed to narrow view. May I know how can I disable the OWA Mobile View and set all session to desktop view? Thanks & Regards, Nay Lin  N