cancel
Showing results for 
Search instead for 
Did you mean: 

resend email after smtp error

0 Kudos

Hello,

when we got a communication error with our SMTP relay, a lot of EMail's will get on error (Transaction SOST, message number 816).
We are looking for a way to resend these EMail's (like F7 in SOST) via a job/report every couple of hours so that their status will be changed automatically to "waiting" and they will be send out when the send process will run again and the SMTP relay will be up again.

Thanks

Jens

Accepted Solutions (0)

Answers (3)

Answers (3)

ablessojoshua
Discoverer
0 Kudos

Please use the below class.

cl_sndrec_bcs=>requeue( it_sndrecs ).

Sample codes are available in actual SOST repeat send option(LSBCS_OUTF4C -> FORM REQUEUE)

devagreen
Explorer
0 Kudos

Hi Jens,

Did you get any solution for this ?

We got the same requirement where the failed mails in sost to resend.

Tried using fm SO_SEND_PROCESS_REQUEUE but mails are not processing.

Program RSSOSOSTSTAT is for sost but we need to resend only failed jobs via batchjob.

Please share if you find out the solution for this.

Thanks,

Deva

0 Kudos

Hi jens.kaireit,

You can create a scheduler and plan this report RSSOSOSTSTAT in backround.

Kr,

OHA

0 Kudos

Hi Oussama,
thank you for your answer.

I had a look at the report, but i didn't find a way to take the result of the selection to resend the ones on error.

What we want to do is, to run every day a job which select's all outgoing emails (INT) from the last day which have the Msg. number = 816 and put them again to the send queue (change status=waiting). So that they will be send again when the send job is running.

Kind regars

Jens