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: 

Email not sent - Urgent

raja_thangamani
Active Contributor
0 Kudos

Hi,

I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send an external E-mail. Its working well in Development client. But not in other client. But they are in Same server(Box).

Could anybody suggest me what could be the problem? Is it problem with the Basis Settings? if so any hint where i can compare the settings?

When i execute the FM its throws an Exception-2(DOCUMENT_NOT_SENT)

I promise to return and reward the answers.

Thanks,

Raja T

3 REPLIES 3

former_member221770
Contributor
0 Kudos

Raja,

Go to transaction SCOT. Under the "INT" node you should have a "SMTP" node. Click on this and hit the "Execute" button.

This will tell SAP to send the emails. To set this up as a job, click on the "Job" button next to the execute.

Hope this helps.

Cheers,

Pat.

Former Member
0 Kudos

Hello,

U need to submit the report

  • Start the send process

SUBMIT rsconn01

WITH mode = 'INT'

WITH output = ' '

AND RETURN.

If useful reward.

Vasanth

Former Member
0 Kudos

Hi,

After u send a mail u can issue a wait.

perform send_mail. " send mail

wait up to 2 seconds.

submit rsconn01 with mode = 'INT'

with output = ''

and return.

*-- u can populate the error while sending the mail as follows-

  • Value in retrn_code '0' means mail sent successfully

loop at t_receivers.

check t_receivers-retrn_code na '0'.

clear l_string.

read table t_receivercopy index sy-tabix.

l_string+0(16) = 'Email Error for '.

l_string+18(40) = t_receivercopy-receiver.

append l_string to it_error.

endloop.