Can't send mail or type new message

I'm using OS X 10.4.7 and after installing the most recent update, I can no longer send mail in the mail program. When I hit reply, nothing at all happens. I get a new message window when I hit forward, but I can only type two letters, then nothing happens, and I can't send.
I am receiving mail fine and I can send through comcast.net. Other computers on my network can send mail, but not mine.
I tried changing the server to port 587 and that did nothing.
Thanks for any help.
FIESELAD
G5 dual 2.5 tower   Mac OS X (10.4.7)  

This particular problem in Mail is usually caused by some Launch Services cache or preferences corruption. The following article describes how to manually reset Launch Services. The notes at the bottom of the article also provide information about the side effects of deleting each of the files involved.
Resetting Launch Services
The following article also describes the side effects of cache cleaning:
Side effects of System cache cleaning
The following article provides links to some utilities that can be used for troubleshooting and cache cleaning:
Resolving Disk, Permission, and Cache Corruption
It seems that the most appropriate utility for solving this particular problem is Tiger Cache Cleaner.
In addition to the utilities mentioned above, you may also consider OnyX, which is free. If you want to try OnyX, after installing it, do this (be sure to read the articles about the side effects of cache cleaning first):
1. Quit all applications.
2. Launch OnyX and enter your administrator password.
3. Click Maintenance. In the Reset section, check LaunchServices database.
4. You may uncheck any other pre-checked options if you've already done them using other utilities.
5. Click the Execute button.
6. Restart.
If that doesn't solve the problem, you may try again checking the Links between documents and applications option in step 3 instead.
And yet another free cache cleaning utility is Cache Out X.
Please, let me know whether you were able to solve the problem, what worked for you and what didn't.

