Skip to Content
author's profile photo Former Member
Former Member

sending mail using OLE

Hello All,

I am sending mail using OLE and the mail is sent successfully.

But before sending mail, a popup appears of confirmation for sending mail.

I want to avoid this popup.

How can i do it ?

is there any class or property for Pop up box ?

Here is the code that i am using:

FORM send_mail_to_vendor  USING    p_vendor_email_id        "#EC *
                                   p_vendor_title
                                   p_vendor_name
                                   p_vendor_login
                                   p_vendor_pass.


DATA : outlook LIKE obj_record,
         outmail LIKE obj_record,
         message TYPE string,
         new_line TYPE c VALUE cl_abap_char_utilities=>newline,
         obj_mail TYPE REF TO cl_crm_email_utility_base.


  CONCATENATE 'You are successfully registered'  p_vendor_title
                  p_vendor_name '!' new_line
                 'Your login id is:' p_vendor_login new_line
                 'And password is:' p_vendor_pass INTO message
                  SEPARATED BY space.


  CREATE OBJECT outlook 'Outlook.Application'.
  CALL METHOD OF outlook 'CREATEITEM' = outmail EXPORTING #1 = 0.
  SET PROPERTY OF outmail 'TO' = p_vendor_email_id.
  SET PROPERTY OF outmail 'SUBJECT' = 'Registration Successful'.
  SET PROPERTY OF outmail 'BODY' = message.
  CALL METHOD OF outmail 'SEND'.

  FREE OBJECT outlook.

 endform.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2008 at 12:29 PM

    after CALL METHOD OF outmail 'SEND'.

    use the following code

    SUBMIT rsconn01 WITH mode EQ 'INT' AND RETURN.

    COMMIT WORK .

    this may helpful for u.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.