Attachment to email causes send failure

I attach a 3,400 kb .pdf file to an email. I notice the 'uploading attachment' icon does not move. after clicking on send, the email frequently fails to send and is 'returned' with a failure notice.
using outlook web access light in firefox does this. using same from MSexplorer has no problem.

Hi there,
Define a new customized Z table & maintain the required mail ids in the table.
in the O/p processing prog, call the Z table & send the mail to the mail ids mentioned in it.
For formality, assign the O/p to an partner function in your condition records.
Regards,
Sivanand

Similar Messages

  • Scanning, Attaching to emails, and Sending in Color using a MAC

    I need to be able to scan color images to my desk top, attach them to emails and send the emails so that when received and read they will be in color.  I know how to scan the colored images to my desk top, but when I go to view them they are in black and white/not in color.  Why and now do I get them scanned in color?  I need to know this sooner rather than later please!
    Also, my printer is still under warranty.  How do I get someone from customer/technical support on the phone to troubleshoot this and tell me how to fix the problem?  I cannot get a hold of anyone.  All the numbers I try are useless because I can't get anyone on the phone.
    [Thank you for visiting the HP Support Forums. I am sorry to inform you that your post has needed some editing to remove personal information.]

    Hi midlifedude7,
    Welcome to the HP Forums!
    I understand that you are trying to scan from your printer to the Mac, and I am happy to help you!
    If you want to continue troubleshooting through the Forums, I will need to the following information:
    The Product/Model Number of your printer. Follow instructions in this link. Finding Your HP Product Model Number.
    The version number of the Mac Operating System. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, Ethernet, or USB.
    If the printer is able to make copies by itself.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    Otherwise, if you still prefer phone support. Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
    Hope to hear from you, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • I imported digital photos but cannot attach to email for send off

    I do not know what happened. I imported digital photos from my Olympus into Iphoto without trouble, but when I try to send as an attachment thru email, the items cannot be opened as photos . I had no trouble in the past. What happened?

    I imported digital photos from my Olympus into Iphoto without trouble, but when I try to send as an attachment thru email, the items cannot be opened as photos .
    How exactly are you trying to send them?
    Do you select the photos in iPhoto and use the "Share > Email" feature? With iPhoto or Mail as set as Mail client?
    Or do you access the iPhoto Library from Mail via the Media Browser?
    the items cannot be opened as photos
    When you try to attach them for mailing or after they have been received?
    Please explain more so we can understand your problem better. And what iPhoto version and email program are you using?
    Regards
    Léonie

  • Attachement with Email

    i am able to send email simply
    but how can i send attachement with email(plese send code)

    hi there
    Lets say you want to attach a gif file, this code uses me to display the images in the body message but they transferred as attachments, and in the body message i call them. one of the lines there (*) i think couse the attachment files to disappear when you get the message, which means they only appears in the body message and not as attachments. i hope you'll understand, it is not simple at all.
    MimeMultipart mp = new MimeMultipart("related");
    mp.addBodyPart(YourBodyMsg);
    File f = new File("test.gif");
    String fileName = f.getName();
    MimeBodyPart part2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(f);
    part2.setDataHandler(new DataHandler(fds));
    part2.setFileName(fileName);
    part2.setDisposition("inline"); //*
    part2.addHeader("Content-Type", "Image/gif");
    part2.addHeader("Content-Transfer-Encoding", "base64");
    part2.addHeader("Content-ID", "<" + fileName + ">"); //*
    mp.addBodyPart(part2)

  • Sending Failure. I can't send, reply or forward an email with attachment or picture.

    I have a Galaxy S5. When I try to send, forward or reply to an email with an attachment or picture it gets stuck in my outbox with a final message on my notification page of "sending failure".  I can receive any email with pics or attachments. I have removed and re added my email accounts as well as cleared the cache without any luck.  Any suggestions?
    Thanks in advance!

    Try doing this, uninstall your email app then power down & remove battery and SIM card. Next re-power phone and do a regular reset of the phone (not a restart)  with SIM installed. This will be listed under settings, backup and restore then tap Reset settings. now reinstall email app and setup your account. This in a normal working phone will clear most email problems along with correct account settings.

  • Reader 9.5.0 win7: using the Attach to Email... command causes outlook 2003 to freeze when sending

    Clicking the envelope icon or choosing the menu option works as usual, but when I try to send the email in outlook 2003 I get an error message that says "The email failed, try again."  Then Outlook freezes and you have to end its task in order to continue.  I've had this issue on two seperate machines.  Any ideas, aside from attaching the email from outlook manually?

    Does this happen for all the files or only files greater than a certain size?

  • "Sending Failure". Can't send, forward or reply to email with attachments or pictures

    I have a Galaxy S5. When I try to send, forward or reply to an email with an attachment or picture it gets stuck in my outbox with a final message on my notification page of "sending failure". I have removed and re added my email accounts as well as cleared the cache without any luck.  Any suggestions?
    Thanks in advance!

        kpgrl,
    Let's get your emails back in business! Have you tried installing a third party app to use for your email? Have you removed the email and readded it? Please share details.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • Outlook client sends only attached duplicate emails

    Dear Sir,
    We are using outlook 2007/2010/2013 in our client machine when we send attached document emails file more than
    KB receivers got more than 5 to 8 emails. Tell me the Solution for this problem
    Happens only in windows8 client machine only.
    Note: Usually problem happens with bigger mail attachment file only.We are using windows8 64Bit OSMs office 200720102013.Antivirus trend Micro agent
    Kindly Tell me the Solution for this problem.

    Hi,
    I found two related links, It might be caused by two or more Outlook clients are logged into the same mailbox at the same time, or some inappropriate configurations in Outlook.
    Outlook 2010 sending 2 emails when sending a email. (duplicate email)                                 
    http://social.technet.microsoft.com/Forums/office/en-US/8378baff-8c5a-47bc-90a6-8f9c61b2b394/outlook-2010-sending-2-emails-when-sending-a-email-duplicate-email?forum=outlook
    Duplicate Messages in Outlook
    http://blogs.technet.com/b/scotch/archive/2010/04/14/duplicate-messages-in-outlook.aspx
    Hope these can give you some hints , It's recommended to post in this forum if you still have issue about Outlook, they're more familiar with Outlook.
    Outlook IT Pro Forum
    http://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook
    Yolanda Zhu
    TechNet Community Support

  • When sending an email using outlook can you attach another email?

    When sending a new email using outlook, is it possible to attach another email?

    What does that have to do with iPhones?

  • My 3GS is responding MESSAGE SEND FAILURE when I attach n send photos. Why? And how do I fix it?

    Just started getting a MESSAGE SEND FAILURE response when I attach n send a photo with my texts. Why? How do I fix it?

    Did you try what was suggested on that page i.e. disconnecting the iPad from your computer and turning the iPad off (press and hold the sleep/wake button until the red 'slide to power off' appears on screen and slide that) and then back on ?
    And if the backup doesn't work after that then try a soft-reset instead of the off and on : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How can I have a newsletter I created in PDF appear in the body of an email I send, rather than attach it.

    How can I get a newsletter created in PDF format to appear in the body of an email I send, rather than attach it.

    You cannot. (A few email programs might show it automatically; you cannot stop that either).

  • Error opening PDF file when send as attachment via email

    Hi,
    I searched around the forum to resolve my issue and there's alot of post that is related but i can't find any answer to my issues.
    Here's the scenario :-
    I try to convert the smartform to PDF and then send the PDF as an attachment via email.
    After converting the smartform to PDF, i managed to download the file and view it without any problem but i can't view the PDF as an attachment. It has the following error :-
    Adobe Reader could not open '4500002325.PDF' because it is either not a supported fle type or because the file has been damaged (for example, it was sent as an email and wasn't correctly decoded
    The following is the snapshot of my code:-
    * Determine smartform function module for invoice
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = lf_formname
        IMPORTING
          fm_name            = lf_fm_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc <> 0.
    *  error handling
        ent_retco = sy-subrc.
        PERFORM protocol_update_i.
      ENDIF.
      ls_control_param-getotf = 'X'.
      CALL FUNCTION lf_fm_name
        EXPORTING
          archive_index        = toa_dara
          archive_parameters   = arc_params
          control_parameters   = ls_control_param
          mail_recipient       = ls_recipient
          mail_sender          = ls_sender
          output_options       = ls_composer_param
          zxekko               = l_doc-xekko  " user_settings = ' '
          zxpekko              = l_doc-xpekko
        IMPORTING
          document_output_info = l_ssfcrespd
          job_output_info      = l_ssfcrescl
          job_output_options   = l_ssfcresop
        TABLES
          l_xekpo              = l_doc-xekpo[]
          l_xekpa              = l_doc-xekpa[]
          l_xpekpo             = l_doc-xpekpo[]
          l_xeket               = l_doc-xeket[]
          l_xtkomv             = l_doc-xtkomv[]
          l_xekkn              = l_doc-xekkn[]
          l_xekek              = l_doc-xekek[]
          l_xkomk              = l_xkomk
        EXCEPTIONS
          formatting_error     = 1
          internal_error       = 2
          send_error           = 3
          user_canceled        = 4
          OTHERS               = 5.
      IF sy-subrc = 0.
        CALL FUNCTION 'CONVERT_OTF'
          EXPORTING
            FORMAT                = 'PDF'
          IMPORTING
            BIN_FILESIZE          = v_len_in
            BIN_FILE              = v_bin_file
          TABLES
            OTF                   = l_ssfcrescl-otfdata
            LINES                 = l_pdf
          EXCEPTIONS
            ERR_MAX_LINEWIDTH     = 1
            ERR_FORMAT            = 2
            ERR_CONV_NOT_POSSIBLE = 3
            ERR_BAD_OTF           = 4
            OTHERS                = 5.
    * email subject
        CONCATENATE 'Purchase order' l_doc-xekko-ebeln INTO lw_subject
                    SEPARATED BY space.
    * RECIPIENTS
        lwa_recipients-rec_type = 'U'.
        lwa_recipients-express = 'X'.
        SELECT adr6~smtp_addr
        INTO TABLE gv_smtp_addr
        FROM ekko AS ekko INNER JOIN
             lfa1 AS lfa1 ON ekko~lifnr      = lfa1~lifnr INNER JOIN
             adr6 AS adr6 ON adr6~addrnumber = lfa1~adrnr
        WHERE ekko~ebeln = l_doc-xekko-ebeln.
        IF NOT gv_smtp_addr[] IS INITIAL.
          LOOP AT gv_smtp_addr INTO gv_smtp_addr_line FROM 2.
            lwa_recipients-receiver = gv_smtp_addr_line.
            lwa_recipients-copy = ''.
            APPEND lwa_recipients TO ptb_recipients.
          ENDLOOP.
    * Text Data
            CALL FUNCTION 'READ_TEXT'
              EXPORTING
                id                      = 'ST'
                language                = 'E'
                name                    = 'TEST'
                object                  = 'TEXT'
              TABLES
                lines                   = lv_lines
              EXCEPTIONS
                id                      = 1
                language                = 2
                name                    = 3
                not_found               = 4
                object                  = 5
                reference_check         = 6
                wrong_access_to_archive = 7
                OTHERS                  = 8.
          LOOP AT lv_lines INTO lv_lines_line.
            ltb_objtxt = lv_lines_line-tdline.
            APPEND ltb_objtxt.
          ENDLOOP.
          DESCRIBE TABLE ltb_objtxt LINES lw_tab_lines.
          READ TABLE ltb_objtxt INDEX lw_tab_lines.
    * document data contains information for the whole message
          lwa_doc_chng-obj_descr = 'ABAPlist'.
    * Control Data
          lwa_doc_chng-obj_name   = 'TESTING'.
          lwa_doc_chng-sensitivty = 'F'.
          lwa_doc_chng-no_change  = 'X'.
          lwa_doc_chng-priority   = '1'.
          lwa_doc_chng-obj_prio   = '1'.
          lwa_doc_chng-obj_langu  = sy-langu.
          CLEAR ltb_objpack-transf_bin.
    *Attachment
    *Move the binary attachment to other internal table.
          ltb_objpack-head_start = 1.
          ltb_objpack-head_num   = 0.
          ltb_objpack-body_start = 1.
          ltb_objpack-body_num   = lw_tab_lines.
          ltb_objpack-doc_type   = 'RAW'.
          APPEND ltb_objpack.
          clear : lw_tab_lines.
    *Get the number of lines in the Attachment (PDF FILE)
    *      DESCRIBE TABLE it_mess_att LINES lw_tab_lines.
          DESCRIBE TABLE l_objbin lines lw_tab_lines.
          ltb_objpack-transf_bin = 'X'.
          ltb_objpack-head_start = 1.
          ltb_objpack-head_num   = 1.
          ltb_objpack-body_start = 1.
          ltb_objpack-body_num = lw_tab_lines.
          ltb_objpack-doc_type = 'PDF'.
          ltb_objpack-obj_descr = l_doc-xekko-ebeln.
          ltb_objpack-doc_size = lw_tab_lines * 255.
          APPEND ltb_objpack.
    *Email Subject
          lwa_doc_chng-obj_descr = lw_subject.
            lwa_recipients-receiver = recipeint.
            lwa_recipients-rec_type = 'U'.
            lwa_recipients-copy     = 'X'.
            lwa_recipients-express  = 'X'.
            APPEND lwa_recipients TO ptb_recipients.
          CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
            EXPORTING
              document_data = lwa_doc_chng
              COMMIT_WORK   = 'X'
            TABLES
              packing_list  = ltb_objpack
              contents_bin  = l_objbin
              contents_txt  = ltb_objtxt
              receivers     = ptb_recipients.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDIF.
      ENDIF.
    Edited by: ~loObie on Apr 23, 2010 12:01 PM
    Edited by: ~loObie on Apr 23, 2010 12:02 PM

    Did you send the pdf in the following format ...
    2. Sending PDF as mail.
    CLEAR t_receivers.
    REFRESH t_receivers.
    t_receivers-receiver = sy-uname.
    t_receivers-rec_type = 'B'.
    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
    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.
    Quote from the Following [LINK|http://www.sap-basis-abap.com/smartforms/convert-the-smart-form-into-pdf-and-send.htm]

  • I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.

    I have created a email in Fireworks and wanted to make a line of text a hyperlink that would take the viewer to a page on my website. I want to attach the final document to my email and sending it out.

    1) design for no wider than 600px (otherwise it may not fit in email clients).
    2) Slice up your newsletter design in segments for images and html areas with the slice tool.
    3) add the <a href="http://www.yourwebsite.com">my website</a> link in one of the html areas.
    4) export as generic html 4 code, and put the images in a separate folder.
    5) upload all the images to your website's server in a folder (you cannot embed images in an email newsletter - they must link to externally hosted images).
    6) change all the links in your html page to the ones that were loaded up on your server. For example, an image's source link would work out similar to this: <img src="http://www.yourwebsite.com/newsletter/image1.jpg" alt="alternate description of your image">
    7) open the newsletter with working external images in Chrome or Firefox. Select the entire page content (ctrl-a), and copy it (ctrl-c).
    8) create a new email in your mail client. Place the cursor in the body. Paste the newsletter (ctrl-v).
    9) send your newsletter to hundreds of recipients, and get blacklisted by several email servers. Receive warning messages from your own hosting provider not to spam other users' email accounts.
    10) realize this is too much of a hassle, and instead opt for a service such as MailChimp.
    (The result in (9) depends on whether you sent out your newletter only to acquaintances, or not. But even then you might be warned off.)
    Btw, many email clients turn off images in an email by default. You must provide the most important content as html, not as images.

  • Send  XML as attachment in Email activity

    Hi
    My requirement is to send XML as an attachment through email .
    In the attachment if i select the MIME type as "XML" then no email notification is sent,
    but if i select the MIME type as "text/html" , then attachement is sent through email , but attachment is in different format( with no content inside attachment) .
    Can anyone help me on this .

    have you tried the example on this page : http://java.net/projects/oraclesoasuite11g/pages/Notification

  • Send HTML as attachment in email in Stored Procedure

    Hi Guys,
    I am writing a stored procedure to send HTML attachment. Below is my code but no html attachment sent in mail. Kindly advise.
    USE [CarsemERP]
    GO
    /****** Object: StoredProcedure [dbo].[DBA_CarsemERP_SQLBlocks] Script Date: 04/01/2015 15:14:15 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <THARMENDRAN>
    -- Create date: <2014FEB21>
    -- Description: TO CHECK ANY LOCKS MORE THN 20 SEC IN SQL SERVER
    -- =============================================
    ALTER PROCEDURE [dbo].[DBA_CarsemERP_SQLBlocks]
    AS
    BEGIN
    DECLARE @iCnt As Int
    DECLARE @ICnt2 As Int
    DECLARE @SendEmail AS VARCHAR(3)
    DECLARE @Temp_DetailReq1 TABLE (
    idx smallint Primary Key IDENTITY(1,1),
    DBName varchar(30), RequestId Int, BlockingId Int, BlockedObjectName varchar(30),LockType varchar(30), RequestingText varchar(max), BlockingText varchar(max),
    LoginName varchar (30), HostName varchar (30))
    DECLARE @Temp_DetailReq2 TABLE (
    idx smallint Primary Key IDENTITY(1,1),
    DBName varchar(30), RequestId Int, BlockingId Int, BlockedObjectName varchar(30),LockType varchar(30), RequestingText varchar(max), BlockingText varchar(max),
    LoginName varchar (30), HostName varchar (30))
    SET @SendEmail = 'NO'
    SELECT @iCnt= COUNT(*) FROM DBA_SQLBlocksViewTharmen
    IF @iCnt > 0
    BEGIN
    Insert Into @Temp_DetailReq1
    Select DBName, request_session_id, blocking_session_id, BlockedObjectName,resource_type, RequestingText, BlockingTest, LoginName, HostName From DBA_SQLBlocksViewTharmen
    END
    WAITFOR DELAY '00:00:20'
    select @iCnt2= COUNT(*) FROM DBA_SQLBlocksViewTharmen
    IF @iCnt2 > 0
    BEGIN
    DECLARE @columnHeaders NVARCHAR(MAX)
    DECLARE @tableHTML NVARCHAR(MAX)
    DECLARE @body NVARCHAR(MAX)
    Insert Into @Temp_DetailReq2
    Select DBName, request_session_id, blocking_session_id, BlockedObjectName,resource_type, RequestingText, BlockingTest, LoginName, HostName From DBA_SQLBlocksViewTharmen
    SET @SendEmail = 'YES'
    BEGIN
    SET @columnHeaders = 'DBName</th><th>RequestId</th><th>BlockingId</th><th>BlockedObjectName</th><th>LockType</th><th>RequestingText</th><th>BlockingText</th><th>LoginName</th><th>HostName'
    set @tableHTML =
    '<div><b>There is blocking in VERPSVR02-02.</b></div><br>' + -- This is the bold text at the top of your email
    '<table border="0" cellpadding="5"><font face="Calibri" size=2>' +
    '<tr><th>' + @columnHeaders + '</th></tr>' +
    convert(nvarchar(max),
    select td = [DBName], '', -- Here we put the column names
    td = [RequestId], '',
    td = [BlockingId], '',
    td = [BlockedObjectName], '',
    td = [LockType], '',
    td = [RequestingText], '',
    td = [BlockingText], '',
    td = [LoginName], '',
    td = [HostName], '' -- Here we put the column names
    from @Temp_DetailReq2
    for xml path('tr'), type)) +'</font></table>'
    END
    END
    IF @SendEmail = 'YES'
    BEGIN
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'MyDBMailProfileName',
    @recipients = '[email protected]',
    @body = 'Please refer the attachment' ,
    @body_format = 'HTML',
    @subject = 'Alert! Blocking On ERPSVR02-02 Live Server',
    @file_attachments = @tableHTML,
    @importance = 'High';
    END
    END

    Hi Guys,
    I need help on how to generated HTML as attachment to email. I have write below stored procedure but the html did not send as attachment. Kindly guide me on how to save the generated HTML as a file and send it as attachment.
    USE [CarsemERP]
    GO
    /****** Object: StoredProcedure [dbo].[DBA_CarsemERP_SQLBlocks] Script Date: 04/01/2015 15:14:15 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <THARMENDRAN>
    -- Create date: <2014FEB21>
    -- Description: TO CHECK ANY LOCKS MORE THN 20 SEC IN SQL SERVER
    -- =============================================
    ALTER PROCEDURE [dbo].[DBA_CarsemERP_SQLBlocks]
    AS
    BEGIN
    DECLARE @iCnt As Int
    DECLARE @ICnt2 As Int
    DECLARE @SendEmail AS VARCHAR(3)
    DECLARE @Temp_DetailReq1 TABLE (
    idx smallint Primary Key IDENTITY(1,1),
    DBName varchar(30), RequestId Int, BlockingId Int, BlockedObjectName varchar(30),LockType varchar(30), RequestingText varchar(max), BlockingText varchar(max),
    LoginName varchar (30), HostName varchar (30))
    DECLARE @Temp_DetailReq2 TABLE (
    idx smallint Primary Key IDENTITY(1,1),
    DBName varchar(30), RequestId Int, BlockingId Int, BlockedObjectName varchar(30),LockType varchar(30), RequestingText varchar(max), BlockingText varchar(max),
    LoginName varchar (30), HostName varchar (30))
    SET @SendEmail = 'NO'
    SELECT @iCnt= COUNT(*) FROM DBA_SQLBlocksViewTharmen
    IF @iCnt > 0
    BEGIN
    Insert Into @Temp_DetailReq1
    Select DBName, request_session_id, blocking_session_id, BlockedObjectName,resource_type, RequestingText, BlockingTest, LoginName, HostName From DBA_SQLBlocksViewTharmen
    END
    WAITFOR DELAY '00:00:20'
    select @iCnt2= COUNT(*) FROM DBA_SQLBlocksViewTharmen
    IF @iCnt2 > 0
    BEGIN
    DECLARE @columnHeaders NVARCHAR(MAX)
    DECLARE @tableHTML NVARCHAR(MAX)
    DECLARE @body NVARCHAR(MAX)
    Insert Into @Temp_DetailReq2
    Select DBName, request_session_id, blocking_session_id, BlockedObjectName,resource_type, RequestingText, BlockingTest, LoginName, HostName From DBA_SQLBlocksViewTharmen
    SET @SendEmail = 'YES'
    BEGIN
    SET @columnHeaders = 'DBName</th><th>RequestId</th><th>BlockingId</th><th>BlockedObjectName</th><th>LockType</th><th>RequestingText</th><th>BlockingText</th><th>LoginName</th><th>HostName'
    set @tableHTML =
    '<div><b>There is blocking in VERPSVR02-02.</b></div><br>' + -- This is the bold text at the top of your email
    '<table border="0" cellpadding="5"><font face="Calibri" size=2>' +
    '<tr><th>' + @columnHeaders + '</th></tr>' +
    convert(nvarchar(max),
    select td = [DBName], '', -- Here we put the column names
    td = [RequestId], '',
    td = [BlockingId], '',
    td = [BlockedObjectName], '',
    td = [LockType], '',
    td = [RequestingText], '',
    td = [BlockingText], '',
    td = [LoginName], '',
    td = [HostName], '' -- Here we put the column names
    from @Temp_DetailReq2
    for xml path('tr'), type)) +'</font></table>'
    END
    END
    IF @SendEmail = 'YES'
    BEGIN
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'MyDBMailProfileName',
    @recipients = '[email protected]',
    @body = 'Please refer the attachment' ,
    @body_format = 'HTML',
    @subject = 'Alert! Blocking On ERPSVR02-02 Live Server',
    @file_attachments = @tableHTML,
    @importance = 'High';
    END
    END

Maybe you are looking for

  • Google Mail Notifier Has message:  "Can't sign in. See Preferences.  Fetch

    My Google Mail Notifier not working. Has message: "Can't sign in.  See Preferences.  Fetch -2" I have no idea what this means.    When I go to Preferences,  there is nothing about "Fetch -2". If anyone can help me,  I would appreciate it.   I am a be

  • Tune Tools won't recognize

    i just purchased tune tools to upload music from my i pod to i tunes and the tool tools won't recognize my ipod. Also, when i open itunes it prompts me to register my ipod, which i have done several times. please help, this is my last hope.

  • Business Intelligence SE does not install discoverer

    Hi, Does anybody recently download Business Intelligence SE from Oracle site and install successfully ? I installed it, but it does not install the discoverer component. I checked the CD stage sub folder, and it does not have discoverer component. I

  • ADF Documentation

    Hi All, What are you currently using as a good resource for ADF development. I have found some good blogs and I am also using some online Safari books. I can't seem to find the Oracle Tahiti 11g ADF Development guide.... I am using 11g Any other thou

  • Why can I not restore my iPod touch?

    I updated my iPod and now it won't turn on and it says to connect it to iTunes. I connected it to iTunes and it says that I must restore it because the iPod is in recovery mode. When I try to restore it, I get a message that says "iPod cannot be rest