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 sent but doesn`t arrive

Former Member
0 Kudos

Hi,

my report should send an email to a user. Everything is fine, the email was send to the user but doesn´t arrive. Could you please tell me what could be wrong?

Greetz Dominik

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

Check thru SCOT.

aRs

13 REPLIES 13

former_member583013
Active Contributor
0 Kudos

Are you sending the mail to SBWP? Outlook? External Mail? You should check transaction <b>SCOT</b>...Or post your code -:)

Greetings,

Blag.

former_member194669
Active Contributor
0 Kudos

Hi,

Check thru SCOT.

aRs

0 Kudos

to Outlook...

0 Kudos

Check this code....I used to send mails to a customers...


  DATA: APPOUTLOOK TYPE OLE2_OBJECT.
  DATA: APPOUT2 TYPE OLE2_OBJECT.
  DATA: APPITEM TYPE OLE2_OBJECT.
  DATA: NAMESPACE TYPE OLE2_OBJECT.
  DATA: BODY(5000) TYPE C.
  DATA: CR TYPE X VALUE 13.
  DATA: W_MAIL(5000) TYPE C.

  CALL FUNCTION 'ZFGETCONST'
       EXPORTING
            P_PROGRAM = 'ZSDR0007N'
            P_CAMPO   = 'MAIL'
       TABLES
            TI_CONST  = IT_MAILS.

  LOOP AT IT_MAILS WHERE LOW = SY-SLSET.
    CONCATENATE W_MAIL IT_MAILS-HIGH ';'
    INTO W_MAIL.
  ENDLOOP.

  LOOP AT TI_LOG ASSIGNING <LOG>.
    PERFORM QUITAR_CEROS CHANGING <LOG>-MATNR.
    CONCATENATE BODY <LOG>-VKORG <LOG>-VKBUR <LOG>-MATNR
    <LOG>-KUNNR <LOG>-EAN11 <LOG>-MENSA CR INTO BODY
    SEPARATED BY SPACE.
  ENDLOOP.

  CREATE OBJECT APPOUTLOOK 'outlook.application' .
  CALL METHOD OF APPOUTLOOK 'GetNameSpace' = NAMESPACE
  EXPORTING #1 = 'MAPI'.

  CALL METHOD OF APPOUTLOOK 'CreateItem' = APPITEM
  EXPORTING #1 = '0'.

  SET PROPERTY OF APPITEM 'To' = W_MAIL.
  SET PROPERTY OF APPITEM 'Subject' = 'Log de Errores CONCESIONARIOS'.
  SET PROPERTY OF APPITEM 'Body' = BODY.
  CALL METHOD OF APPITEM 'Send'.

  FREE OBJECT APPITEM.
  FREE OBJECT NAMESPACE.

  FREE OBJECT APPOUTLOOK.

Maybe you are missing something....

Greetings,

Blag.

0 Kudos

I can see that the email sent to the receiver in the transaction SOST. Status: "sent"!

0 Kudos

That's weird....Maybe some filter policies on Outlook...Are you sending the mail to yourself? Try that....

Greetings,

Blag.

former_member191977
Contributor
0 Kudos

Hi,

Check ths if this is of any help to you.

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/email%2bfrom%2bsap

Thanks.

0 Kudos

i`ve sent the email(s) to my account as well as to other accounts, but they still haven´t arrived yet.

0 Kudos

did you check your junk mail folder? its not there as well?

0 Kudos

Nothing inside this folder.

former_member239282
Active Participant
0 Kudos

Have you created and address area ( scott --> Goto --> Address area) ?

if this may be useful reawards pint are appreciated.

Former Member
0 Kudos

i`ve got created an area, why should i creat one?

former_member239282
Active Participant
0 Kudos

if you already created an address area correctly , you don't need to create a second of course.

If the test route from scot and the status is sent it might be a network problem related your smtp server.