SBWP message send to external mail instead of user id

Hallo,
in SBWP you can send a message to sap useres (internal) or to external users when using eMail Adress.
So we can use e.g. ADOETSCH as user id to send the message internal or a.doetsch@...... to send the message external.
What we want is to send every message to the external user adress which is maintained in SU01 for every user. But in the sending screen we want not to write the whole eMail adress. We only want to write the user name. But SAP seems not to be able to convert the user name automatically to the eMail adress. When we put in the user name and define it as external adress (INT) we get an error message.
Is it possible to customize a automatically convert between user id and the  eMail adress which is defined in SU01.
Thanks

No solution found

Similar Messages

  • Creation of transport rule to send all external mails through a particular server for a specific user..

    HI,
    In our Organisation We have a question, is there any possibility to create a transport rule for sending all external mails through a particular server by a specific user.
    in our organisation we have exchange 2007 one mailbox server and two hub transport servers...and we are using symantic gate way..

    Hi,
    Based on my knowledge, we can use the following transport rule to make that except with one user, other users cannot send outbound external emails:
    And I’m afraid that there is no Exchange feature to make one specific HUB server rout all external emails.
    Because if a Send connector is configured to send messages to an external domain, any Hub Transport server in the organization will route a message for that domain to a source server for that connector to be relayed to the destination domain.
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • How to send an external mail from workflow.

    Hi,
    I have created a send mail in my workflow but it isnot sending the external mail
    Any guesses?

    Check the status in SOST . If not ask ur BASIS guys to work on SCOT.
    Richard A

  • How to send external mails to the user

    Dears,
    How to send external mails to the user who creates the sales document (Quotation)
    Can you please suggest what modification required in the FM
    Thanks,
    pinky

    You can have a partner function like 'Created by' and use an exit to populate the User ID to this partner function(dont have the system right now but i think this can be done with standard partner detr. procedure also)
    Then, create an Output type for that Partner function with transmission medium as 'External Send'. You can use the standard SAP program to trigger the email. To send the actual email after the output is trigerred, the link connection has to be set up be BASIS but if you want to check, then goto SOST and see if the email got trigerred or not.

  • BASIS Configuration needed to send an external mail from SAP Program

    Can you please help me about the BASIS configuration needed to send an external mail from SAP Program?
    Regards,
    Subhasish

    Hi Subhasish,
    Please go thru the below link.
    Re: SCOT Configuration--for external mail
    Regards,
    Lakshman.

  • [SOLVED]Issue with Postfix sending to external mail addresses

    I'm having a very silly issue with Postfix. I followed the wiki article at [link]https://wiki.archlinux.org/index.php/Postfix[/link], and everything seems to work properly, however I cannot send to emails outside of my domain.
    I get the error:
    550 5.1.1 <[email protected]>: Recipient address rejected: Local delivery only!
    Here is what the logs say:
    May 08 16:05:12 my.dns.stuff.org postfix/smtpd[31464]: connect from localhost.localdomain[127.0.0.1]
    May 08 16:05:12 my.dns.stuff.org postfix/smtpd[31464]: 091E011E3C: client=localhost.localdomain[127.0.0.1]
    May 08 16:05:12 my.dns.stuff.org postfix/smtpd[31464]: 091E011E3C: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: Local delivery only!; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<sendingdomain.com>
    May 08 16:05:12 my.dns.stuff.org postfix/smtpd[31464]: lost connection after RCPT from localhost.localdomain[127.0.0.1]
    May 08 16:05:12 my.dns.stuff.org postfix/smtpd[31464]: disconnect from localhost.localdomain[127.0.0.1]
    May 08 16:05:14 my.dns.stuff.org sudo[31476]: me : TTY=pts/0 ; PWD=/etc/postfix ; USER=root ; COMMAND=/usr/bin/journalctl
    main.cf
    # Global Postfix configuration file. This file lists only a subset
    # of all parameters. For the syntax, and for a complete parameter
    # list, see the postconf(5) manual page (command: "man 5 postconf").
    # For common configuration examples, see BASIC_CONFIGURATION_README
    # and STANDARD_CONFIGURATION_README. To find these documents, use
    # the command "postconf html_directory readme_directory", or go to
    # http://www.postfix.org/BASIC_CONFIGURATION_README.html etc.
    # For best results, change no more than 2-3 parameters at a time,
    # and test if Postfix still works after every change.
    # SOFT BOUNCE
    # The soft_bounce parameter provides a limited safety net for
    # testing. When soft_bounce is enabled, mail will remain queued that
    # would otherwise bounce. This parameter disables locally-generated
    # bounces, and prevents the SMTP server from rejecting mail permanently
    # (by changing 5xx replies into 4xx replies). However, soft_bounce
    # is no cure for address rewriting mistakes or mail routing mistakes.
    #soft_bounce = no
    # LOCAL PATHNAME INFORMATION
    # The queue_directory specifies the location of the Postfix queue.
    # This is also the root directory of Postfix daemons that run chrooted.
    # See the files in examples/chroot-setup for setting up Postfix chroot
    # environments on different UNIX systems.
    queue_directory = /var/spool/postfix
    # The command_directory parameter specifies the location of all
    # postXXX commands.
    command_directory = /usr/bin
    # The daemon_directory parameter specifies the location of all Postfix
    # daemon programs (i.e. programs listed in the master.cf file). This
    # directory must be owned by root.
    daemon_directory = /usr/lib/postfix
    # The data_directory parameter specifies the location of Postfix-writable
    # data files (caches, random numbers). This directory must be owned
    # by the mail_owner account (see below).
    data_directory = /var/lib/postfix
    # QUEUE AND PROCESS OWNERSHIP
    # The mail_owner parameter specifies the owner of the Postfix queue
    # and of most Postfix daemon processes. Specify the name of a user
    # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
    # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
    # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
    # USER.
    mail_owner = postfix
    # The default_privs parameter specifies the default rights used by
    # the local delivery agent for delivery to external file or command.
    # These rights are used in the absence of a recipient user context.
    # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
    #default_privs = nobody
    # INTERNET HOST AND DOMAIN NAMES
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #myhostname = host.domain.tld
    myhostname = mail.sendingdomain.com
    # The mydomain parameter specifies the local internet domain name.
    # The default is to use $myhostname minus the first component.
    # $mydomain is used as a default value for many other configuration
    # parameters.
    mydomain = www.sendingdomain.com
    # SENDING MAIL
    # The myorigin parameter specifies the domain that locally-posted
    # mail appears to come from. The default is to append $myhostname,
    # which is fine for small sites. If you run a domain with multiple
    # machines, you should (1) change this to $mydomain and (2) set up
    # a domain-wide alias database that aliases each user to
    # [email protected].
    # For the sake of consistency between sender and recipient addresses,
    # myorigin also specifies the default domain name that is appended
    # to recipient addresses that have no @domain part.
    #myorigin = $myhostname
    myorigin = $mydomain
    append_dot_mydomain = no
    # RECEIVING MAIL
    # The inet_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on. By default,
    # the software claims all active interfaces on the machine. The
    # parameter also controls delivery of mail to user@[ip.address].
    # See also the proxy_interfaces parameter, for network addresses that
    # are forwarded to us via a proxy or network address translator.
    # Note: you need to stop/start Postfix when this parameter changes.
    inet_interfaces = all
    #inet_interfaces = loopback-only
    #inet_interfaces = $myhostname
    #inet_interfaces = $myhostname, localhost
    # The proxy_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on by way of a
    # proxy or network address translation unit. This setting extends
    # the address list specified with the inet_interfaces parameter.
    # You must specify your proxy/NAT addresses when your system is a
    # backup MX host for other domains, otherwise mail delivery loops
    # will happen when the primary MX host is down.
    #proxy_interfaces =
    #proxy_interfaces = 1.2.3.4
    # The mydestination parameter specifies the list of domains that this
    # machine considers itself the final destination for.
    # These domains are routed to the delivery agent specified with the
    # local_transport parameter setting. By default, that is the UNIX
    # compatible delivery agent that lookups all recipients in /etc/passwd
    # and /etc/aliases or their equivalent.
    # The default is $myhostname + localhost.$mydomain. On a mail domain
    # gateway, you should also include $mydomain.
    # Do not specify the names of virtual domains - those domains are
    # specified elsewhere (see VIRTUAL_README).
    # Do not specify the names of domains that this machine is backup MX
    # host for. Specify those names via the relay_domains settings for
    # the SMTP server, or use permit_mx_backup if you are lazy (see
    # STANDARD_CONFIGURATION_README).
    # The local machine is always the final destination for mail addressed
    # to user@[the.net.work.address] of an interface that the mail system
    # receives mail on (see the inet_interfaces parameter).
    # Specify a list of host or domain names, /file/name or type:table
    # patterns, separated by commas and/or whitespace. A /file/name
    # pattern is replaced by its contents; a type:table is matched when
    # a name matches a lookup key (the right-hand side is ignored).
    # Continue long lines by starting the next line with whitespace.
    # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
    #mydestination = $myhostname, localhost.$mydomain, localhost
    #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    #mydestination = localhost
    # mail.$mydomain, www.$mydomain, ftp.$mydomain
    # REJECTING MAIL FOR UNKNOWN LOCAL USERS
    # The local_recipient_maps parameter specifies optional lookup tables
    # with all names or addresses of users that are local with respect
    # to $mydestination, $inet_interfaces or $proxy_interfaces.
    # If this parameter is defined, then the SMTP server will reject
    # mail for unknown local users. This parameter is defined by default.
    # To turn off local recipient checking in the SMTP server, specify
    # local_recipient_maps = (i.e. empty).
    # The default setting assumes that you use the default Postfix local
    # delivery agent for local delivery. You need to update the
    # local_recipient_maps setting if:
    # - You define $mydestination domain recipients in files other than
    # /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
    # For example, you define $mydestination domain recipients in
    # the $virtual_mailbox_maps files.
    # - You redefine the local delivery agent in master.cf.
    # - You redefine the "local_transport" setting in main.cf.
    # - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
    # feature of the Postfix local delivery agent (see local(8)).
    # Details are described in the LOCAL_RECIPIENT_README file.
    # Beware: if the Postfix SMTP server runs chrooted, you probably have
    # to access the passwd file via the proxymap service, in order to
    # overcome chroot restrictions. The alternative, having a copy of
    # the system passwd file in the chroot jail is just not practical.
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify a bare username, an @domain.tld
    # wild-card, or specify a [email protected] address.
    #local_recipient_maps = unix:passwd.byname $alias_maps
    local_recipient_maps = proxy:unix:passwd.byname $alias_maps
    #local_recipient_maps =
    # The unknown_local_recipient_reject_code specifies the SMTP server
    # response code when a recipient domain matches $mydestination or
    # ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
    # and the recipient address or address local-part is not found.
    # The default setting is 550 (reject mail) but it is safer to start
    # with 450 (try again later) until you are certain that your
    # local_recipient_maps settings are OK.
    unknown_local_recipient_reject_code = 550
    # TRUST AND RELAY CONTROL
    # The mynetworks parameter specifies the list of "trusted" SMTP
    # clients that have more privileges than "strangers".
    # In particular, "trusted" SMTP clients are allowed to relay mail
    # through Postfix. See the smtpd_recipient_restrictions parameter
    # in postconf(5).
    # You can specify the list of "trusted" network addresses by hand
    # or you can let Postfix do it for you (which is the default).
    # By default (mynetworks_style = subnet), Postfix "trusts" SMTP
    # clients in the same IP subnetworks as the local machine.
    # On Linux, this does works correctly only with interfaces specified
    # with the "ifconfig" command.
    # Specify "mynetworks_style = class" when Postfix should "trust" SMTP
    # clients in the same IP class A/B/C networks as the local machine.
    # Don't do this with a dialup site - it would cause Postfix to "trust"
    # your entire provider's network. Instead, specify an explicit
    # mynetworks list by hand, as described below.
    # Specify "mynetworks_style = host" when Postfix should "trust"
    # only the local machine.
    #mynetworks_style = class
    #mynetworks_style = subnet
    mynetworks_style = host
    # Alternatively, you can specify the mynetworks list by hand, in
    # which case Postfix ignores the mynetworks_style setting.
    # Specify an explicit list of network/netmask patterns, where the
    # mask specifies the number of bits in the network part of a host
    # address.
    # You can also specify the absolute pathname of a pattern file instead
    # of listing the patterns here. Specify type:table for table-based lookups
    # (the value on the table right-hand side is not used).
    #mynetworks = 168.100.189.0/28, 127.0.0.0/8
    #mynetworks = $config_directory/mynetworks
    #mynetworks = hash:/etc/postfix/network_table
    # The relay_domains parameter restricts what destinations this system will
    # relay mail to. See the smtpd_recipient_restrictions description in
    # postconf(5) for detailed information.
    # By default, Postfix relays mail
    # - from "trusted" clients (IP address matches $mynetworks) to any destination,
    # - from "untrusted" clients to destinations that match $relay_domains or
    # subdomains thereof, except addresses with sender-specified routing.
    # The default relay_domains value is $mydestination.
    # In addition to the above, the Postfix SMTP server by default accepts mail
    # that Postfix is final destination for:
    # - destinations that match $inet_interfaces or $proxy_interfaces,
    # - destinations that match $mydestination
    # - destinations that match $virtual_alias_domains,
    # - destinations that match $virtual_mailbox_domains.
    # These destinations do not need to be listed in $relay_domains.
    # Specify a list of hosts or domains, /file/name patterns or type:name
    # lookup tables, separated by commas and/or whitespace. Continue
    # long lines by starting the next line with whitespace. A file name
    # is replaced by its contents; a type:name table is matched when a
    # (parent) domain appears as lookup key.
    # NOTE: Postfix will not automatically forward mail for domains that
    # list this system as their primary or backup MX host. See the
    # permit_mx_backup restriction description in postconf(5).
    relay_domains = $mydestination
    # INTERNET OR INTRANET
    # The relayhost parameter specifies the default host to send mail to
    # when no entry is matched in the optional transport(5) table. When
    # no relayhost is given, mail is routed directly to the destination.
    # On an intranet, specify the organizational domain name. If your
    # internal DNS uses no MX records, specify the name of the intranet
    # gateway host instead.
    # In the case of SMTP, specify a domain, host, host:port, [host]:port,
    # [address] or [address]:port; the form [host] turns off MX lookups.
    # If you're connected via UUCP, see also the default_transport parameter.
    #relayhost = $mydomain
    #relayhost = [gateway.my.domain]
    #relayhost = [mailserver.isp.tld]
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]
    default_transport = error: Local delivery only!
    # REJECTING UNKNOWN RELAY USERS
    # The relay_recipient_maps parameter specifies optional lookup tables
    # with all addresses in the domains that match $relay_domains.
    # If this parameter is defined, then the SMTP server will reject
    # mail for unknown relay users. This feature is off by default.
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify an @domain.tld wild-card, or specify
    # a [email protected] address.
    #relay_recipient_maps = hash:/etc/postfix/relay_recipients
    # INPUT RATE CONTROL
    # The in_flow_delay configuration parameter implements mail input
    # flow control. This feature is turned on by default, although it
    # still needs further development (it's disabled on SCO UNIX due
    # to an SCO bug).
    # A Postfix process will pause for $in_flow_delay seconds before
    # accepting a new message, when the message arrival rate exceeds the
    # message delivery rate. With the default 100 SMTP server process
    # limit, this limits the mail inflow to 100 messages a second more
    # than the number of messages delivered per second.
    # Specify 0 to disable the feature. Valid delays are 0..10.
    #in_flow_delay = 1s
    # ADDRESS REWRITING
    # The ADDRESS_REWRITING_README document gives information about
    # address masquerading or other forms of address rewriting including
    # username->Firstname.Lastname mapping.
    # ADDRESS REDIRECTION (VIRTUAL DOMAIN)
    # The VIRTUAL_README document gives information about the many forms
    # of domain hosting that Postfix supports.
    # "USER HAS MOVED" BOUNCE MESSAGES
    # See the discussion in the ADDRESS_REWRITING_README document.
    # TRANSPORT MAP
    # See the discussion in the ADDRESS_REWRITING_README document.
    # ALIAS DATABASE
    # The alias_maps parameter specifies the list of alias databases used
    # by the local delivery agent. The default list is system dependent.
    # On systems with NIS, the default is to search the local alias
    # database, then the NIS alias database. See aliases(5) for syntax
    # details.
    # If you change the alias database, run "postalias /etc/aliases" (or
    # wherever your system stores the mail alias file), or simply run
    # "newaliases" to build the necessary DBM or DB file.
    # It will take a minute or so before changes become visible. Use
    # "postfix reload" to eliminate the delay.
    #alias_maps = dbm:/etc/aliases
    #alias_maps = hash:/etc/aliases
    #alias_maps = hash:/etc/aliases, nis:mail.aliases
    #alias_maps = netinfo:/aliases
    alias_maps = hash:/etc/postfix/aliases
    # The alias_database parameter specifies the alias database(s) that
    # are built with "newaliases" or "sendmail -bi". This is a separate
    # configuration parameter, because alias_maps (see above) may specify
    # tables that are not necessarily all under control by Postfix.
    #alias_database = dbm:/etc/aliases
    #alias_database = dbm:/etc/mail/aliases
    #alias_database = hash:/etc/aliases
    #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
    alias_database = $alias_maps
    # ADDRESS EXTENSIONS (e.g., user+foo)
    # The recipient_delimiter parameter specifies the separator between
    # user names and address extensions (user+foo). See canonical(5),
    # local(8), relocated(5) and virtual(5) for the effects this has on
    # aliases, canonical, virtual, relocated and .forward file lookups.
    # Basically, the software tries user+foo and .forward+foo before
    # trying user and .forward.
    #recipient_delimiter = +
    # DELIVERY TO MAILBOX
    # The home_mailbox parameter specifies the optional pathname of a
    # mailbox file relative to a user's home directory. The default
    # mailbox file is /var/spool/mail/user or /var/mail/user. Specify
    # "Maildir/" for qmail-style delivery (the / is required).
    #home_mailbox = Mailbox
    home_mailbox = Maildir/
    # The mail_spool_directory parameter specifies the directory where
    # UNIX-style mailboxes are kept. The default setting depends on the
    # system type.
    #mail_spool_directory = /var/mail
    #mail_spool_directory = /var/spool/mail
    # The mailbox_command parameter specifies the optional external
    # command to use instead of mailbox delivery. The command is run as
    # the recipient with proper HOME, SHELL and LOGNAME environment settings.
    # Exception: delivery for root is done as $default_user.
    # Other environment variables of interest: USER (recipient username),
    # EXTENSION (address extension), DOMAIN (domain part of address),
    # and LOCAL (the address localpart).
    # Unlike other Postfix configuration parameters, the mailbox_command
    # parameter is not subjected to $parameter substitutions. This is to
    # make it easier to specify shell syntax (see example below).
    # Avoid shell meta characters because they will force Postfix to run
    # an expensive shell process. Procmail alone is expensive enough.
    # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
    # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
    #mailbox_command = /some/where/procmail
    #mailbox_command = /some/where/procmail -a "$EXTENSION"
    # The mailbox_transport specifies the optional transport in master.cf
    # to use after processing aliases and .forward files. This parameter
    # has precedence over the mailbox_command, fallback_transport and
    # luser_relay parameters.
    # Specify a string of the form transport:nexthop, where transport is
    # the name of a mail delivery transport defined in master.cf. The
    # :nexthop part is optional. For more details see the sample transport
    # configuration file.
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must update the "local_recipient_maps" setting in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    # Cyrus IMAP over LMTP. Specify ``lmtpunix cmd="lmtpd"
    # listen="/var/imap/socket/lmtp" prefork=0'' in cyrus.conf.
    #mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
    # Cyrus IMAP via command line. Uncomment the "cyrus...pipe" and
    # subsequent line in master.cf.
    #mailbox_transport = cyrus
    # The fallback_transport specifies the optional transport in master.cf
    # to use for recipients that are not found in the UNIX passwd database.
    # This parameter has precedence over the luser_relay parameter.
    # Specify a string of the form transport:nexthop, where transport is
    # the name of a mail delivery transport defined in master.cf. The
    # :nexthop part is optional. For more details see the sample transport
    # configuration file.
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must update the "local_recipient_maps" setting in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #fallback_transport = lmtp:unix:/file/name
    #fallback_transport = cyrus
    #fallback_transport =
    # The luser_relay parameter specifies an optional destination address
    # for unknown recipients. By default, mail for unknown@$mydestination,
    # unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
    # as undeliverable.
    # The following expansions are done on luser_relay: $user (recipient
    # username), $shell (recipient shell), $home (recipient home directory),
    # $recipient (full recipient address), $extension (recipient address
    # extension), $domain (recipient domain), $local (entire recipient
    # localpart), $recipient_delimiter. Specify ${name?value} or
    # ${name:value} to expand value only when $name does (does not) exist.
    # luser_relay works only for the default Postfix local delivery agent.
    # NOTE: if you use this feature for accounts not in the UNIX password
    # file, then you must specify "local_recipient_maps =" (i.e. empty) in
    # the main.cf file, otherwise the SMTP server will reject mail for
    # non-UNIX accounts with "User unknown in local recipient table".
    #luser_relay = [email protected]
    #luser_relay = [email protected]
    #luser_relay = admin+$local
    # JUNK MAIL CONTROLS
    # The controls listed here are only a very small subset. The file
    # SMTPD_ACCESS_README provides an overview.
    # The header_checks parameter specifies an optional table with patterns
    # that each logical message header is matched against, including
    # headers that span multiple physical lines.
    # By default, these patterns also apply to MIME headers and to the
    # headers of attached messages. With older Postfix versions, MIME and
    # attached message headers were treated as body text.
    # For details, see "man header_checks".
    #header_checks = regexp:/etc/postfix/header_checks
    # FAST ETRN SERVICE
    # Postfix maintains per-destination logfiles with information about
    # deferred mail, so that mail can be flushed quickly with the SMTP
    # "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
    # See the ETRN_README document for a detailed description.
    # The fast_flush_domains parameter controls what destinations are
    # eligible for this service. By default, they are all domains that
    # this server is willing to relay mail to.
    #fast_flush_domains = $relay_domains
    # SHOW SOFTWARE VERSION OR NOT
    # The smtpd_banner parameter specifies the text that follows the 220
    # code in the SMTP server's greeting banner. Some people like to see
    # the mail version advertised. By default, Postfix shows no version.
    # You MUST specify $myhostname at the start of the text. That is an
    # RFC requirement. Postfix itself does not care.
    #smtpd_banner = $myhostname ESMTP $mail_name
    #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
    # PARALLEL DELIVERY TO THE SAME DESTINATION
    # How many parallel deliveries to the same user or domain? With local
    # delivery, it does not make sense to do massively parallel delivery
    # to the same user, because mailbox updates must happen sequentially,
    # and expensive pipelines in .forward files can cause disasters when
    # too many are run at the same time. With SMTP deliveries, 10
    # simultaneous connections to the same domain could be sufficient to
    # raise eyebrows.
    # Each message delivery transport has its XXX_destination_concurrency_limit
    # parameter. The default is $default_destination_concurrency_limit for
    # most delivery transports. For the local delivery agent the default is 2.
    #local_destination_concurrency_limit = 2
    #default_destination_concurrency_limit = 20
    # DEBUGGING CONTROL
    # The debug_peer_level parameter specifies the increment in verbose
    # logging level when an SMTP client or server host name or address
    # matches a pattern in the debug_peer_list parameter.
    debug_peer_level = 2
    # The debug_peer_list parameter specifies an optional list of domain
    # or network patterns, /file/name patterns or type:name tables. When
    # an SMTP client or server host name or address matches a pattern,
    # increase the verbose logging level by the amount specified in the
    # debug_peer_level parameter.
    #debug_peer_list = 127.0.0.1
    #debug_peer_list = some.domain
    # The debugger_command specifies the external command that is executed
    # when a Postfix daemon program is run with the -D option.
    # Use "command .. & sleep 5" so that the debugger can attach before
    # the process marches on. If you use an X-based debugger, be sure to
    # set up your XAUTHORITY environment variable before starting Postfix.
    debugger_command =
    PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
    ddd $daemon_directory/$process_name $process_id & sleep 5
    # If you can't use X, use this to capture the call stack when a
    # daemon crashes. The result is in a file in the configuration
    # directory, and is named after the process name and the process ID.
    # debugger_command =
    # PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
    # echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
    # >$config_directory/$process_name.$process_id.log & sleep 5
    # Another possibility is to run gdb under a detached screen session.
    # To attach to the screen sesssion, su root and run "screen -r
    # <id_string>" where <id_string> uniquely matches one of the detached
    # sessions (from "screen -list").
    # debugger_command =
    # PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
    # -dmS $process_name gdb $daemon_directory/$process_name
    # $process_id & sleep 1
    # INSTALL-TIME CONFIGURATION INFORMATION
    # The following parameters are used when installing a new Postfix version.
    # sendmail_path: The full pathname of the Postfix sendmail command.
    # This is the Sendmail-compatible mail posting interface.
    sendmail_path = /usr/bin/sendmail
    # newaliases_path: The full pathname of the Postfix newaliases command.
    # This is the Sendmail-compatible command to build alias databases.
    newaliases_path = /usr/bin/newaliases
    # mailq_path: The full pathname of the Postfix mailq command. This
    # is the Sendmail-compatible mail queue listing command.
    mailq_path = /usr/bin/mailq
    # setgid_group: The group for mail submission and queue management
    # commands. This must be a group name with a numerical group ID that
    # is not shared with other accounts, not even with the Postfix account.
    setgid_group = postdrop
    # html_directory: The location of the Postfix HTML documentation.
    html_directory = no
    # manpage_directory: The location of the Postfix on-line manual pages.
    manpage_directory = /usr/share/man
    # sample_directory: The location of the Postfix sample configuration files.
    # This parameter is obsolete as of Postfix 2.1.
    sample_directory = /etc/postfix/sample
    # readme_directory: The location of the Postfix README files.
    readme_directory = /usr/share/doc/postfix
    inet_protocols = ipv4
    #virtual_mailbox_domains = sendingdomain.com
    virtual_alias_maps = hash:/etc/postfix/virtual_alias, mysql:/etc/postfix/mysql_virtual_forwards.cf
    virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailboxes.cf
    virtual_mailbox_base = /home/vmailer
    virtual_uid_maps = static:5003
    virtual_gid_maps = static:5003
    virtual_minimum_uid = 5003
    virtual_mailbox_limit = 51200000
    Any help would be appreciated. Thank you.
    Last edited by nadman10 (2014-05-14 14:36:10)

    Your main.cf seems redundant.
    For example:
    if you specify:
    virtual_alias_maps = hash:/etc/postfix/virtual_alias, mysql:/etc/postfix/mysql_virtual_forwards.cf
    you don't need this:
    alias_maps = hash:/etc/postfix/aliases
    and i think you have a lot of more options you don't need.
    This is my main.cf on my vps and everything works great (sending and receiving emails from/to most common mail server: gmail, hotmail etc etc)
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
    biff = no
    # appending .domain is the MUA's job.
    append_dot_mydomain = no
    readme_directory = no
    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
    message_size_limit = 4194304
    virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
    virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
    virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
    virtual_transport = dovecot
    dovecot_destination_recipient_limit = 1
    it is very simple (no dkim, no forced tls, no mailbox limits and so on) and it can be improved but it works..
    as I suggested you just try spending some hour wiping postfix installation and giving a look to this guide

  • How to send an external mail(PDF) through SCOT

    Dear All,
                     We have a requirement to mail customer invoice converting the smartform into a PDF. All the neccesary configuration that needs to be done in NACE and SPRO transactions has been done.Now when we issue the output through an output type through transaction VF03, output is successfully issued.In SP02 also it shows the printing is successfully completed.
                     But when i want to want to check the display log aginst the
    output type and billing doc issued it says dat the processing log dosnt exist.We have configured the SCOT transaction for sending external email but it doesnt send the mail and even doesnt show any request in waiting and as well as no errors so we are not being able to identify whether the configuration done is wrng which doesnt seem to be the case or is dere a problem with SCOT configuration.
                     Could any1 pls help me with the entire flow of configuring SCOT if possible with screenshots for sending external email . or if possible wat is the possible problem we are facing...
                     Awaiting ur reply shortly.
    Thanks & Regards,
    Lailu Philip.

    Internal Table declarations
    DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
          i_tline TYPE TABLE OF tline WITH HEADER LINE,
          i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
          i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
          i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
          i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
          wa_objhead TYPE soli_tab,
          w_ctrlop TYPE ssfctrlop,
          w_compop TYPE ssfcompop,
          w_return TYPE ssfcrescl,
          wa_doc_chng typE sodocchgi1,
          w_data TYPE sodocchgi1,
          wa_buffer TYPE string,"To convert from 132 to 255
    Variables declarations
          v_form_name TYPE rs38l_fnam,
          v_len_in LIKE sood-objlen,
          v_len_out LIKE sood-objlen,
          v_len_outn TYPE i,
          v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    call function 'SSF_FUNCTION_MODULE_NAME'
         exporting
              formname           = 'ZZZ_TEST1'
         importing
              fm_name            = v_form_name
         exceptions
              no_form            = 1
              no_function_module = 2
              others             = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION v_form_name
         EXPORTING
              control_parameters = w_ctrlop
              output_options     = w_compop
              user_settings      = 'X'
         IMPORTING
              job_output_info    = w_return
         EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    i_otf[] = w_return-otfdata[].
    call function 'CONVERT_OTF'
           EXPORTING
                format                = 'PDF'
                max_linewidth         = 132
           IMPORTING
                bin_filesize          = v_len_in
           TABLES
                otf                   = i_otf
                lines                 = i_tline
           EXCEPTIONS
                err_max_linewidth     = 1
                err_format            = 2
                err_conv_not_possible = 3
                others                = 4.
      Fehlerhandling
      if sy-subrc <> 0.
      endif.
      loop at i_tline.
        translate i_tline using '~'.
        concatenate wa_buffer i_tline into wa_buffer.
      endloop.
      translate wa_buffer using '~'.
      do.
        i_record = wa_buffer.
        append i_record.
        shift wa_buffer left by 255 places.
        if wa_buffer is initial.
          exit.
        endif.
      enddo.
    Attachment
      refresh:
        i_reclist,
        i_objtxt,
        i_objbin,
        i_objpack.
      clear wa_objhead.
      i_objbin[] = i_record[].
    Create Message Body
    Title and Description
      i_objtxt = 'test with pdf-Attachment!'.
      append i_objtxt.
      describe table i_objtxt lines v_lines_txt.
      read table i_objtxt index v_lines_txt.
      wa_doc_chng-obj_name = 'smartform'.
      wa_doc_chng-expiry_dat = sy-datum + 10.
      wa_doc_chng-obj_descr = 'smartform'.
      wa_doc_chng-sensitivty = 'F'.
      wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )
      clear i_objpack-transf_bin.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
      i_objpack-body_num = v_lines_txt.
      i_objpack-doc_type = 'RAW'.
      append i_objpack.
    Attachment
    (pdf-Attachment)
      i_objpack-transf_bin = 'X'.
      i_objpack-head_start = 1.
      i_objpack-head_num = 0.
      i_objpack-body_start = 1.
    Länge des Attachment ermitteln
      describe table i_objbin lines v_lines_bin.
      read table i_objbin index v_lines_bin.
      i_objpack-doc_size =  v_lines_bin * 255 .
      i_objpack-body_num = v_lines_bin.
      i_objpack-doc_type = 'PDF'.
      i_objpack-obj_name = 'smart'.
      i_objpack-obj_descr = 'test'.
      append i_objpack.
      clear i_reclist.
      i_reclist-receiver = '[email protected]'.
      i_reclist-rec_type = 'U'.
      append i_reclist.
        call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
             EXPORTING
                  document_data              = wa_doc_chng
                  put_in_outbox              = 'X'
             TABLES
                  packing_list               = i_objpack
                  object_header              = wa_objhead
                  CONTENTS_BIN               = i_objbin
                  contents_txt               = i_objtxt
                  receivers                  = i_reclist
             EXCEPTIONS
                  too_many_receivers         = 1
                  document_not_sent          = 2
                  document_type_not_exist    = 3
                  operation_no_authorization = 4
                  parameter_error            = 5
                  x_error                    = 6
                  enqueue_error              = 7
                  others                     = 8.
    1. Use the Medium 7 for sending mails instead of 1 (printout)
    2. Maintain the Mail IDs for all vendors in Vendor Master(check the ADR6 table)
    3. Do the settings for sendiing mails in SCOT and SOST tcodes with the help of Basis person
    4.In NAce also use medium 7 instead of 1 (print)
    5. In the application doc Po Me22 N also configure the output type with the medium 7 for the partner(vendor) and other sommunication method settings.
    6. CHeck the print program, I think it will consider the Medium and set the communication type automatically. check it by keeping a break point if it is not working.
    n the Smartform Functiona Module we get the Spool ID of the Smartform for the output
    use that spool ID and convert to PDF format and send mail using the fun modules
    CONVERT_ABAPSPOOLJOB_2_PDF
    SO_NEW_DOCUMENT_ATT_SEND_API1
    you have to write related code for these fun modules in the Smartform driver program itself
    and ask your basis persons to configure the SCOT and SOST tcodes to send mails to Outside Consignee Maid Id's
    REWARD POINTS IF HELPFUL
    rewar points if helpful.

  • Latest created Xchange Users unable to Send & Recieve external mails .

    Hello,
    Please need help.
    we have Exchange 2010 on SBS 2011 Standard version.
    I am the New IT for our company and I've recently found that issue in our exchange server.
    History : I use SBS Console to create a new user which automatically creates a shared folder , all permissions and also an email account.
    Cause : Yesterday i found that the user's which i had created recently say(since 2 weeks ago) they arent't able to send or receive the external mails.however they can receive the internal mails
    without any issue.
    I have the DFR from the external sender which says " No such users are found"
    This is for all the user's for whom i have created recently. the old user's are able to send and receive the external mail without any issue. i am pasting the Internet headers for the external mails that received succesfully.
    Could you please help me to find the Root cause. as i am new to exchange, i am having the hardtime.i have just moved from Domino Domain to Exchange and i posses a limited knowledge on
    exchange.
    Kindly revert for more information.Please help.
    Thank you

    Did you paste the header of an email received already?
    do you have a spam filtering device which checks for recipients before it reaches your domain ?
    Try to submit an email using telnet to your server on port 25 locally on the server and see if the server is rejecting the email.
    If it does not reject the email, we need to concentrate on further the hop that the mail takes before reaching Exchange.

  • XI Alert cannot send through external mail id ?

    Hi,
    I have configured XI Alert to monitoring Adapter Engine, The Alert is triggert and i can see in my Alert In_box in RWB.
    But then how to configure the alert send using external id
    I have configured SCOT as well, but i can't see anything from SOST ?
    Please advise any other possibility than i need to check ?
    Thank You in Advance.
    FL.
    Edited by: Fernad Lesmana on May 1, 2011 6:33 AM

    Hi Fernad,
    Assign the mail id of the recipeint of the alert in Su01
    Go to the alert inbox of the recipient , in the option / link --> personalization --> Time Independent Delivery --> select EMAIL.
    If scot is configured for every alert, the mail will be forwarder to the recipient  mail id allocated in SU01
    also try out this,
    Goto SCOT. Inside  node int (Internet), u will find another node*/SMTP.
    Try to Configure the SMTP node.  Goto Node SMTP and select Node in use checkbox.
    Now, in  SMTP Connection  -->Mail Host <specify hostname of mailserver> and Mail Port <Specify the mail port, most probably 25> and Codepage <You can select code page >
    Internet will be automatically selected, double click  on set beside internet
    in address area specify '*' so that anyone  can be sent mail
    schedule backgroud job for mails  to go out of SMTP Plugin of ICF.
    chk the link for alert configuration :-
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/de0741375cf16fe10000000a1550b0/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    Regards
    rohit

  • How prevent vacation to be send to external mailing lists?

    Hello!
    We have SunJES 2004Q2 installed.
    Some users have subscribed to external mailinglists.
    How could they prevent sending vacation mails into lists
    if they enable vacation in web frontend?
    So vacations should be send to all incoming mail senders except
    mailing lists.
    Have anybody an idea?
    Thanks in advance.
    Erik

    Hello jay!
    Thank you for your reply.
    If the list is set up correctly, we will not send a vacation
    reply to a list.Really?
    How can I determine, if the list was set up correctly?
    I mean, on which do you detect this?
    Remember it is a external mailing list, not on our server.
    Kindly regards,
    Erik

  • Sending a text mail for different user in

    Hi Abapers,
    I am trying to use function module SO_NEW_DOCUMENT_ATT_SEND_API1 to send a Text mail like "Purchase order is pending" .But how i can send a text mail .
    Here we are not attach any document only the text message we need to different mail id.Or is there any other FM to send text mail.
    Please help me if u have any sample code to send a text mail.
    Thanks
    Nani

    Hi
    You can use the fun module
    UWSP_SEND_MAIL_TO_WEB
    see the sample program using both he fun modules for sending some mails
    REPORT zm_reservation_alert
           NO STANDARD PAGE HEADING
           MESSAGE-ID zm_msg.
           D A T A B A S E  T A B L E S   D E C L A R A T I O N
                   T Y P E S  D E C L A R A T I O N S
    Reservations Main Structure
    TYPES: BEGIN OF s_res,
             rsnum TYPE rsnum,                   " Reservation No
             rspos TYPE rspos,                   " Item No
             usnam TYPE usnam,                   " User Name
             bwart TYPE bwart,                   " Movement Type
             aufnr TYPE aufnr,                   " Order Number
             rsart TYPE rsart,                   " Record Type
             bdart TYPE bdart,                   " Reservation Type
             matnr TYPE matnr,                   " Material No
             bdter TYPE bdter,                   " Req Date
             menge TYPE menge_d,                 " Quantity
             kostl TYPE kostl,                   " Cost Center
             usrid TYPE sysid,                   " User ID
           END OF s_res.
    Output Main Structure
    TYPES: BEGIN OF s_rep,
             usnam TYPE usnam,                   " User Name
             rsnum TYPE rsnum,                   " Reservation No
             rspos TYPE rspos,                   " Item No
             matnr TYPE matnr,                   " Material No
             bdter TYPE bdter,                   " Req Date
             menge TYPE menge_d,                 " Quantity
             kostl TYPE kostl,                   " Cost Center
             aufnr TYPE aufnr,                   " Order Number
           END OF s_rep.
    User Dept Details
    TYPES: BEGIN OF s_dept,
             pernr TYPE persno,                  " Personal No
             usrid TYPE sysid,                   " User ID
             orgeh TYPE orgeh,                   " Orgn Unit
             orgtx TYPE orgtx,                   " Dept Name
           END OF s_dept.
    For Send Mail Purpose
    DATA : i_doc_data LIKE sodocchgi1.
    DATA : BEGIN OF i_pack_list OCCURS 0.
            INCLUDE STRUCTURE sopcklsti1.
    DATA : END OF i_pack_list.
    DATA : BEGIN OF i_receivers OCCURS 0.
            INCLUDE STRUCTURE somlreci1.
    DATA : END OF i_receivers.
    DATA : BEGIN OF i_contents OCCURS 0.
            INCLUDE STRUCTURE solisti1.
    DATA : END OF i_contents.
    DATA : BEGIN OF i_header OCCURS 0.
            INCLUDE STRUCTURE solisti1.
    DATA : END OF i_header.
    DATA : BEGIN OF i_att OCCURS 0.
            INCLUDE STRUCTURE solisti1.
    DATA : END OF i_att.
    Internal table for bdcdata
    DATA : it_bdcdata  LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    Internal table to handle messages
    DATA : it_messages LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
               D A T A  D E C L A R A T I O N S
    DATA: gv_lines  TYPE sy-index,           " Total Lines int Table
          gv_days   TYPE i,                  " Difference Days
          gv_date   TYPE sy-datum,           " Date
          gv_date1  TYPE sy-datum,           " Date
          gv_date2  TYPE sy-datum,           " Date
          gv_text(85),                       " Text Field
          gv_mesg(70),                       " Error Messages
          gv_bdc,                            " BDC Flag
          gv_flag TYPE i,                    " Flag
          gv_ernam TYPE ernam.               " User ID
                C O N S T A N T S     D E C L A R A T I O N S
    CONSTANTS: c_x                VALUE 'X',         " Flag
               c_endda TYPE endda VALUE '99991231'.  " Date
         I N T E R N A L  T A B L E S  D E C L A R A T I O N S
    DATA: i_res TYPE STANDARD TABLE OF s_res WITH HEADER LINE,  " Reservns
          i_dept TYPE STANDARD TABLE OF s_dept WITH HEADER LINE, " Dept
          i_rep TYPE STANDARD TABLE OF s_rep WITH HEADER LINE.  " Output
                   S T A R T - O F - S E L E C T I O N                   *
    START-OF-SELECTION.
    Fetch main data
      PERFORM fetch_data.
    Process data
      PERFORM process_data.
    *&      Form  fetch_data
    Fetching the Reservations related data from Database Tables
    FORM fetch_data .
      CLEAR: gv_date, gv_date1, gv_date2.
      gv_date = sy-datum.
      gv_date1 = sy-datum - 10.
      gv_date2 = sy-datum + 10.
      CLEAR i_res.
      REFRESH i_res.
      SELECT a~rsnum                    " Reservation No.
             b~rspos                    " Reservation Item
             a~usnam                    " User Name
             a~bwart                    " Movement Type
             a~aufnr                    " Order Number
             b~rsart                    " Record Type
             b~bdart                    " Reservation Type
             b~matnr                    " Material No
             b~bdter                    " Req Date
        INTO TABLE i_res
        FROM rkpf AS a JOIN resb AS b
        ON arsnum = brsnum
        WHERE ( b~bdter BETWEEN gv_date1 AND gv_date2 ) AND
              b~xloek EQ ' '.
      SORT i_res BY rsnum rspos.
      DELETE ADJACENT DUPLICATES FROM i_res COMPARING matnr.
    Add userid into the i_usr int table
      LOOP AT i_res.
        i_res-usrid = i_res-usnam.
        MODIFY i_res INDEX sy-tabix.
      ENDLOOP.
      IF NOT i_res[] IS INITIAL.
    Get the User Dept Name
        CLEAR i_dept.
        REFRESH i_dept.
        SELECT a~pernr                    " Personal No
               a~usrid                    " User ID
               b~orgeh                    " Orgn Unit
               c~orgtx                    " Dept Name
          INTO TABLE i_dept
          FROM pa0105 AS a JOIN pa0001 AS b
          ON apernr = bpernr JOIN t527x AS c
          ON borgeh = corgeh
          FOR ALL ENTRIES IN i_res
          WHERE a~usrid = i_res-usrid AND
                a~endda EQ c_endda AND
                b~endda EQ c_endda.
      ENDIF.
      SORT i_dept BY pernr.
      DELETE ADJACENT DUPLICATES FROM i_dept COMPARING pernr.
    Move the Creator of Reservation to a diff table
      LOOP AT i_res.
        MOVE-CORRESPONDING i_res TO i_rep.
        APPEND i_rep.
        CLEAR i_rep.
      ENDLOOP.
      SORT i_rep BY usnam rsnum rspos.
    ENDFORM.                               " Fetch_Data
    *&      Form  process_data
    Process the Reservations related data for Expiry Date
    FORM process_data .
      DATA: lv_date1 LIKE sy-datum,
            lv_date2 LIKE sy-datum,
            lv_date3(10),
            lv_menge(13),
            lv_tabix LIKE sy-tabix.
      LOOP AT i_rep.
        CLEAR: gv_days, gv_text, lv_date1, lv_date2,lv_date3.
        lv_tabix = sy-tabix.
        AT NEW usnam.
    Populate the Contents Table
          CLEAR i_att.
          REFRESH i_att.
          i_att = 'Reservations Reminder'(014).
          APPEND i_att.
          i_att = '----
          APPEND i_att.
          i_att-line = '     '.
          APPEND i_att.
          READ TABLE i_dept WITH KEY usrid = i_rep-usnam.
          CONCATENATE 'Name:'(003) i_rep-usnam 'Dept:'(015) i_dept-orgtx
          INTO i_att-line SEPARATED BY space.
          APPEND i_att.
          i_att-line = '     '.
          APPEND i_att.
          i_att = 'Please find the List of expiring Reservations'(004).
          APPEND i_att.
          i_att-line = ' '.
          APPEND i_att.
          CONCATENATE '--' '' '--
    ' INTO
          i_att-line SEPARATED BY space.
          APPEND i_att.
        CONCATENATE 'Reservation #'(006) 'Material #'(007) ' Quantity'(002)
        'Due Date'(008) 'Work Center/CC'(005) INTO
        i_att-line SEPARATED BY space.
          APPEND i_att.
          CONCATENATE '--' '' '--
    ' INTO
          i_att-line SEPARATED BY space.
          APPEND i_att.
          i_att-line = ' '.
          APPEND i_att.
        ENDAT.
        gv_days  = i_rep-bdter - gv_date.
        lv_date1 = i_rep-bdter + 5.
        lv_date2 = i_rep-bdter + 10.
        MOVE i_rep-menge TO lv_menge.
        WRITE i_rep-bdter TO lv_date3.
        IF gv_days = 10.
          IF i_rep-aufnr <> space.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
             i_rep-aufnr 'is due for 10 days. Please collect'(009)
             INTO gv_text SEPARATED BY space.
          ELSE.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
             i_rep-kostl 'is due for 10 days. Please collect'(009)
             INTO gv_text SEPARATED BY space.
          ENDIF.
          i_att-line = gv_text.
          APPEND i_att.
          CLEAR i_att.
          CLEAR gv_text.
        ENDIF.
        IF gv_days = 5.
          IF i_rep-aufnr <> space.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
            i_rep-aufnr 'is due for 5 days. Please collect'(010)
            INTO gv_text SEPARATED BY space.
          ELSE.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
            i_rep-kostl 'is due for 5 days. Please collect'(010)
            INTO gv_text SEPARATED BY space.
          ENDIF.
          i_att-line = gv_text.
          APPEND i_att.
          CLEAR i_att.
          CLEAR gv_text.
        ENDIF.
        IF gv_date = lv_date1.
          IF i_rep-aufnr <> space.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
            i_rep-aufnr 'is getting cancelled on'(011) lv_date2
            INTO gv_text SEPARATED BY space.
          ELSE.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
            i_rep-kostl 'is getting cancelled on'(011) lv_date2
            INTO gv_text SEPARATED BY space.
          ENDIF.
          i_att-line = gv_text.
          APPEND i_att.
          CLEAR i_att.
          CLEAR gv_text.
        ENDIF.
        IF gv_date = lv_date2.
          IF i_rep-aufnr <> space.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
            i_rep-aufnr 'is being cancelled'(012)
            INTO gv_text SEPARATED BY space.
          ELSE.
            CONCATENATE i_rep-rsnum i_rep-matnr lv_menge lv_date3
            i_rep-kostl 'is being cancelled'(012)
            INTO gv_text SEPARATED BY space.
          ENDIF.
          i_att-line = gv_text.
          APPEND i_att.
          CLEAR i_att.
          CLEAR gv_text.
    Mark the Reservation Item 'DELETED' using BDC.
         UPDATE resb SET xloek = c_x.
          PERFORM delete_item_resb.
        ENDIF.
        AT END OF usnam.
          IF ( gv_days = 10 OR gv_days = 5 OR gv_date = lv_date1 OR
               gv_date = lv_date2 ).
    Read the User who creates the Reservn and send a mail alert to him
            CLEAR : i_receivers,gv_ernam.
            REFRESH: i_receivers.
            READ TABLE i_rep INDEX lv_tabix.
            gv_ernam = i_rep-usnam.
            IF gv_ernam <> space.
    Send mail Alert to PR Creator(SAP inbox)
              PERFORM send_alert_data.
    Send Mail to External Mail ID of the SAP USER
              PERFORM send_mail_external.
            ENDIF.
          ENDIF.
        ENDAT.
      ENDLOOP.
    ENDFORM.                              " Process_data
    *&      Form  delete_item_resb
    Set the Deletion Indicator for the Res. Item in RESB
    FORM delete_item_resb.
      gv_bdc = 'N'.
    Perform to fill it_bdcdata.
      PERFORM fill_it_bdcdata.
    Call the Transaction MB22
      CALL TRANSACTION 'MB22' USING it_bdcdata MODE 'A' UPDATE 'S'
                                    MESSAGES INTO it_messages.
      IF sy-subrc <> 0.
        gv_flag = 1.
    If error occurs in transaction mode run bdc session for that data
        PERFORM bdc_process.
      ENDIF.
    Handles error messages
      PERFORM error_messages.
      CLEAR   : it_bdcdata, it_messages.
      REFRESH : it_bdcdata, it_messages.
      IF gv_bdc = 'O'.
    close bdc if it is open
        PERFORM close_bdc.
      ENDIF.
    ENDFORM.             "delete_item_resb
    *&      Form  FILL_IT_BDCDATA
    Filling Bdcdata structure with data
    FORM fill_it_bdcdata.
      PERFORM bdc_dynpro      USING 'SAPMM07R' '0560'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RM07M-RSPOS'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RM07M-RSNUM'
                                    i_rep-rsnum.
      PERFORM bdc_field       USING 'RM07M-RSPOS'
                                    i_rep-rspos.
      PERFORM bdc_dynpro      USING 'SAPMM07R' '0510'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RESB-XLOEK'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RESB-XLOEK'
                                     c_x.
      PERFORM bdc_dynpro      USING 'SAPLKACB' '0002'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'COBL-KOSTL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
      PERFORM bdc_dynpro      USING 'SAPMM07R' '0510'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RESB-ERFMG'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BU'.
      PERFORM bdc_dynpro      USING 'SAPLKACB' '0002'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'COBL-KOSTL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTE'.
    ENDFORM.                    " FILL_IT_BDCDATA
    *&      Form  BDC_DYNPRO
    Filling the it_bdcdata table with program name & screen number
    FORM bdc_dynpro USING    program LIKE bdcdata-program
                             dynpro LIKE bdcdata-dynpro.
      it_bdcdata-program = program.
      it_bdcdata-dynpro = dynpro.
      it_bdcdata-dynbegin = 'X'.
      APPEND it_bdcdata.
      CLEAR it_bdcdata.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
      Filling it_bdcdata with field name and field value
    FORM bdc_field USING fnam LIKE bdcdata-fnam
                         fval.
      it_bdcdata-fnam = fnam.
      it_bdcdata-fval = fval.
      APPEND it_bdcdata.
      CLEAR it_bdcdata.
    ENDFORM.                    " BDC_FIELD
    *&      Form  ERROR_MESSAGES
    Displaying error messages
    FORM error_messages.
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id        = sy-msgid
          lang      = sy-langu
        IMPORTING
          msg       = gv_mesg
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
      LOOP AT it_messages WHERE msgtyp = 'E'.
        WRITE : / 'Message :'(001) ,gv_mesg.
        CLEAR it_messages.
      ENDLOOP.
    ENDFORM.                    " ERROR_MESSAGES
    *&      Form  BDC_PROCESS
    Open bdc session if call transaction fails
    FORM bdc_process.
      IF gv_bdc = 'N'.
    open bdc session
        PERFORM open_bdc.
        gv_bdc = 'O'.
      ENDIF.
      IF gv_bdc = 'O'.
    insert data into bdc session
        PERFORM insert_bdc.
      ENDIF.
    ENDFORM.                    " BDC_PROCESS
    *&      Form  OPEN_BDC
      Calling function module to open bdc session
    FORM open_bdc.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client              = sy-mandt
          group               = 'ZMM'
          keep                = 'X'
          user                = sy-uname
        EXCEPTIONS
          client_invalid      = 1
          destination_invalid = 2
          group_invalid       = 3
          group_is_locked     = 4
          holddate_invalid    = 5
          internal_error      = 6
          queue_error         = 7
          running             = 8
          system_lock_error   = 9
          user_invalid        = 10
          OTHERS              = 11.
    ENDFORM.                    " OPEN_BDC
    *&      Form  INSERT_BDC
      Insert it_bdcdata into bdc by calling function module bdc_insert
    FORM insert_bdc.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode            = 'MB22'
        TABLES
          dynprotab        = it_bdcdata
        EXCEPTIONS
          internal_error   = 1
          not_open         = 2
          queue_error      = 3
          tcode_invalid    = 4
          printing_invalid = 5
          posting_invalid  = 6
          OTHERS           = 7.
    ENDFORM.                    " INSERT_BDC
    *&      Form  CLOSE_BDC
    Closing bdc session
    FORM close_bdc.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
        EXCEPTIONS
          not_open    = 1
          queue_error = 2
          OTHERS      = 3.
    ENDFORM.                    " CLOSE_BDC
    *&      Form  send_alert_data
        Send Alert for the Expired Contract
    FORM send_alert_data .
      CLEAR: gv_lines,i_receivers, i_header, i_contents,i_doc_data.
      REFRESH : i_receivers,i_header,i_contents.
      DESCRIBE TABLE i_att LINES gv_lines.
      i_receivers-receiver = gv_ernam.
    i_receivers-receiver = 'SSHEIK'.
      i_receivers-rec_type = 'B'.
    i_receivers-rec_date = sy-datum.
    i_receivers-express = 'X'.
    i_receivers-com_type = 'INT'.
    i_receivers-notif_del = 'X'.
      APPEND i_receivers.
      i_doc_data-obj_name = 'SAPoffice'(013).
      i_doc_data-obj_descr = 'Reservations Reminder'(014).
      i_doc_data-obj_langu = 'E'.
      i_doc_data-no_change = c_x.
      i_doc_data-obj_prio = 1.
      i_doc_data-priority = 1.
      i_doc_data-doc_size = ( gv_lines - 1 ) * 255 + 135.
      i_pack_list-transf_bin = c_x.
      i_pack_list-head_start = '1'.
      i_pack_list-head_num = '1'.
      i_pack_list-body_start = '1'.
      i_pack_list-body_num = gv_lines.
      i_pack_list-doc_type = 'DOC'.
      i_pack_list-obj_name = 'SAPoffice'(013).
      i_pack_list-obj_descr = 'Reservations Reminder'(014).
      i_pack_list-obj_langu = 'E'.
      i_pack_list-doc_size = ( gv_lines - 1 ) * 255 + 135.
      APPEND i_pack_list.
    i_header-line = 'Header'. APPEND i_header.
    Data for contents
      i_contents-line = 'Please find the Reservations Due List'(016).
      APPEND i_contents.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = i_doc_data
         PUT_IN_OUTBOX                    = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
        TABLES
          packing_list                     = i_pack_list
          object_header                    = i_header
          contents_bin                     = i_att
          contents_txt                     = i_contents
          receivers                        = i_receivers
       EXCEPTIONS
         too_many_receivers               = 1
         document_not_sent                = 2
         document_type_not_exist          = 3
         operation_no_authorization       = 4
         parameter_error                  = 5
         x_error                          = 6
         enqueue_error                    = 7
         OTHERS                           = 8.
      IF sy-subrc = 0.
        MESSAGE i000 WITH 'Mail Sucessfully sent'(017).
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " send_alert_data
    *&      Form  send_mail_external
    Send mail to External MAIL ID of the PR Creator
    FORM send_mail_external.
      DATA : lv_str(24), lv_str1(40),
             lv_pernr LIKE adr6-persnumber,
             lv_adrnr LIKE adr6-addrnumber,
             lv_usrid LIKE pa0105-usrid,
             lv_mail  LIKE adr6-smtp_addr,
             lv_sendor   TYPE syuname,
             lv_receiver TYPE string,
             lv_header   TYPE string,
             lv_body     TYPE string.
      CLEAR: lv_pernr, lv_usrid, lv_adrnr,
             lv_mail, lv_sendor, lv_receiver,
             lv_header, lv_body .
      lv_usrid = gv_ernam.
      SELECT SINGLE persnumber addrnumber FROM usr21
             INTO (lv_pernr,lv_adrnr)
             WHERE bname = lv_usrid.
      IF sy-subrc = 0.
        SELECT SINGLE smtp_addr INTO lv_mail FROM adr6
               WHERE addrnumber = lv_adrnr AND
                     persnumber = lv_pernr.
        IF sy-subrc <> 0.
          CONCATENATE lv_usrid '@anc.com' INTO lv_mail.
          lv_receiver =  lv_mail.
        ELSE.
          lv_receiver =  lv_mail.
        ENDIF.
       lv_receiver =  '[email protected]'.
        lv_sendor = 'JALKHATAM'.
        lv_header = 'Reservations Reminder'(014).
        lv_str  = 'Pls check your SAP Inbox'(019).
        lv_str1 = 'for the status of Reservations Due List'(020).
        CONCATENATE lv_str lv_str1 INTO lv_body
        SEPARATED BY space.
    Call Function Module To send mail
        CALL FUNCTION 'UWSP_SEND_MAIL_TO_WEB'
          EXPORTING
            id_header           = lv_header
            id_body             = lv_body
            id_receiver         = lv_receiver
            id_sender           = lv_sendor
      ID_HTML_MAIL         =
           id_commit_work       = 'X'
         EXCEPTIONS
           error                = 1
           OTHERS               = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    ENDFORM.                    " send_mail_external
    Reward points for useful Answers
    Regards
    Anji

  • Why are people recieving my messages from my e-mail instead of just my name in their contact book?

    When I send someone a message on iMessage, on their phone the name comes up as my email address instead of my name in their contact list, and it is seperate from the message that they sent me via imessage. How can I fix this?

    Settings > Messages > Receive At > Caller ID.
    What is selected as your iMessage Caller ID?
    Is the email address selected for your Caller ID available as an email address for your contact info in the recipient's Contacts?

  • XML Forms - news message - send content as mail

    Hi all,
    our customer would like to have the possibility to send an XML forms news item by mail. Not just a mail with the link to the news item, but the content has to be displayed as HTML into the mail body.
    Has anybody implemented this before or knows what would be the best way?
    Perhaps an approach would be to create a new XML command that allows selection of one or two XML files and generate an e-mail?
    Thanks for the help,
    Kevin

    Hi Kevin,
    Here is my solution :
    1. Create a UI Command named like "Send Form by E-Mail"
    Here is example
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Implementing%20Flexible%20UI%20One-Step-Screenflow.article">Implementing Flexible UI One-Step-Screenflow</a>
    Modify this example according to your requirements.
    Create a command group for your UI Command.
    2. Then create a new layout set for your news items. In the resource renderer select your new command group for "Resource Command Group" and use your new Layout Set for your XML Forms.
    Here is a similar example :
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3079%3Fpage%3Dlast%26x-order%3Ddate">A Real World Example of Flexible User Interface – Part 2</a>
    Regards
    Abdul.

  • Messages sending as iMessage to ex iphone user

    I was wondering if anyone can help. When I got my Iphone 4 I gave my 3gs to my mum. She used my account for the app store and when iOS5 came out she got her own account to use with iMessage, find my friends ect. My mum has now moved to an Android phone and is using her iphone as an ipod and to play games with wifi.
    I've removed the iphone 3gs from the relevant accounts as I've seen there are problems with iMessage. I've turned off iMessage from my mums phone and removed her apple id from her phone, but when I message her from my phone it still insists on trying to send as an iMessage and instead of sending as a text message after so long, she just never receives it so I have to change it to a text message by holding the message and pressing "send as text". After doing this, things are fine for a while, but then after a few hours it will start trying to send iMessages to her again.
    This is driving us both insane, and I've exhausted all my options. Does anyone have any idea what I can do to stop this? and why have apple made it so difficult to do? People do have freedom of choice to move to other phones after all.
    I had a crappy experience at an apple store last week and am starting to get disillusioned with the who apple machine that I used to be such a fan of
    Any help appreciated.
    Sort it out apple!
    Rachel

    have you tried removing her from your contact and then readding her number?

  • Font problem sending from Mac Mail to PC users.

    I'm using Mac Mail - as I wanted to do away with Entourage to bring everything under the Mac umbrella. Problem is now that I have switched app. whenever I send a mail to a PC user the font changes to Times. I've tried changing my default font from Arial, to Tahoma and Verdana (all commonly used fonts in Outlook & Entourage etc) but it always comes through as Times. I can however trick it by changing the font just before I send the mail and it then comes through as the specified font.

    It's my one HUGE complaint about Mail and it is a
    simple problem. Pre-Tiger when Mail used HTML
    formatting, there was not problem. But the RTF
    formatting is bollocks.
    Pre-Tiger, Mail did not use html, it used .rtf. Tiger Mail now uses HTML. (Both are called "rich text" in Mail). But the "default" settings are for incomings, not outgoings. For outgoings you need to do it for each message with the Font Panel. And of course at the other end, the recipient has to be viewing html: If his mail client is set to read plain text, it will use his font preferences and not what you intended.
    Best to send Apple some feedback on how you would prefer that it work:
    http://www.apple.com/macosx/feedback/

