14 Replies Latest reply: Feb 28, 2012 7:04 AM by Rajasekhar Dinavahi RSS

sending email to external address in abap  getting error when sending

Keith Forge
Currently Being Moderated

see attached code..  when using :

set property of outmail 'SenderEmailAddress'.....

Call Method of outlmail 'SEND''   

sy-subrc = '3'    please help..

 

CALL METHOD OF OUTMAIL 'ATTACHMENTS' = ATTS.

CALL METHOD OF ATTS 'ADD'

EXPORTING #1 = sav_email-pfile1 .

move sav_email-smtp_addr to eaddress.

MOVE 'abcefg' ' TO EADDRESS2.

SET PROPERTY OF OUTMAIL 'SUBJECT' = sy-title.

SET PROPERTY OF OUTMAIL 'BODY' = g_body.

SET PROPERTY OF OUTMAIL 'TO' = eaddress.

SET PROPERTY OF OUTMAIL 'SenderEmailAddress' = EADDRESS2.

CALL METHOD OF OUTMAIL 'SEND'.

 

.....

 

thanx,  Keith

 

ps: each set property   has  sy-subrc = 0 !!

Actions