Application Development and Automation 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: 
Read only

Problem Sending External Mail

Former Member
0 Likes
545

Hi all,

when a new material is created, a mail is sent to the receivers in a ztable (format of the mail address name@society.com).

All is working fine except for one user.

When this user creates a new material, she sends an e-mail with her e-mail address as sender to:

the correct receivers defined in the ztable

herself but she's not in the ztable and in the SU01 she doesn't have the e-mail address defined?

What can it be?

<REMOVED BY MODERATOR>

Thanks

Edited by: Alvaro Tejada Galindo on Mar 25, 2008 11:03 AM

4 REPLIES 4
Read only

Former Member
0 Likes
511

In her user id, system -> user profile -> own data -> address -> check there is an email id for her. Otherwise you need to give her id.

Pranav

Read only

rahulkavuri
Active Contributor
0 Likes
511

hi

Do you mean to say she sends the mail to herself and mail does not deliver...

SU01 only gives the Sender Mail ID when external mail is sent..

explain this so that I can try to answer

Read only

Former Member
0 Likes
511

Hi Anna,

I guess you are getting the user's id from the Ztable basing upon the sy-uname. If there is no mail id for that user i.e not defined in SU01. then for which mail id the mail should go?

we need to maintain the mail id in the ztable or we need to update communication details of the user.

If possible send me the logic which you are using send the mail..

Regards,

Sagar

Read only

Former Member
0 Likes
511

If a new material has been created the program select ALL the email addresses in the ZMM_DESTMAIL (without using sy-uname or something like that) and send the email to all of them.

The user I'm talking about doesn't have to receive the mail.

She's not in the table ZMM_DESTMAIL, she hasn't the email address defined in SU01.

When she creates a new material with MM01, in the user exit with this function

call function 'SO_NEW_DOCUMENT_SEND_API1'

exporting

document_type = 'RAW'

document_data = doc_chng

put_in_outbox = 'X'

commit_work = 'X'

tables

object_content = objcont

receivers = reclist

exceptions

too_many_receivers = 1

document_not_sent = 2

operation_no_authorization = 4

others = 99.

the emails are prepared and the SCOT Job send them every 10 minutes.

The emails generated are for the correct receivers of the ZMM_DESTMAIL and the USER who created the material (BUT SHE HASN'T TO RECEIVE THE MAIL)

Why does she receive the mail? why does she send the mail to herself? and above all where can be stored her email address?

Thanks for your aswers