How do I send an email with an attachment larger than 20mb
I am using exchange 2013 and I have users that when they send any emails with attachments over 20mb, it fails.
How do I change the setting to allow up to 30mb attachments in size? I've googled this, but to no avail.
In ECP, I looked under mailflow and then rules, but I don't have any rules there. I tried creating one, but I can't because I don't have the enterprise CALs I guess is what it's telling me.
Any help would be appreciated.
Dan
Hello Everyone, I've already tried everything that was suggested, I changed everything to 50 or 60 MB.
The user settings is unlimited. For testing, I changed my own account to 100mb.
Still the same error message.
[PS] C:\Windows\system32>get-transportconfig
AddressBookPolicyRoutingEnabled
: False
AnonymousSenderToRecipientRatePerHour : 1800
ClearCategories
: True
ConvertDisclaimerWrapperToEml
: False
DSNConversionMode
: UseExchangeDSNs
EnableJournalArchive
: False
ExternalDelayDsnEnabled
: True
ExternalDsnDefaultLanguage
ExternalDsnLanguageDetectionEnabled : True
ExternalDsnMaxMessageAttachSize
: 50 MB (52,428,800 bytes)
ExternalDsnReportingAuthority
ExternalDsnSendHtml
: True
ExternalPostmasterAddress
GenerateCopyOfDSNFor
: {5.4.8, 5.4.6, 5.4.4, 5.2.4, 5.2.0, 5.1.4}
HygieneSuite
: Standard
InternalDelayDsnEnabled :
True
InternalDsnDefaultLanguage
InternalDsnLanguageDetectionEnabled : True
InternalDsnMaxMessageAttachSize
: 50 MB (52,428,800 bytes)
InternalDsnReportingAuthority
InternalDsnSendHtml
: True
InternalSMTPServers
JournalingReportNdrTo
: <>
LegacyJournalingMigrationEnabled
: False
LegacyArchiveJournalingEnabled
: False
LegacyArchiveLiveJournalingEnabled : False
RedirectUnprovisionedUserMessagesForLegacyArchiveJournaling : False
RedirectDLMessagesForLegacyArchiveJournaling : False
MaxDumpsterSizePerDatabase
: 33 MB (34,603,008 bytes)
MaxDumpsterTime
: 7.00:00:00
MaxReceiveSize
: 60 MB (62,914,560 bytes)
MaxRecipientEnvelopeLimit
: 5000
MaxRetriesForLocalSiteShadow
: 2
MaxRetriesForRemoteSiteShadow :
4
MaxSendSize
: 60 MB (62,914,560 bytes)
MigrationEnabled
: False
OpenDomainRoutingEnabled
: False
RejectMessageOnShadowFailure
: False
Rfc2231EncodingEnabled
: False
SafetyNetHoldTime
: 2.00:00:00
ShadowHeartbeatFrequency
: 00:02:00
ShadowMessageAutoDiscardInterval
: 2.00:00:00
ShadowMessagePreferenceSetting
: PreferRemote
ShadowRedundancyEnabled
: True
ShadowResubmitTimeSpan :
03:00:00
SupervisionTags
: {Reject, Allow}
TLSReceiveDomainSecureList
TLSSendDomainSecureList
VerifySecureSubmitEnabled
: False
VoicemailJournalingEnabled
: True
HeaderPromotionModeSetting
: NoCreate
Xexch50Enabled
: True
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-receiveconnector | fl maxmessagesize
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
MaxMessageSize : 50 MB (52,428,800 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-sendconnector | fl maxmessagesize
MaxMessageSize : 60 MB (62,914,560 bytes)
MaxMessageSize : 65 MB (68,157,440 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-transportconfig | fl externaldsnmaxmessageattachsize
ExternalDsnMaxMessageAttachSize : 50 MB (52,428,800 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-transportconfig | fl internaldsnmaxmessageattachsize
InternalDsnMaxMessageAttachSize : 50 MB (52,428,800 bytes)
[PS] C:\Windows\system32>
[PS] C:\Windows\system32>get-transportconfig | fl maxsendsize
MaxSendSize : 60 MB (62,914,560 bytes)
[PS] C:\Windows\system32>
Is there any other setting you want to see? Is there another configuration change I missed?
Dan
Similar Messages
-
When I send an email with an attachment larger than 1 MB from iMail, the email gets suck in the sent folder. This happens no matter if I am using wireless or using an ethernet connection.
Many email programs, including Mail, will send data up to a certain size.
The good new - there are some solutions. You can compress the file and make the email much faster to send; you can download a free application like Compress, which also allows you to uncompress. Or, you can send your email via your webmail connection (your ISP, like ATT); if you manage your email through your desktop computer, the email should be sent just fine.
Apple Mail is designed for smaller documents, well under 1mb. -
Sending an Email with an attachment for all the Customers
Hi friends,
How can i send an email with an attachment to the customers email address.
the attachment will be in doc format.
the data which i am sending must be in a TABLE format
withe 5 columns.
Having an Header
and each column with a column heading
Please guide me.
Thanks in Advance,
Ganesh.http://www.sap-img.com/abap/sending-email-with-attachment.htm
Sending mail to an external maild with PDF attachment.
Creating a PDF attachment and send it via Email
Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface
How to send a ttachment with email.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-Sendthespooldatatoanemail+address.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/convertSpoolrequesttoPDFandsendase-mail
Friend just have a look in the forum itself, there are many posts for ur query, you definetly get exact solution no need to wait for answers/solutions.
All the best -
How to send an email with an attachment to the customers email address.
Hi friends,
How to send an email with an attachment to the customers email address.
the attachment will be in doc format.
Having an Header
the data which i am sending must be in a TABLE format
with 5 columns.
and each column must have a column heading
Please guide me.
Thanks in Advance,
Ganesh.*& Report ZEMAIL_ATTACH *
*& Example of sending external email via SAPCONNECT *
REPORT ZEMAIL_ATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver .
*Here get the values of mail from the table adn6 for the customer address.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .xls documnet attachment'
'DOC'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
*class cl_abap_char_utilities definition load.
*constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
endform. " POPULATE_EMAIL_MESSAGE_BODY
regards,
venkat. -
How do I send an email with a "read receipt" please
how do I send an email with a "read receipt" please
banyard,
There is no support for read receipts in Apple mail.
Sorry,
Captfred -
How do I send an email with a group address and not show the addresses/names of the recipients?
Use BCC. That's blind carbon copy. And copy paste the address into the BCC field. It really depends what e-mail program you use how to enable BCC.
-
How can i send an email with subject more than 50 char.
Hi
Can you please explain How can i send an email with subject more than 50 char?? I am using Cl_BCS=>SET_MESSAGE_SUBJECT but it is throwing an error " An exception of the type CX_SY_REF_IS_INITIAL has occured which is not caught" .
Regards
AlokTry using the following FM
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = i_mail_data
put_in_outbox = c_x
TABLES
packing_list = i_objpack[]
object_header = i_objhead[]
contents_bin = i_objbin[]
contents_txt = i_objtxt[]
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.
Regards
Avinash
Edited by: Avinash Jagtap on Dec 2, 2009 7:00 AM
Edited by: Avinash Jagtap on Dec 2, 2009 7:02 AM -
How do I send an email with hyperlinks active upon receipt?
How do I send an email with hyperlinks active upon receipt? Currently the hyperlinks are only active once I open the attachment. I want them to arrive active just like they do in the emails I receive from Office Depot et al.
mlaughbaum wrote:
BTW, it is "showing". It's just that the links aren't active.
Sometimes you need to look at it from the perspective of a recepient. Save the message before sending and close it. It will be in your Drafts Folder. Click once on it in the Drafts list so you can view is as the recepient would. (Don't open for edit) The links should be active.
Jerry -
How do I send an email with blind address recipients?
How do I send an email with blind address recipients?
When you open a New Message there's a little box with three lines next to the Subject Box. When you click it you get a drop down menu with a list of options. Click on Bcc Address Field. That will add a BCC box to your message.
-
on my mac why does it take so long to send a Email with an attachment, on my mac why does it take so lone to send a Email with an attachment
It depends on the size of the attachment and the speed of your internet connection.
Next time you send an email with an attachment do these two things:
In Apple Mail (I assume you are using Apple Mail), under the Window menu select Activity. Arrange the Activity window so you can see it.
Then open the separate application located in the Utilities folder called "Activity Monitor" and arrange it so you can see it at the same time as the Activity window in Mail.
In Activity Monitor program, select the tab labeled "Network." Watch the "Data sent/sec" portion. Then send your email, while watching the Mail Activity window and also the Activity Monitor program window Data sent/sec area.
You should see the mail being sent with a progress bar in the Mail Activity window and also you should be able to see how many bytes/sec or KB/sec or MB/sec your internet connection is giving you in the Activity Monitor window.
Example: my internet provider gives me about 20 Megabits per second download and 5 Megabits per second upload. To convert these to Megabytes per second (Activity Monitor shows things in bytes, not bits), simply divide by 10 (not the exact thing to do, but close enough). So I get 0.5 Megabytes per second upload speed. When I send a file that is 5 Megabytes in size, it takes about 10 seconds if I am getting the full upload bandwidth. If I am getting less than that (which sometimes happens), it will take proportionately more time. Either way, you can see what is happening with these two windows.
If your internet provider is supposed to give you, say, 5 Megabits/sec upload (0.5 Megabytes/sec), but you see only say, 5 KB/sec (=0.005 Megabytes/sec), sent in Activity Monitor, then your emails are taking a long time because you are getting only abut 1/100 the speed you should be. You might want to check with your internet provider about that. -
Scheduling crontab to send an email with an attachement?
(second post, 1st in wrong forum)
Hey everyone,
Does anyone know how to set up a command to send an email with an attachement? From what I've been informed so far, I inputed:
0 22 * * * (cat mailtext; uuencode filename.txt filename.txt) | mail -s 'here is the backup log' [email protected]
#The first filename.txt will also have the file path preceding it.
I done all this and still no email. Do I have to enable smtp or set up the mail server?
Any help would be much appreciated. Thanks!
Xserve Mac OS X (10.4.2)What you're describing doesn't make any use of Automator.
That being said, using command line "mail" does require that the Unix mail system be set up. This site has a utility for doing that.
If you want to use Automator (the subject of this forum), you might try this:
Create a new Automator workflow with these three actions:
Get Specified Finder Items -- put your desired attachment(s) in the list
New Mail Message -- fill in all appropriate fields
Send Outgoing Messages
Once you confirm that the workflow works, save it as an application. Then you can make it repeat with cron like you specified in your posting, but with the Automator task. E.g., if you saved it to the desktop, and with the name AutoSendDailyReport, edit your crontab:
<pre>0 22 * * * ~/Desktop/AutoSendDailyReport.app/Contents/MacOS/AutoSendDailyReport</pre>
Note that in this example, you'll need to be logged in at the time the cron job runs, so that the applications can run. It will automatically launch Mail, if not already running, and send the email.
Alternatively, you can use iCal to schedule the task: set up a repeating event, with the alarm set to open the workflow app created above. Once again, you'll need to be logged in at the time the mail is to be sent.
Titanium PowerBook Mac OS X (10.4.4) -
Issue in sending the email with XL attachment in ECC version
Hi,
I have an issue with sending the email with XL attachment. My program is sending a mail to the receiver with XLS as attachment. Recently we have migrated from 4.6B to ECC version. Same code was worked in 4.6B.But it is not working in ECC version.When i try to open the attachment, i get a Dialog Box with the following message
"The file is not in a recognizable format.
1. if you know the file is from another program whih is incompatible with Microsoft excel,click cancel,then open this file in its original application
2.If you suspect the file is damaged, click help for more information about solving theproblem.
3.if you still want to see what text is contained in the file, click OK.Then click the text import wizard. "
when i click OK, the excel sheet is opening with all required data.
Can anyone kindly tell me why this is happening.
I am also attaching part of the coding related to this requirement.
*& Form BUILD_XLS_DATA_TABLE
text
--> p1 text
<-- p2 text
FORM build_xls_data_table.
DATA: w_total(13),
w_clabs(13),
w_cinsm(13),
w_ceinm(13),
w_cretm(13),
w_cspem(13),
w_cumlm(13),
w_exp_date(8),
w_v_totalp(13),
w_min_rem(8),
w_ersda(10),
w_hsdat(10),
w_vfdat(10),
w_ship_date(10),
w_plnmg(13),
w_mhdrz(4).
CLEAR: w_total, w_clabs, w_cinsm, w_ceinm, w_cspem, w_exp_date,
w_v_totalp, w_min_rem, w_ersda, w_hsdat, w_vfdat, w_ship_date,
w_plnmg, w_mhdrz.
w_total = it_batch1-total.
w_clabs = it_batch1-clabs.
w_cinsm = it_batch1-cinsm.
w_ceinm = it_batch1-ceinm.
w_cspem = it_batch1-cspem.
w_cumlm = it_batch1-cumlm.
w_cretm = it_batch1-cretm.
w_exp_date = it_batch1-exp_date.
w_v_totalp = it_batch1-v_totalp.
w_min_rem = it_batch1-min_rem.
w_plnmg = it_batch1-plnmg.
w_mhdrz = it_batch1-mhdrz.
CONCATENATE it_batch1-ersda6(2) it_batch1-ersda4(2)
it_batch1-ersda+0(4) INTO w_ersda SEPARATED BY '.'.
CONCATENATE it_batch1-hsdat6(2) it_batch1-hsdat4(2)
it_batch1-hsdat+0(4) INTO w_hsdat SEPARATED BY '.'.
CONCATENATE it_batch1-vfdat6(2) it_batch1-vfdat4(2)
it_batch1-vfdat+0(4) INTO w_vfdat SEPARATED BY '.'.
CONCATENATE it_batch1-ship_date6(2) it_batch1-ship_date4(2)
it_batch1-ship_date+0(4) INTO w_ship_date SEPARATED BY '.'
CONCATENATE
it_batch1-werks it_batch1-mtart it_batch1-matnr it_batch1-maktg
it_batch1-prdha it_batch1-prctr it_batch1-ktext it_batch1-dispo
it_batch1-charg it_batch1-lgort it_batch1-herkl w_clabs
w_cinsm w_ceinm w_cretm w_cspem
w_cumlm w_total it_batch1-meins it_batch1-v_spr_unit
w_v_totalp it_batch1-waers w_plnmg it_batch1-meins
w_ersda w_hsdat w_vfdat w_exp_date
w_ship_date w_mhdrz w_min_rem it_batch1-zlifer
it_batch1-doknr it_batch1-dokar it_batch1-doktl it_batch1-dokvr
INTO L_STRING SEPARATED BY CON_TAB.
INTO l_string SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
WHILE l_string <> space.
CALL FUNCTION 'TEXT_SPLIT'
EXPORTING
length = 255
text = l_string
as_character = 'X'
IMPORTING
line = it_attach
rest = l_string.
IF l_string = space.
CONCATENATE IT_ATTACH CON_CRET INTO IT_ATTACH.
CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
APPEND it_attach.
CLEAR it_attach.
ELSE.
APPEND it_attach.
CLEAR it_attach.
ENDIF.
ENDWHILE.
move l_string to it_attach .
CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
APPEND it_attach.
CLEAR it_attach.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
text
--> p1 text
<-- p2 text
FORM send_file_as_email_attachment.
DATA:w_length TYPE i.
DATA: w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = text-034 .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
DESCRIBE TABLE it_attach LINES w_cnt.
DESCRIBE TABLE it_message LINES w_cnt.
READ TABLE it_message INDEX w_cnt.
w_length = STRLEN( it_attach ).
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_message ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = text-034.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
***Start of changes by 501507008 on 29.01.2009
t_packing_list-obj_descr = 'MAIL BODY'.
***End of changes by 501507008 on 29.01.2009
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = 'XLS'.
t_packing_list-obj_descr = text-034.
t_packing_list-obj_name = 'filename'.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
LOOP AT it_adr6.
t_receivers-receiver = it_adr6-smtp_addr.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ' '
sender_address_type = ' '
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_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.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
commit_work = ' '
IMPORTING
sent_to_all =
new_object_id =
tables
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
contents_hex =
object_para =
object_parb =
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.
ENDIF.
ENDFORM. " SEND_FILE_AS_EMAIL_ATTACHMENTHi,
could you tell me which opeion should i select in SCOT under INT node. I have tried with diffrent options. but no luck.
SAPscript/Smart Forms - No Conversion
ABAP List - No Conversion
Business Object/Link - No Conversion
RAW Text - No Conversion -
I am unable to send an email with an attachment I created in Pages version 5.0.1. It also prevented me from sending out any other emails with or without an attachment. I finally fixed my email so I could send out again but when I tried to send an attachment created in Pages it wouldn't allow it. Can someone help me, please! Thanks!
Pages 5 is having problems with GMail, Google and Yahoo. Dropbox may have fixed their problem with an update.
Along with this problem and others, Apple has removed over 90 features from Pages 5.
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Pages '09 should still be in your Applications/iWork folder.
Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
Peter -
Sending an Email with Excel Attachment from Local directory
Hi,
I have a requirement : I want to send an email with an attachment which is exist on local directory and currently I am using
cl_bcs classes
Thanks,
Moderator message: Welcome to SCN!
Moderator message: please do more research before asking, show what you have done yourself when asking.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Aug 4, 2011 5:15 PMHi,
I have a requirement : I want to send an email with an attachment which is exist on local directory and currently I am using
cl_bcs classes
Thanks,
Moderator message: Welcome to SCN!
Moderator message: please do more research before asking, show what you have done yourself when asking.
[Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
[Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
Edited by: Thomas Zloch on Aug 4, 2011 5:15 PM -
When I try to send an email with photo attachment on my iPad a screen appears which states " the sender is not recognized by the server" . What do I have to change so I can always send emails fr om my iPad with or without attachments. I am a novice!!!!!!
If you purchased about 2 years ago new I am sure it is a Intel iMac. To find out what type of iMac you have just click on the Apple menu item in the finder and select about this Mac. I would check the ISP mail site and get the correct outgoing mail server info.
Maybe you are looking for
-
Download error message keeps coming on retrying to update application, tells me to get help
Download error message keeps coming on retrying to update application, tells me to get help
-
Hi experts, I have generated wsdl for the outbound interface in PI 7.1. Now I am testing that web service through XML spy but I am getting the error saying file could not be posted. what will be the possible cause of the error. Do I need to publish
-
Mountain lion installation pauses
Tried to reinstall mountain lion and right after installation says complete then reboots, on start up spinning wheel tuns for about 3 minutes then stops spinning and computer never boots fully. Anyone else having this problem? Only work around for me
-
Recovering Apps and Purchased Music
I just ran a clean install of XP on my PC (system froze and couldn't restore). I updated iTunes but none of the Apps I've purchased appear in my settings. Is there a way to recover those apps? Can I transfer them off of my phone back onto iTunes? And
-
Trying to import MP4 to iMovie
Alright, so I downloaded a video file from the internet, and the format is apparently MP4. But when I import it to iMovie, it doesn't show up in the event viewer. The event will be created for it, but there's nothing in it. I checked the folder in my