Maybe you are looking for

  • How to resize the Page Content  componet through css

    Hi, We need a fix size of each component in a page . e,g. if my page contains recent activity, discussion , announcement,document list, etc. we need each component styles must be coming from the css class i,e the width,height of component should comi

  • Word 2007 and volatile user

    Guys, I did not know where to ask. We use volatile user and I have a problem with word 2007. I can't get word to hold the settings, toolbars etc. I was able to change normal.dotx, and that's fine in regards to the page formating, but I can't make wor

  • Problem open multiple pictures in Photoshop

    I am working on a picture file, jpgs, changing the size, the level, etc.  I open 4 or 5 pictures, modifying each as I open it and then when I try to open  the next I receive an  error message that says:  Could not complete your request because of a p

  • Calling a function from procedure

    Please someone let me know if I'm going in the right direction or am I making it too difficult for myself. I'm only using the exam guide on programming units which assumes the reader already has a firm grasp on the material. I am entry level and need

  • FAQ: What are the System Requirements for the Photoshop CS6?

    System Requirements for Photoshop CS6: Windows Intel® Pentium® 4 or AMD Athlon® 64 processor; 2GHz or faster processor Microsoft® Windows® XP with Service Pack 3; or Windows 7 1GB of RAM 1GB of available hard-disk space for installation; additional f