Skip to Content
0
Former Member
Jan 11, 2008 at 02:30 PM

Send external mails API

22 Views

Hi.

I'am using the function module SO_NEW_DOCUMENT_SEND_API1 to send external mails.

I need to know if it's possible to specify the default sender. I want to put something like no-reply@name.com.

I didn't found nothing in the function parameters. Or maybe there is another function module that i can use ?

Thanks for your help.

Regards.

Helder

Here's my code :

*Send mail
  CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = doc_data
      put_in_outbox              = 'X'
*      commit_work                = 'X'
    IMPORTING
      new_object_id              = object_id
    TABLES
      object_content             = objcont
      receivers                  = receiver
    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.

Code Formatted by: Alvaro Tejada Galindo on Jan 11, 2008 3:05 PM