Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Tracing out the undelivered mail-will reward

Former Member
0 Kudos
200

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

11 REPLIES 11

Former Member
0 Kudos
148

Hi,

are you using the function 'SO_NEW_DOCUMENT_SEND_API1' for sending the mail ?

0 Kudos
148

YA am using the same fuction module wat u mentioned

(SO_NEW_DOCUMENT_SEND_API1)

0 Kudos
148

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.

0 Kudos
148

Hi,

No exception is there to check the delivery status of the mail...

any other possible ways u can tell

0 Kudos
148

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

0 Kudos
148

Hi,

have u tried like this..

IF sy-subrc EQ 0.

SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.

ENDIF.

check the link

Regards

Kiran Sure

0 Kudos
148

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

0 Kudos
148

Hi shruthi,

the exception u specified was it not refering to the attachment? is it refers to the mail?

0 Kudos
148

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

Former Member
0 Kudos
148

go to the table SOST and T100A

regards,

venkat.

Former Member
0 Kudos
148

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