Exchange 2010 : Delivery Restrictions. Send the delivery failure email to a list.
Hello,
As the title says, I would like to know if it's possible to send the delivery failure email to a specific list.
I have correctly configured the mailbox so it's working like a whitelist, if you dont have the right to send email to it then you will recieve a delivery failure from Exchange. That is perfectly working.
But, my question is, for that specific mailbox, I'd like to know if we can send also the delivery failure to a specific list, in order to let the admins to know that someone tried to send an email to that mailbox.
Regards,
Hi,
According to your description, you want the specific mailbox send NDR to a group(list). If I misunderstand your meaning, please feel free to let me know.
If yes, I’m afraid that it’s an unsupported behavior:
http://support.microsoft.com/kb/817220
However, admin can depend audit log to detect the mailbox activities.
http://technet.microsoft.com/en-us/library/ff459237(v=exchg.141).aspx
If you have any question, please feel free to let me know.
Thanks,
Angela Shi
TechNet Community Support
Similar Messages
-
IOS 4.3.1 + Exchange 2010 "was" fine with the mailbox on Ex2007 server
Hi,
i had used my iphone with ios 4.3.1 and active sync.
The mailbox was hosted on the old exchange 2007 server.
A new exchange 2010 server was running the last 4 weeks and the iphone was connection with activesync against the new exchange 2010 through local wlan and over internet.
After i moved my profile to the new server i can´t connect anymore to the new server!
Any idea what happend?It was working fine the last weeks with my mail account sitting on exchange 2007.
Today i moved several mailboxes from exchange 2007 to 2010 SP1.
I have some domain accounts that are created new and had their mailbox created on the exchange 2010 sp1 system.
With these accounts i can connect and retrieve mails.
But with my account (moved from 2007 to 2010) i can´t.
All i get is a blank mailbox on my iphone.
I even removed the mail account from my iphone and recreated the account.
But it won´t retrieve mails.
I refresh the offline addressbook at the exchange 2010 but nothing will help.
Message was edited by: juergenb52 -
Data from check boxes fails to be collected, when sending the PDF as email
Hi
I am working on an interactive PDF that should act as an ordersheet for clients to fill out. I am using Acrobat Pro 9, and everything works as intended, but when the client tries to send the order by email (By pressing a button that uses "submit a form" as actio, where it sends the whole PDF to a single email), the pdf pops up in the email client, and everything looks fine, except all of the checkboxes. None of them have been checked, even though the client have done so. I have searched the forums without luck, so now i am trying in here.
I have made sure that the client is using the version, that has the extended reader rights.
If you feel need additional information regarding the PDF, just ask.
Thank you very much for your time.Edit>Preferences>Email accounts>List of email accounts. Click the drop-down that says "add account" and select Gmail. After adding it, you can go to the account area and change it to default.
-
Not able to see the output in sost when sending the image in email body
I am sending the image in email body and when m trying to see the output in SOST then it showing a page 'you are not connected to the internet'
I am able to see the output when m saving local objects but when m saving it in some package its showing me this page
Kindly help it
Regards
Pratham KapoorHello Prakash,
Thanks for the reply
I am able to see the mail in SOST but when I click on the Display Document to see the content of the mail then I am getting this error of 'you are not connected to the internet'
My Program is to put the logo in my email body
I am sending you the attached image -
Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. It worked, but only for those with PC. However, I could not get it to work with Apple loaded with Yosemite even with reader installed . Is there a way i can make it work for apple / Mac? It worked fine on a mac using Mountain Lion and reader
ThanksLiveCycle = XFA forms.
afaik - These cannot be used in Apple OSs.
Be well... -
Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go. it worked, but only for those with adobe pro. i could not get it to work with reader. is there a way i can make it work for reader?
Noted.
The LiveCycle user to user forum is across town at:
Adobe LiveCycle
Be well... -
I updated Firefox and now, when I select File, Send Link, a dialog box pops up asking me to establish a new account before I can send the link via email. I use Outlook, so how do I avoid setting up some new account and yet am able to send the link via Outlook?
I have a feeling it may have something to do with HotMail.com.My Error: I found out that it was Mozilla Thunderbird that was causing the problem. I uninstalled it and the problem went away.
-
Exchange 2010 - Cannot receive/send large attachements - Did all the configurations needed
Hello All,
I am using Exchange 2010 Standard Server - SP1. I am having difficulty send\receiving large attachments. I went through all the KB documents and solutions, but to still no avail. Can anyone let me know if I am missing anything else.
Below is what I have done already:
Thank you in advance!
1. Organization Configuration
Organization Configuration | Hub Transport | Global Settings tab | Transport Settings |
2. Server Configuration
Server Configuration | Hub Transport | select a HT server | Receive Connectors -> select a connector | Properties |
3. Send Connector Configuration
Organization Configuration | Hub Transport | Send Connectors -> select connector | Properties |
4. Recipients Configuration
Recipients Configuration | Mailbox | select mailbox | properties | Mail Flow Settings | Message Size Restrictions|
5. Recipients Group Configuration
Recipients Configuration |Distribution Group | select Group | properties | Mail Flow Settings | Message Size Restrictions
6. Global Setting --- Please use adsiedit to connect Configuration container:
Configuration container | Services | Microsoft Exchange |YourOrgName| Global Settings | Message Delivery | Properties,check the below values:
a. delivContentLength
b. SubmissionContentLength
c. msExchRecipLimit
7. Transport Rules -- Organization Configuration | Hub Transport | Transport RulesHello All,
I am using Exchange 2010 Standard Server - SP1. I am having difficulty send\receiving large attachments. I went through all the KB documents and solutions, but to still no avail. Can anyone let me know if I am missing anything else.
The error I get is "552 5.3.4 Message size exceeds fixed maximum message size"
Below is what I have done already:
Thank you in advance!
1. Organization Configuration
Organization Configuration | Hub Transport | Global Settings tab | Transport Settings |
2. Server Configuration
Server Configuration | Hub Transport | select a HT server | Receive Connectors -> select a connector | Properties |
3. Send Connector Configuration
Organization Configuration | Hub Transport | Send Connectors -> select connector | Properties |
4. Recipients Configuration
Recipients Configuration | Mailbox | select mailbox | properties | Mail Flow Settings | Message Size Restrictions|
5. Recipients Group Configuration
Recipients Configuration |Distribution Group | select Group | properties | Mail Flow Settings | Message Size Restrictions
6. Global Setting --- Please use adsiedit to connect Configuration container:
Configuration container | Services | Microsoft Exchange |YourOrgName| Global Settings | Message Delivery | Properties,check the below values:
a. delivContentLength
b. SubmissionContentLength
c. msExchRecipLimit
7. Transport Rules -- Organization Configuration | Hub Transport | Transport Rules -
Exchange 2010 - Method to send e-mail when the WAN IP is dynamic
Hello,
I am writing due to the fact that I cannot send e-mail from my Exchange 2010 Server to my Yahoo! address for testing. When trying to do so, I get the following error message:
mta1106.mail.gq1.yahoo.com gave this error:
Mail from xxx.xxx.xxx.xxx not allowed - 5.7.1 [BL21] Connections not accepted from IP addresses on Spamhaus PBL; see
http://postmaster.yahoo.com/errors/550-bl21.html [550]
As one can see, because my IP address is residential, I cannot send e-mail to all addresses on the web. I really would like to use this as my primary contact, and thought of using a proxy. Can someone recommend a good proxy, or workaround for this? I am
sorry for posting in Exchange 2013, but I couldn't find the 2010 forum. Thank you to all who reply.
MikeThank you for your reply,
I have set up DynDNS, and I am currently using my own domain name. The problem was I needed to configure a smart SMTP host, or relay server on my send connector. I decided to go with SMTP2GO, as they are cheap, and allow you to send 20 e-mails a day for
free. When the money is right, I plan to upgrade.
Thank you for your help.
Mike -
Exchange 2010 does not send mail outside the organization
Hi,
I have an issue with my Exchange 2010 server and the issue is that I cannot send messages outside the organization. There are lot of posts regarding this issue, but in my case the issue is a little bit different and I didn't find an answer. There is properly
configured send connector, DNS records are OK, external domain is properly configured, all Exchange services are started. The server is running on VM with 4 virtual CPUs, 32GB of RAM. When I send a message to ouside domain the message is not delivered.
I have enabled protocol logging (SMTP logging) and there are no records in the log. What I found is that when I reboot the server, immediately after restart I am able to send an email to outside domain, few minutes later the messages, addressed to the
same outside domain are not being delivered.
The VM is created on LUN, presented from storage Fujitsu Eternus DX90S2, communication between the storage and the host is through iSCSI, all the disks on the storage are 2TB, SATA, 7200rpm.
I can't explain to myself what is going on.No, unfortunately I do not receive NDR, the queue is empty as well. However, I am receiving a message from Exchange and it states that the message, sent to external domain is not yet delivered and the server will continue to try to deliver it, there is no
reason specified for delaying. The message is:
Generating Server: exchange.domain.local
My_Email_Is_Here
#550 4.4.7 QUEUE.Expired; message expired ## -
Exchange 2010 can't send or receive email with attachments.
Hello,
We have an Exchange 2010 server, running under Windows 2008R2. Both the server and Exchange are current for Windows and Exchange updates. Exchange is on SP3 installed about a month ago with no errors reported in the event logs.
The problem is that attachments over about 1 MB do not send or receive and no error message is returned. If I send an email message with a 3 MB attachment to myself, it reports as sent in Outlook. On the Exchange server the message queue shows nothing in
the queue. I try to use Exchange mail flow tracking tool and it hangs when selecting “messages received from” option. I gave up waiting after 5 minutes for the display to populate.
As the server is set attachments should be able to send and receive up to 20 MB.
I checked and verified all settings I could find related to this. I checked with the Exchange Management Console per the following article:
http://www.msexchange.org/articles-tutorials/exchange-server-2010/management-administration/managing-limits-exchange-server-2010-part1.html
I also checked using the Exchange Power Shell using the following article:
http://eightwone.com/2010/09/29/exchange-message-size-limits/
Both show that all settings are suitable. Details are below
I would appreciate feedback on this problem.
Thank you!
Details from the articles noted above:
First test was to attach a 3 mb text file in Outlook sent from my in house account to my in house account. After 5 minutes the test message was not received nor was there an error message returned.
Checked The Exchange server mail queue and there was nothing in the queue. Checked the Exchange mail flow tracking tool and it hung when selecting “messages received from” option.
Reviewed and verified settings per the following 2 articles:
Article #1
http://www.msexchange.org/articles-tutorials/exchange-server-2010/management-administration/managing-limits-exchange-server-2010-part1.html
Organization Configuration>Hub Transport>General Settings>Global Settings>Transport Settings set to max receive size (KB) = 20480
Settings set to max send size (KB) = 20480
Organization Configuration> Hub Transport> Send Connectors tab.
Maximum message size (KB) set to 20480
Exchange Management Console> Server Configuration> Hub Transport> and then on the right side, select the desired server.
A list of all Receive Connectors will be shown below
There are 3 receive Connectors
#1) named Client XXXXXXXXXX
Maximum message size (KB) set to 20480
#2) named Default XXXXXXXXXX
Maximum message size (KB) set to 20480
#3) named relay
Maximum message size (KB) set to 20480
Use Exchange Management Shell to check settings
#1) Get-ADSite
Returns:
Name HubSiteEnabled
Default-First-Site-Name False
#2) Get-ADSiteLink
Name ADCost ExchangeCost Sites
DEFAULTIPSITELINK 100 {xxxx.local/Configuration/Si...
#3) Get-ADSiteLink | select Max*
MaxMessageSize
unlimited
Exchange Management Console>Expand Organization Configuration>Click on Hub Transport item>Click on Transport Rules tab
No rules
Article #2
http://eightwone.com/2010/09/29/exchange-message-size-limits/
COMMAND: Get –TransportConfig
results:
ClearCategories : True
ConvertDisclaimerWrapperToEml : False
DSNConversionMode : UseExchangeDSNs
ExternalDelayDsnEnabled : True
ExternalDsnDefaultLanguage :
ExternalDsnLanguageDetectionEnabled : True
ExternalDsnMaxMessageAttachSize : 10 MB (10,485,760 bytes)
ExternalDsnReportingAuthority :
ExternalDsnSendHtml : True
ExternalPostmasterAddress :
GenerateCopyOfDSNFor : {}
HygieneSuite : Standard
InternalDelayDsnEnabled : True
InternalDsnDefaultLanguage :
InternalDsnLanguageDetectionEnabled : True
InternalDsnMaxMessageAttachSize : 10 MB (10,485,760 bytes)
InternalDsnReportingAuthority :
InternalDsnSendHtml : True
InternalSMTPServers : {}
JournalingReportNdrTo : <>
LegacyJournalingMigrationEnabled : False
MaxDumpsterSizePerDatabase : 18 MB (18,874,368 bytes)
MaxDumpsterTime : 7.00:00:00
MaxReceiveSize : 20 MB (20,971,520 bytes)
MaxRecipientEnvelopeLimit : 500
MaxSendSize : 20 MB (20,971,520 bytes)
MigrationEnabled : False
OpenDomainRoutingEnabled : False
Rfc2231EncodingEnabled : False
ShadowHeartbeatRetryCount : 12
ShadowHeartbeatTimeoutInterval : 00:15:00
ShadowMessageAutoDiscardInterval : 2.00:00:00
ShadowRedundancyEnabled : True
SupervisionTags : {Reject, Allow}
TLSReceiveDomainSecureList : {}
TLSSendDomainSecureList : {}
VerifySecureSubmitEnabled : False
VoicemailJournalingEnabled : True
HeaderPromotionModeSetting : NoCreate
Xexch50Enabled : True
COMMAND:
Set-TransportConfig –MaxReceiveSize 20MB –MaxSendSize 20MB
C:\Windows\system32>Set-TransportConfig -MaxReceiveSize 20MB -MaxSendSize 20MB
WARNING: The command completed successfully but no settings of 'Transport Settings' have been modified.
COMMAND:
Get-SendConnector
Identity AddressSpaces
Enabled
Internet {SMTP:*;1}
True
COMMAND:
Set-SendConnector -Identity Internet -MaxMessageSize 20MB
WARNING: The command completed successfully but no settings of 'Internet' have been modified.
COMMAND:
Get-ReceiveConnector
Identity Bindings Enabled
XXXXXXXXXX\Default XXXXXXXXXX {0.0.0.0:25}
True
XXXXXXXXXX \Client XXXXXXXXXX {:::587, 0.0.0.0:587} True
XXXXXXXXXX \relay {0.0.0.0:25}
True
COMMAND:
Get-ReceiveConnector | fl Identity,MaxMessageSize
Identity : XXXXXXXXXX \Default XXXXXXXXXX
MaxMessageSize : 20 MB (20,971,520 bytes)
Identity : XXXXXXXXXX \Client XXXXXXXXXX
MaxMessageSize : 20 MB (20,971,520 bytes)
Identity : XXXXXXXXXX \relay
MaxMessageSize : 20 MB (20,971,520 bytes)
COMMAND:
Get-AdSiteLink | fl Name,*max*
Name : DEFAULTIPSITELINK
MaxMessageSize : unlimited
COMMAND:
Get-RoutingGroupConnector <ConnectorID> | FL Name, *Max*
No routing group connectors are installed
Individual
Recipient Configuration > Mailbox>Properties of the User> Activate tab Mail Flow Settings> Properties>Message Size Restrictions settings:
Set to 20480 for send and receive for all.
Re-tested and had the same problem.
Post on Technet.ExchangeITPro,
Thank you for your reply.
>what SP are you at?
As noted in the first paragraph: "We have an Exchange 2010 server, running under Windows 2008R2. Both
the server and Exchange are current for Windows and Exchange updates. Exchange is on SP3 installed about a month ago with no errors reported in the event logs."
>try restarting the transport services.
Done previously as well as the entire server. No change. -
Delivery failure email from Lotus to SAP CRM2007
Hi,
We have mail setting between Lotus to SAP. When we reiceve delivery failure mail from SAP CRM2007 SAP is not received the complete email with body. SAP is receiving only subject line in inbox overview in SCOT.
We see from Lotus server complete email has been sent.
Please help me .
Regards,
Naveen- Firstly go to MXtoolbox.com and check that your IP is not blacklisted.
Checked and I don't see it as being blacklisted. That said, I clicked the "find problems' button on there
and it came up with a few issues:
- Secondly, can you telnet on port 25 from your exchange server?
I'm not quite sure how to do this. Do you mean telnet to their server from our Exchange server?
- Lastly,
try increasing the smtp timeout and see if the mail goes through.
I will try this.
- Are
you having this problem all the time or just with this client?
As far as I know, just this one client.
- Any
changes to firewalls recently or did you introduce any spam software etc.?
No, no changes.
Thanks for your help!
Dan Chandler-Klein -
Exchange 2010 - Accepting Messages Above the Attachment Size Limit
Recently we implemented a new Exchange 2010 server in a site. This site is in another country with very poor WAN connectivity. Our standard attachment limit is 50MB (51200 kb) .
Since we have put this server in place I am seeing messages get stuck in the queue that are above the 50MB limit.
What I am confused about is how are they making it there, why is Exchange accepting them? I have checked all the connectors, they are all appear to be set correctly.
What I also notice is these messages sit in the queue and get error:
421 4.4.2 Connection dropped due to ConnectionReset
Any ideas?Consider applying an enterprise limit by using Set-TransportConfig -MaxSendSize -MaxReceiveSize.
http://technet.microsoft.com/en-us/library/bb124151(v=exchg.150).aspx
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems." -
Exchange 2010, UCC SSL, and the "new" CA/BROWSER Forum not issuing for .local
I don't know how many people have run into this yet, but the CA/BROSWER Forum, the "standards" authority for SSL issuing, has mandated that CA's can no longer issue a certificate using a FQDN "intranet" name for new or renewal SSL certificates effective
Nov 1, 2012. i.e. the Microsoft standard of mydomain.local will no longer be accepted as a SAN on a UCC for Exchange 2010. I've looked thru the KBs and Social forums, but haven't really found any guidance on how to solve this. I'm presuming
that the certs will have to be split and the "external" domain name of server.mydomain.net will just become a single server SSL, and the internal name of server.mydomain.local will become a Self-Signed certificate. With the increasing prevalence of OA
and ActiveSync devices, is there any baseline guidance yet on how to make this happen without completely fouling up production servers and killing access to the user community?On the same topic, though likely different environment...
Against recommended deployment, I have a number of clients running all their services on one box. Windows Server 2008, Active Directoy, DNS, Exchange 2010 ...and so on. These servers all have .local addresses, which means of course that the SAN
certificates have .local addresses as one of the SANs.
I've read alot online about this issue, and am trying to find the most cost effective solution to switch numerous production servers running this configuration.
The best solution I've come up with so far is...
1. Virtual AD with new external domain, 2. Migrate Exchange CAS to this domain, 3. Reconfigure network through the box.
Obviously these steps will contain alot more details, but this is just the outline atm. At best, I see me having to take a second box with me to each location to perform these steps, and I can't see it happening without disruption to the work flow
of employees.
Thankfully, all of these businesses are relatively smal...under 25 employees. Still, I'd like to find the smoothest transition solution possible.
Any suggestions would be greatly appreciated!
Regards -
Problem in sending the smartform as email for other language except english
Hi Experts,
I could not send the smartform as an attachment for other languages, but where as i could send it in english.
The program is working fine with print priview but not when sending the SF as an attachment
(in other languages except english).
Please do find the below code which i used to send the smartform as an attachment.
Please let me know if there is any mistake in the code.
wa_ctrlop-LANGU = nast-spras.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_compop-tdnoprev = 'X'.
CALL FUNCTION lf_fm_name "'/1BCDWB/SF00000197'
EXPORTING
control_parameters = wa_ctrlop
output_options = wa_compop
user_settings = 'X'
is_ekko = l_doc-xekko
is_pekko = l_doc-xpekko
is_nast = l_nast
iv_from_mem = l_from_memory
iv_druvo = iv_druvo
iv_xfz = iv_xfz
IMPORTING
job_output_info = wa_return
TABLES
it_ekpo = l_doc-xekpo[]
it_ekpa = l_doc-xekpa[]
it_pekpo = l_doc-xpekpo[]
it_eket = l_doc-xeket[]
it_tkomv = l_doc-xtkomv[]
it_ekkn = l_doc-xekkn[]
it_ekek = l_doc-xekek[]
it_komk = l_xkomk[]
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.
*Convert the data from OTF to PDF format
it_otf[] = wa_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = l_len_in
bin_file = lp_xcontent
TABLES
otf = it_otf
lines = it_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
TRY.
---------- create persistent send request ----------------------
send_request = cl_bcs=>create_persistent( ).
len = XSTRLEN( lp_xcontent ).
transform to solix tab
lt_solix =
cl_document_bcs=>xstring_to_solix(
ip_xstring = lp_xcontent ).
Create Body to the E-mail.
APPEND Text-005 TO l_text.
Attachment Name
l_ponumber = text-004.
CONCATENATE l_ponumber l_doc-xekko-ebeln INTO l_ponumber.
Subject for the E-Mail.
l_subject = text-001.
CONCATENATE l_subject l_doc-xekko-ebeln INTO l_subject.
*create document E-Mail.
*TRY.
CALL METHOD cl_document_bcs=>create_document
EXPORTING
i_type = 'RAW'
i_subject = l_subject
i_length = '13'
i_language = nast-spras
i_importance =
i_sensitivity =
i_text = l_text
i_hex =
i_header =
i_sender =
receiving
RESULT = l_email_object
CATCH cx_document_bcs .
*ENDTRY.
CALL METHOD cl_document_bcs=>create_document
EXPORTING
i_type = 'RAW'
i_subject = l_subject
i_length = '13'
i_text = l_text
RECEIVING
result = l_email_object.
*Create PDF Document
bcs_doc = cl_document_bcs=>create_document(
i_type = 'PDF'
i_subject = l_ponumber
i_length = len
i_language = nast-spras
i_hex = lt_solix
*Type casting
obj_pdf_file ?= bcs_doc.
Add PDF document as an attachment
CALL METHOD l_email_object->add_document_as_attachment
EXPORTING
im_document = obj_pdf_file.hi,
i tried with ur problem.but i am able send mail in other languages also.actaullly i wrote a msg whether the mail has been sent or not.i got success message. i am placing my code here please go thorugh it,and do relavant modifications.
*& Report ZPPS_SMARTFORM_TO_PDF
REPORT ZPPS_SMARTFORM_TO_PDF.
PARAMETER: p_date LIKE sy-datum.
PARAMETER: p_rea TYPE char255.
DATA: t_otfdata TYPE ssfcrescl,
t_lines LIKE tline OCCURS 0 WITH HEADER LINE,
t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
t_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
Objects to send mail.
DATA:T_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
T_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
T_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.
DATA: w_filesize TYPE i,
w_bin_filesize TYPE i,
wa_ctrlop TYPE ssfctrlop,
wa_outopt TYPE ssfcompop,
WA_BUFFER TYPE STRING, "To convert from 132 to 255
WA_OBJHEAD TYPE SOLI_TAB,
WA_DOC_CHNG TYPE SODOCCHGI1,
W_DATA TYPE SODOCCHGI1.
DATA: form_name TYPE rs38l_fnam,
V_LINES_TXT TYPE I,
V_LINES_BIN TYPE I,
nast-spras type sy-langu value 'DE'.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSR_DEMO1'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = 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.
wa_ctrlop-LANGU = nast-spras.
wa_ctrlop-getotf = 'X'.
wa_ctrlop-no_dialog = 'X'.
wa_outopt-tdnoprev = 'X'.
CALL FUNCTION form_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = wa_ctrlop
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = wa_outopt
USER_SETTINGS = 'X'
MYDATE = p_date
REASON = p_rea
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = t_otfdata
JOB_OUTPUT_OPTIONS =
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.
t_otf[] = t_otfdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
ARCHIVE_INDEX = ' '
COPYNUMBER = 0
ASCII_BIDI_VIS2LOG = ' '
PDF_DELETE_OTFTAB = ' '
IMPORTING
BIN_FILESIZE = w_bin_filesize
BIN_FILE =
TABLES
OTF = t_otf
LINES = t_lines
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 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.
loop at t_lines.
TRANSLATE t_lines USING '~'.
CONCATENATE WA_BUFFER T_LINES INTO WA_BUFFER.
ENDLOOP.
TRANSLATE WA_BUFFER USING '~'.
DO.
t_RECORD = WA_BUFFER.
APPEND t_RECORD.
SHIFT WA_BUFFER LEFT BY 255 PLACES.
IF WA_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH: T_RECLIST,
T_OBJTXT,
T_OBJBIN,
T_OBJPACK.
CLEAR WA_OBJHEAD.
T_OBJBIN[] = T_RECORD[].
Create Message Body Title and Description
T_OBJTXT = 'test with pdf-Attachment!'.
APPEND T_OBJTXT.
DESCRIBE TABLE T_OBJTXT LINES V_LINES_TXT.
READ TABLE T_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
CLEAR T_OBJPACK-TRANSF_BIN.
T_OBJPACK-HEAD_START = 1.
T_OBJPACK-HEAD_NUM = 0.
T_OBJPACK-BODY_START = 1.
T_OBJPACK-BODY_NUM = V_LINES_TXT.
T_OBJPACK-DOC_TYPE = 'RAW'.
APPEND T_OBJPACK.
Attachment (pdf-Attachment)
T_OBJPACK-TRANSF_BIN = 'X'.
T_OBJPACK-HEAD_START = 1.
T_OBJPACK-HEAD_NUM = 0.
T_OBJPACK-BODY_START = 1.
DESCRIBE TABLE T_OBJBIN LINES V_LINES_BIN.
READ TABLE T_OBJBIN INDEX V_LINES_BIN.
T_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
T_OBJPACK-BODY_NUM = V_LINES_BIN.
T_OBJPACK-DOC_TYPE = 'PDF'.
T_OBJPACK-OBJ_NAME = 'smart'.
T_OBJPACK-OBJ_DESCR = 'test'.
APPEND T_OBJPACK.
CLEAR T_RECLIST.
T_RECLIST-RECEIVER = 'MAIL-ID'.
T_RECLIST-REC_TYPE = 'U'.
APPEND T_RECLIST.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = WA_DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = T_OBJPACK
OBJECT_HEADER = WA_OBJHEAD
CONTENTS_BIN = T_OBJBIN
CONTENTS_TXT = T_OBJTXT
RECEIVERS = T_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.
IF SY-SUBRC <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
and i thought of one more soluyion u can write
wa_ctrlop-langu = T002-spras. i think it will also help for u.
revert back if any questions.
please reward me if helpful.
gupta.pullipudi
Maybe you are looking for
-
Family Sharing prevents installs of "FREE" apps.. why?!?
So I just started using family sharing from my account to my families apple ID's.. previously all apps were purchased under my ID. Just got a new iPhone 6 for my lady, set it up under her apple ID which is part of my new family share. Went to install
-
Updating multiple subscreens in using DYNP_VALUES_UPDATE
Hi, I have subscreens in multiple tabs. One tab is with fields, the other with a table. The requirement is that either selecting from fields or table, it will prompt a pop-up with tree structure for selection. Once a selection is made (multiple value
-
Applescript to rename a text variable
Hello. I am currently using automator to make folders named after the large numbers of images. I have everything set up and its working great but I am trying to make it more efficient. The images follow a filename structure such as: bmz12345_black_1.
-
Service Module Report - tracing field origin
I have a Crystal report, "Service Call Ticket" which reference the folloiwing table and fields. ServiceCallTicket is the table name. The fields aree ItemNo, Quantity, Price, LineTotal. I cannot trace this back to the originating table. Doed anyone k
-
How to make JFrame window un-resizable?
I create a window using JFrame. I don't want user to re-size the window. How can I do that? Thanks!