2007 Jan 23 3:49 PM
Hi,
For mail to internet users i am using the class CL_BCS.
I am using the following code to send mail
send_request = cl_bcs=>create_persistent( ).
try.
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = it_content[]
i_subject = subject ).
call method send_request->set_document( document ).
sender = cl_sapuser_bcs=>create( sy-uname ).
call method send_request->set_sender
exporting
i_sender = sender.
loop at it_recipient.
translate it_recipient-smtp_addr to lower case.
recipient = cl_cam_address_bcs=>create_internet_address( it_recipient-smtp_addr ).
call method send_request->add_recipient
exporting
i_recipient = recipient
i_express = ' '
i_copy = ' '
i_blind_copy = ' '
i_no_forward = ' '.
endloop.
call method send_request->send( ).
commit work.
catch cx_document_bcs into bcs_exception.
endtry.
I have the following problems :
1. After sending the mail, i am getting the receipt notification(when the user open the mail in lotus note), how to restrict for not getting receipt notification.
2. After sending the mail, i checked in the SCOT the entry showing that is in Transit and not in complete, But the users are getting mails.
I think i am missing some parameters in the above code.
Can anyone give some info on this.
Thanks
aRs
Hi,
For mail to internet users i am using the class CL_BCS.
I am using the following code to send mail
send_request = cl_bcs=>create_persistent( ).
try.
document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = it_content[]
i_subject = subject ).
call method send_request->set_document( document ).
sender = cl_sapuser_bcs=>create( sy-uname ).
call method send_request->set_sender
exporting
i_sender = sender.
loop at it_recipient.
translate it_recipient-smtp_addr to lower case.
recipient = cl_cam_address_bcs=>create_internet_address( it_recipient-smtp_addr ).
call method send_request->add_recipient
exporting
i_recipient = recipient
i_express = ' '
i_copy = ' '
i_blind_copy = ' '
i_no_forward = ' '.
endloop.
call method send_request->send( ).
commit work.
catch cx_document_bcs into bcs_exception.
endtry.
I have the following problems :
1. After sending the mail, i am getting the receipt notification(when the user open the mail in lotus note), how to restrict for not getting receipt notification.
2. After sending the mail, i checked in the SCOT the entry showing that is in Transit and not in complete, But the users are getting mails.
I think i am missing some parameters in the above code.
Can anyone give some info on this.
Thanks
aRs
2007 Jan 23 4:42 PM
Hi,
I have solved the problem by myself.
by adding the following code.
move : 'E' to v_request_status.
v_status = v_request_status.
call method send_request->set_status_attributes
exporting
i_requested_status = v_request_status
i_status_mail = v_status.
call method send_request->send( ).
Thanks
aRs
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |