2008 May 16 2:43 PM
Hi frnds,
there is a requirement to send the mail to a list of employees.
and then i have to collect the list of employee for whom the mail is not delivered and i need to send a mail (which is not a manual one) this is to be the part of the mail sending program or a separate program that should collect the un send mail ids and the list should be send to the subordinate(admin) telling that the mail send to the following list of employee was not delivered...how to perform this plz help me...
i can even explain u still brief and clear if u want...
thanking u in advance
2008 May 16 2:47 PM
Hi,
are you using the function 'SO_NEW_DOCUMENT_SEND_API1' for sending the mail ?
2008 May 17 1:06 PM
YA am using the same fuction module wat u mentioned
(SO_NEW_DOCUMENT_SEND_API1)
2008 May 17 1:27 PM
Hi ,
In that case you can catch the exception that is thrown by the Function module. 'Mail not delivered', not sure of the exact wording, but you can check for it in the function. By this you will come to know if the mail was delivered or not.
The only glitch is that you will need to send the mail to each receiver instead of passing all the receivers in the same function call.
2008 May 18 1:45 PM
Hi,
No exception is there to check the delivery status of the mail...
any other possible ways u can tell
2008 May 19 5:20 AM
Hi,
The exception whoch needs to be caught is DOCUMENT_NOT_SENT - The document could not be sent. It was not delivered to any of the specified recipients.
Shruthi
2008 May 19 5:26 AM
2008 May 20 3:47 PM
Hi kiran,
the link u giving is not for the qustoin its going to some script...please check it out
Edited by: karthikeyan l on Mar 1, 2009 1:03 PM
2008 May 20 4:30 PM
Hi shruthi,
the exception u specified was it not refering to the attachment? is it refers to the mail?
2008 May 21 4:16 AM
Hi,
Try to catch all the exceptions and if sy-subrc = 0, i guess we can safely assume that the mail has been sent successfully.
Also u can use the below parameters in RECEIVERS table,
NOTIF_READ
If this flag is activated ('X'), the sender is notified as soon as the recipient has read the document. This flag should only be activated for external sending, since internal sending is synchronous. Read notification is only supported by a small number of mail systems, however. For example: X.400 and SAP SAP.
NOTIF_NDEL
If this flag is activated ('X'), the recipient receives a message if the document could not be delivered to the recipient. This flag should only be activated for external sending, since internal sending is synchronous. The message is only supported by a small number of mail systems, however. For example: X.400 and SAP SAP
Regards,
Shruthi R
Message was edited by: Moshe Naveh
2008 May 16 2:52 PM
2008 May 21 4:39 AM
hi there...
the best way to do this is use of workflows....
workflows will make ur task very simple by executing the mail sending automatically, and if the latest end is met (That is : if the mail is not received within a time limit) then another mail will be automatically sent by the workflow....
try working with workflows ...
Message was edited by: Moshe Naveh