Similar Messages

  • Can't send mail after trying New Port

    I've read the discussions regarding sending mail via smtp. Tried under mail serves smtp.mac.com, smtp.me.com, smtp.me.com:primagirl. Tried to change to port 587 from 25. with SSL and without checked. Nothing can be sent! Please help!

    Hi, here are the settings for outgoing mail through MobileMe:
    Server: smtp.me.com
    Port: 25
    SSL: On
    Authentication: Password
    Username: MobileMe account name without the @me.com
    Password: Your MobileMe password.

  • Can't send mail from my new ipod touch

    Got a brandnew ipod touch 32gig and everything works fine except the sending of emails. I always get the error message "the connection to the outgoing server smtp.xxxx.ch failed". I have no problems to send emails from my computer with the identical settings. In the settings section of the ipod touch/accounts/outgoing mail server/advanced/outgoing settings/server port, there is a port selected with the number "587". I did not know that I need to have a port selected when there is no authentication necessary. I tried different port numbers but nothing changed. Any ideas?
    Thanks for help in advance.

    So long as you are connected to WiFi and the email is configured correctly you can both view and send with the iPod Touch.
    @OP: Do you have that email account setup on your computer? If you connect your iPod Touch and look in iTunes. Click on the name of your iPod under Devices. You should now be at the summary page. Click on over to the Info tab. Choose Sync Mail accounts. Chose the application you use and then put a check next to your account. Of course, thats all assuming you have this email setup on your computer already.
    Have a look at this article.
    Syncing iPhone and iPod touch with your computer

  • Can't send mail with server -- upgrade OS?

    I have a new MB, so have been setting things up. In the course of all this, I realized, what with checking settings, etc., that I can easily send mail from the new laptop, which is running whatever the latest OS is -- I think that's 15.5.5, but I have nearly constant difficulties with Mail on my desktop, which is running 15.5.2. I keep getting -- but not always -- messages saying mail can't be sent using the selected server; do I want to try another server or try later, or what. But on the laptop -- I don't get that at all.
    I did a search on the Apple site and its recommendation? Upgrade the OS. Now, I can certainly do that, though I always hold my breath for fear something will go wrong and I'll break something that wasn't broken, so to speak.
    Is anyone else having this issue? Did upgrading the OS stop it? I probably will have to, because I really do need the Mail program to work as it should. I'm getting ready to move to it from Entourage, but I can't if I can't send mail.

    I suddenly started having the can't send mail problem yesterday, and I'm on 10.5.5, so upgrading the OS is not a fix. I followed all the directions here: http://support.apple.com/kb/TS1307?viewlocale=en_US
    and that did not work. But it might, if quitting is done at the right time....
    I don't know what fixed it, and I'm not sure if it will remain fixed (last night I fixed it on my own, only to find when I started up this morning that it wasn't working again), but today I followed the advice from another discussion to delete the outgoing server (in prefs/accounts/outgoing pulldown menu) and make a new one... make sure to delete all mail that is pending (anything in outbox save as draft and delete)... and to quit. In other words - follow the instructions on the support page or some of the other discussions, but quit before trying to send again. The other thing I did was do a software upgrade - there was something for airport and a security fix that I installed. Whether it was doing just the right stuff in just the right order or if it was the software installs that moved things along, I can't say. By the looks of it, this seems to be a long time issue for Apple Mail, though I've been using it for years without issue.

  • TS4291 I can't send mail from my iPad apps, I just get the error message, 'The recipient- was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    I can't send mail from my iPad apps, I just get the error message, 'The recipient… was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    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/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    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
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    eMail Groups - 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

  • Can't send mail, get message: the smtp server rejected the password. I tried lock and unlock keychain. I tried unlock captcha. Gmail works okay, it is Mail that does not. Help!! :(

    Can't send mail, get message: the smtp server rejected the password. I tried lock and unlock keychain. I tried unlock captcha. Gmail works okay, it is Mail that does not. Help!!

    Hi
    You need to check with your ISP whether or not the send mail server (SMTP) requires a password.  Some do, but many do not.  When you know the correct password to send mail, then you need to tell Mail as follows:
    Mail menu > Preferences > Accounts > Select the account
    Click on the Outgoing Mail Server (SMTP) combo box, and select Edit SMTP Server List...
    In the Account Information tab put the server name
    In the Advanced Tab, set up the authentication information from your ISP.
    Good luck
    Bob

  • New mac - can`t send mail

    i have just gotton a new mac book pro, and have imported everything from my old mac. everything seems to be ok, except i can not send mail, only receive and read..... i have also tried deleting my accounts and reinstalling them, but it did not help. anybody who can help me with this??

    With the caveat that I'm not sure why this exactly works, I had a similar problem which I just recently solved.
    My laptop would send and receive mail fine when connected to a modem. But at another location I had access to a broadband connection. For the longest time I could only receive mail but not send from that location. Then I had to borrow a friend's laptop for a while after mine crashed. I set up the borrowed computer for mail and to my surprise I found I could both send and receive from my wireless broadband location. After I got my own laptop back up and running, I found the old behavior of not being able to send mail was back. Determined to find out why, I compared the preferences>accounts settings of my laptop with my friend's. I found one difference, changed it on my laptop and voila … it now works.
    The key was in the server settings, found at the bottom of Mail's Preferences>Accounts. Clicking that button brings up another window called SMTP Server Settings. It seems a default for server port is 25. This, for some reason does not work, but 587 does.
    I honestly do not know how 587 was entered into my friend's laptop, but when I changed mine from 25 to 587 it worked. You should note the warning not to change these settings without consulting the System Administrator, but I'm a single user, so I just went ahead and experimented.
    Good luck

  • In address book on my new macbook pro I can't drag contacts to a new message or drag a group to bcc. What do I need to do?

    in address book on my new macbook pro I can't drag contacts to a new message or drag a group to bcc like I could on my 2007 macbook pro. What do I need to do? 

    The issue has nothing to do with your MacBook Pro. You are using a different version of OS X.
    If you are using Apple's Mail application, it will search both previous contacts and the address book as you type the send address.
    Barry

  • I can receive mail on my mac account, but I can't send mail. What should I do?

    I can receive mail on my mac account, but I can't send mail.  What should I do?

    Hello, sounds like you haven't switched to iCloud yet, the old dot Mac & MobileMe servers are going away or gone for most already.
    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
    • Server name: imap.mail.me.com
    • SSL Required: Yes
    • Port: 993
    • Username: [email protected] (use your @me.com address from your iCloud account)
    • Password: Your iCloud password
    SMTP (outgoing mail server) information:
    • Server name: smtp.mail.me.com
    • SSL Required: Yes
    • Port: 587
    • SMTP Authentication Required: Yes
    • Username: [email protected] (use your @me.com address from your iCloud account)
    • Password: Your iCloud password
    Also, you must upgrade your password to meet the new criteria:  8 characters, including upper and lower case and numbers.  If you have an older password that does not meet these criteria, when you try to setup mail on your mac, using all of the IMAP criteria listed above, it will still give a server error message.  Go to   http://appleid.apple.com         then follow directions to change your password, then go back to setting up your mail using the IMAP instructions above.
    Thanks to dpepper...
    https://discussions.apple.com/thread/3867171?tstart=0

  • Can't send mail on ios8.02 to a certain address??

    I have been sending emails on my laptop for many years using Outlook to a contact in Japan.  [email protected]
    Yet when I send it on my iPhone I get a failure message saying 'recipient rejected by server'. I've checked the address character by character and it's perfect (and it was added in, not pasted). My sending address is a gmail address, if that matters.
    Someone suggested it was because the server didn't have a DNS address, but how come I can still send on my laptop without problems.

    Although I have cable modem service at home with Time Warner (RoadRunner), I've kept an old Earthlink dial-up account for use when traveling in case a high speed wired or wireless connection isn't available which is becoming less common.
    If Earthlink is your ISP used for connecting to the internet via dial-up access, I use the following Earthlink SMTP settings for my Earthlink account.
    Outgoing Mail Server: smtpauth.earthlink.net
    Server Port: 25 (which should work if connecting to the internet via Earthlink dial-up access).
    Use Secure Sockets Layer (SSL): Off or not selected.
    Authentication: MD5 Challenge-Response
    User Name: The entire Earthlink email address.
    Password: The account's password - the same password used to check the incoming mail server for new messages.

  • Can't send Mail on dial up Earthlink?

    We have set up a sub account for a grandson on Apple's Mail application. After many problems finally got Mail to receive message but can't send mail.
    He gets the message: "his email earthlink.net can not be contaced on port 25, message delivery failed." The primary account works well.
    He is on an eMac 10.3 with dial up to earthlink.net

    Although I have cable modem service at home with Time Warner (RoadRunner), I've kept an old Earthlink dial-up account for use when traveling in case a high speed wired or wireless connection isn't available which is becoming less common.
    If Earthlink is your ISP used for connecting to the internet via dial-up access, I use the following Earthlink SMTP settings for my Earthlink account.
    Outgoing Mail Server: smtpauth.earthlink.net
    Server Port: 25 (which should work if connecting to the internet via Earthlink dial-up access).
    Use Secure Sockets Layer (SSL): Off or not selected.
    Authentication: MD5 Challenge-Response
    User Name: The entire Earthlink email address.
    Password: The account's password - the same password used to check the incoming mail server for new messages.

  • Can't send mail- password rejected

    I just got a new MacBook and after setting up Mail, I can receive emails but I can't send them. I get an error message that reads "The SMTP server “smtpauth.earthlink.net” rejected the password. Please re-enter your password, or cancel." But then when I re-enter the password, it still rejects it. I've read every troubleshooting thing I can find, but nothing will solve this problem. I've checked the outgoing mail server, my user name and password and everything is correct. And I still can't send mail. HELP!

    Hi
    You need to check with your ISP whether or not the send mail server (SMTP) requires a password.  Some do, but many do not.  When you know the correct password to send mail, then you need to tell Mail as follows:
    Mail menu > Preferences > Accounts > Select the account
    Click on the Outgoing Mail Server (SMTP) combo box, and select Edit SMTP Server List...
    In the Account Information tab put the server name
    In the Advanced Tab, set up the authentication information from your ISP.
    Good luck
    Bob

  • Can't send mail - server properly configured and up

    I'm unable to send mail. Here's roughly the sequence of events that
    got me where I am:
    1) Connect through a firewall using VPN (the Cisco VPN client)
    over the wireless interface
    2) Compose a message, and click 'Send'
    3) The server is down, so I get the "Can't send e-mail" pop-up
    dialog
    4) Click 'Try later'
    5) Reconnect later while the server is up, and try to send
    6) Still see the "Can't send" pop-up
    Steps 3) and 4) happened a lot. In particular, turning on the
    wireless interface in order to connect over VPN causes Mail to try
    (and fail) to connect to the server.
    The server is up; I can reach it with "telnet <server> 25".
    Moreover, Mail's own "Connection Doctor" says it's able to connect
    to the server.
    This configuration worked until the sequence of events described above,
    and nothing on the server side has changed since.
    I've tried everything I can think of to get Mail back in a working state.
    Notably I've deleted the contents of "Outbox", quit Mail, and then restarted.
    I've also deleted and re-created the server configuration, without success.

    Two additional data points:
    1) I found a mail server I could use from outside the firewall.
    When I added that server, and closed the VPN session, Mail was
    (finally!) able to send. (But see below why you shouldn't rush
    to blame VPN).
    2) When there are two mail servers configured in preferences, the
    "Can't send mail" pop-up gives you the list of choices. If you
    select an alternate server from the list, the "Try selected
    server" button ought to try the new server. Instead, the
    pop-up reappears, still complaining about the old server.
    As for why I'm not prepared to blame (only) the VPN:
    * Note that the server is perfectly accessible; telnet works,
    and Mail's Connection Doctor says the server is up.
    * Point 2) above indicates some problem in Mail with the logic
    for retrying access to the failed server.

  • Can Not Send Mail- what's going on?

    Can download mail but can not send mail. With parallels on and xp pro I can easily set up outlook to send and receive mail. But no! The great Apple which is supposed to be easy can not send an email with the same settings. So, back to Windows to do what should be easy on a mac. I think that perhaps the new Safari or something messed this up.

    If you'd like to approach the problem as something you don't understand, and also something that can be fixed, then you'll probably be able to set up your email account.
    You say you have emails in the Outbox. I'd move them to another folder you create or delete them. In past experience, emails contain header information that includes mail server information, and sometimes they will never send (especially with Outlook Express), even if you get the account to work. You can try sending them again, once you get the account working.
    Next, you need to make sure that you are sending the emails from a machine that is connected directly to RoadRunner's network. They may not work as a relay if you connect from another ISP. It's a port 25 problem that is common these days.
    Now for the problem. If you are receiving emails properly, then the POP server information is correct. The mail program is designed to set up to some default settings that work with many servers, and during the process it will try to validate the settings you supply. This can take awhile, and can come up with a failure, due to a wrong assumption. Your email program is assuming that the email server requires authentication. This has been a problem with the RoadRunner system for years. Apparently, some windows email clients do not work the same way, go figure. They seem to have their own problems.
    Many people have reported successfully setting up an account with RoadRunner, after first making sure they have the right SMTP server address. It can be different for different parts of the country.
    After the email account is set up, and is failing to work, people go into the Mail/Preferences/Accounts/Account Information/Outgoing Mail SMTP Server - Click on the dropdown button - Choose "Edit Server List" - Advanced - Change Authentication to "None"
    Here is a related thread with stories of success with RoadRunner: http://discussions.apple.com/thread.jspa?messageID=9128382&
    After the changes, I'd quit and relaunch Mail. Not required, but good troubleshooting practice. Since there are no emails in the Outgoing Mailbox, create a short message and try to send.
    I have different problems with different companies for both Mac's and Windows machines. The ISP always blames the OS, especially Leopard and Vista (since they work with more intelligent/advanced (maybe) settings. Besides the Authentication issue that pops up with some servers, there's also the occasional SSL variation and/or login name (sometimes it's the first part of the email address before the @ and sometimes it's the entire email address). Some ISP's block port 25, some do not. All of these settings can vary with each ISP, and can change on a whim (especially the port 25 problem), with working accounts going dark because of security changes at the ISP. Telephone Tech support at the ISP is often unaware of any changes in their system because they are not in the IT loop at the company and some will just go into "idiot" mode when you mention Macintosh. The first level support people are using a script on the phone, and their job is to make you go away...
    I'm afraid the Great Apple, as you referred to them, is not able or hasn't focused on the ability to automatically set up accounts with every ISP. They appear to have made some assumptions that work with most servers. Who know's, next month the settings or assumptions may work, or Apple may update their setup script to make allowances specific to Time Warner, but since this has been a problem for over 3 years, I wouldn't hold my breath.
    Google: leopard mail roadrunner problem = about 96,000 hits of all sorts.
    Google: vista email roadrunner problem = about 1,410,000 hits of all sorts.
    Google: windows xp email roadrunner problem = 243,000 hits of all sorts.
    Looks like Apple's getting it's market share of problems with RoadRunner and Time Warner
    My own local DSL is from a company named Centurytel. They are on their 4th email server setup in the last 5 years, and have finally contracted it out to a 3rd party company to administer. I just tell all of my clients to get a Gmail account and get over it. Let's see, a multi-billion dollar company who's reputation and income is based on service... free with 7GB storage, Webmail, POP and IMAP access, specific support for all major mail programs including Apple Mail, and alternate ports that get around ISP blocking. It seems that once you enable POP or Imap access in the webmail settings menu, Apple Mail and Vista seem to know the proper settings to use.
    I'd setup the free Gmail account that will work with any ISP you use, before you get really attached to an email account with an ISP that could change as often as competitor's marketing allows. Also, my iPhone supports Gmail out of the box

  • How can i send mails from SAP?

    how can i send mails from SAP?
    what are the configurations i have to do in SAP for that?
    pls give me a detail reply......
    if possible, pls give me the sample ABAP program for that.

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

Maybe you are looking for

  • Voice Memos, iPhone 5S, iTunes - wont show my recordings

    Okay so I have 34 Voice memos 3 hours long each, they are present on my phone, but my itunes shows only 14 of them. I switched computers, so I did complete backup on new computer, it started spitting out messages that if i sync music then "iPhone wil

  • Unable to Read Calendar List Items through CAML

    Hi All, * I have created two columns in calendar one Year and other Month.When new event is added in calendar through (Item Added) event receiver I am setting the values to this columns as Name of Month to(February) and Year as(2014)  .So that I can

  • Printing certain pages in a report

    Hi all, I want to know how can i make the ABAP report to print certain pages in a report. Say, my abap report has 3 pages. The second page is blank. How can i code it so the printing skip the second page and continue to the third page? Additional Inf

  • How can I restore the web address page and not be directed to a search engine?

    My address bar has disappeared. Whenever I want a new address and type it in I am diverted to a search engine which locates the address I have typed in. I cannot get to the preferences bar to make corrections. I use Windows 8. All was fine until a fe

  • Changes in htmlb rendering in NW7 ?

    Hello everybody, I've noticed following changes in my htmlb GUI after we migrated our EP6 Developer Portal to NW7: - radioButtons:   radioButton and the radioButton-Text are vertically not middled - TabStrips   before migrated I could set width and l