Include txt file (containing email addresses) as option to name in "To" to enable send email to many recipients individually
Thunderbird can be made into a good mass mailing software by having the option of allowing a txt file name in the "To" field. The software then picks up each email address in the txt file and sends the email to each email address individually.
Most people keep a list of 100 or 200 or so emails to whom they send regular emails as a txt or xls file. This feature will help enable people use Thunderbird as the mass mailer and send emails to email addresses in a txt or xls file
Mass mailing softwares usually cost about $ 50 and this feature will save people this money.
Regards
''mahesh534 [[#question-1048348|said]]''
<blockquote>
Thunderbird can be made into a good mass mailing software by having the option of allowing a txt file name in the "To" field. The software then picks up each email address in the txt file and sends the email to each email address individually.
Most people keep a list of 100 or 200 or so emails to whom they send regular emails as a txt or xls file. This feature will help enable people use Thunderbird as the mass mailer and send emails to email addresses in a txt or xls file
Mass mailing softwares usually cost about $ 50 and this feature will save people this money.
Regards
</blockquote>
Similar Messages
-
My icloud email address is included in a friend's address group set up in Gmail. When they send an email to the group, the email never gets through to my icloud address - why?
They've always been able to send to me individually - just not when my email is part of a group or even when it's just included with several other addresses added one at a time.
-
What file contains my Address Books information?
I would like to reformat my disk, but I want to save the file that contains my Address Books information. Can someone tell me what the name of this files is and where it resides? Thanks!
Each contact has a file on its own.
They reside in ~/Library/Application Support/AddressBook/Metadata/
You can (somewhat) view their content with TextEdit
You want to backup the full "AddressBook" folder. Not just the individual files found in Metadada
Have a nice day. -
Each month I email out our Parish Newsletter to about 120 addressees. This month, for the first time, it failed to deliver, returning an error message saying that I am exceeding the temporary limit of the server and that I have too many recipients. I tried to resolve by splitting into 2 mails of 60 addressees but got same error message
I can understand the need for anti-spamming techniques, but
1. What has changed since last month?
2. How temporary is "temporary" ie when will things normailise?
3. What is maximum number of recipients I can use during this temporary measure?
tks
SDI have several groups set up in WLM (I use Windows 7). The sizes range from 6 to over 70. Until very recently I have had no problems sending emails to these groups. However, I have been away for a couple of weeks and since returning have been unable to send to the groups with 70 members. I get an error message relating to the server of a particular recipient, quoting error message 452.
On researching this it would appear that the recipient whose address in each case is blocking the sending, is number 50 on the list; implying that WLM has put a restriction on the maximum number I can have in a group. I contacted BT yesterday who said they had made no changes to their operation, and, anyway, they could only speak about using the web based BT Yahoo.
I received a message today from BT saying that the problem was "solved". I spoke with them since I tried a test message to one of my groups with 50 recipients - which failed, but when I deleted one person the test message went through.
A different BT customer service person explained that because of the amount of spam being generated these days, a limit was being put on the number of recipients that could be in a group sent via BT. Their suggestion was that I split my larger groups down to less than 50, but also don't send out emails to two smaller groups within a small space of time. They said that they were "monitoring" the situation but did not commit themselves as to what will happen in the future.
I am clearly unhappy with this situation and will be contacting BT more formally about it. At least it explains why my (larger) group emails are being rejected.
Do BT view these forums? -
Is there a Mac Mail app to send emails to many, but individually?
If you want to send the same email to a bunch of people, you can stick all their email addresses in the TO field. That really makes some people mad since it discloses their email addresses to other recipients. The alternative is to send that email to yourself and use the BCC for the list. But many spam filters assume that BCC sent emails are spam, so some of your recipients won’t get the email. I've seen a couple of applications for Outlook (for example, Send Personally) that will send the same email to many people, but in an individual email. Is there anything like this that works with Mac Mail?
DebbieThanks, V.K. I will use your suggestion next time. I send out press releases to about 10 publications and they're already in a group folder, but I've been sending the releases individually.
According to a friend, Send Personally adds a button to your Outlook next to the send button. If you click the Send Personally button, it takes the long list of emails in the TO field and sends the email to each one as if you had done it individually. Sounds like something I could use, but I have no desire to use Outlook.
Thanks again,
Debbie -
Can i import .pst files containing emails to my iPad Air?
I want to use my iPad Air as a replacement for my laptop.
How do I import all my emails from Outlook 2010 onto my iPad Air as i have a 64 gb iPad?To add to the earlier question, I have downloaded the MS Office for iPad Air and also office 365 and paid for a home premium version but i cant seem to get outlook even though it is specified as part of office 365
-
Distribution of files containing an (euro) sign in the name
We have in our distribution a file with a eurosign in the filename. In the
logfile there is an entry with following message:
Gather (name of distribution) stopped with error - the file (name of file)
could not be read, therefore, it could not be gathered. (IO error)
The eurosign in the filename shows up as an ? (questionmark) in the above
errormessages.
If we remove the file then the distribution will be succesfully gathered
and distributed.
Is this a knownerror, am I doing something wrong, please, help. I have
searched the knowledge base, but found nothing.
Thanks,
ErikWhy curently still moving to ZEN 6.5? ZEN 7 has been out for a year now and
the general support for 6.5 has just ended, it's in extended support now so
only security fixed for the next year.
Ron
<[email protected]> wrote in message
news:WiDEg.379$[email protected]..
> We are in the middle of a "major" migration move, introducing Zen 6.5.
> Hence the move to Zen 7 is, at this point, no option.
>
> Maybe someone else has an answer other than throwing the euro out ;-).
>
> Thanks for testing
>
> Erik
>
>> I just did a quick test in my test-environment (ZEN7SP1) and haven't had
> any
>> problems.
>>
>> Try 6.5 SP2 to see if that resolves the issue and let us know if it
> does
>> (or if you have upgrade protection move to ZEN 7 SP1).
>>
>> Ron
>>
>> <[email protected]> wrote in message
>> news:z_ACg.2705$[email protected]..
>> > Zen 6.5 sp1a on Netware 6.5sp5
>> >
>> > The file is a worddocument (*.doc) used as a templatefile.
>> >
>> >> What ZSM version and support pack are you using?
>> >>
>> >> Ron
>> >>
>> >
>>
>>
> -
Problem with Mail 2.1 to send small size email to many recipients
I'm trying to send a broadcast email to everyone in my address book for a change of address, around 500 people - this is not spam...these peole will WANT to receive my new contact details. I got about 100 through and then now continually get error message from Mail that my message hasn't gone through and that it "the server reject email from ..." and then lists my email address.
Is there a limit to the number outgoing emails you can send ? what is it? Per day or 24 hr period? Is there a way to raise the limit if you pay more ?
I'd very much appreciate any help here is as I haven't found any sort of tech support phone number for Mail to call.
Best,
Brian
PS - I'm still receiving incoming mailpmoney,
If you need a RMA, you will need to contact Customer Support either via email or phone. Also, it may be a fault with the sub and not just the cable alone, anyway contact Customer Support and they will be able to assist further.
Jason -
Email attachment with .txt file (first line blank in the file)
Hi all ,
Iam trying attach .txt file to email , the file that iam accessing from server . But first line blank (extra) even though i dont have blank line in original file .Can any help me out to resolve this issue?
<u>Example</u> original file
12345 aa pq
<u>Email attachment file</u>
-> This line
12345 aa pq
This is my code:
REPORT ZTEST_FILE .
DATA:BEGIN OF t_upload occurs 0,
matnr LIKE zwplcsmev-matnr,
zwgehrrg LIKE zwplcsmev-zwgehrrg,
zwgehrct LIKE zwplcsmev-zwgehrct,
zwgbev LIKE zwplcsmev-zwgbev,
zwpldt LIKE zwplcsmev-zwpldt,
zwacdt LIKE zwplcsmev-zwacdt,
END OF t_upload.
*DATA: maildata type sodocchgi1.
*DATA: mailtxt type table of solisti1 with header line.
*DATA: mailrec type table of somlrec90 with header line.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA:REC(80) TYPE C.
DATA g_mask(20) TYPE c VALUE ',., ..'.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA:P_ERROR(3).
DATA:P_REFO(3).
DATA: gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
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.
selection-screen begin of block b1 with frame title text-001.
parameters:p_file type localfile.
parameter:p_email type ad_smtpadr.
selection-screen end of block b1.
--At Selection-Screen- -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'TB_LIMIT_WS_FILENAME_GET'
EXPORTING
def_filename = p_file
mask = g_mask
mode = 'S'
title = 'INPUT FILE'
IMPORTING
filename = p_file
EXCEPTIONS
selection_cancel = 1
selection_error = 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.
START-OF-SELECTION.
PERFORM process_file.
if p_error = 'X' AND P_REFO <> 'X'.
PERFORM populate_message_body.
ENDIF.
IF P_REFO = 'X' AND P_ERROR <> 'X'.
it_message = 'Please find Attached file'.
APPEND it_message.
PERFORM send_attachment tables it_message
it_attach
using p_email
'Crest to Plc Data'
'TXT'
p_file
changing gd_error
gd_reciever.
ENDIF.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
END-OF-SELECTION.
*& Form process_file
text
FORM process_file.
*CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
DATA :l_path TYPE string.
l_path = p_file.
CONSTANTS: con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB
con_cret type c value cl_abap_char_utilities=>newline.
OPEN DATASET P_FILE FOR INPUT IN TEXT MODE encoding default.
if sy-subrc = 0.
do.
read dataset p_file into IT_ATTACH.
IF SY-SUBRC NE 0 .
EXIT.
ELSE.
T_UPLOAD = IT_ATTACH.
CONCATENATE con_cret it_attach INTO it_attach .
append it_attach.
clear it_attach.
P_REFO = 'X'.
APPEND T_UPLOAD .
clear t_upload.
ENDIF.
ENDDO.
else.
p_error = 'X'.
ENDIF.
ENDFORM. "process_file
*& Form populate_message_body
text
FORM populate_message_body.
w_doc_data-obj_name = 'TEST'.
w_doc_data-obj_descr = 'Crest to Plc Data'.
w_doc_data-obj_langu = sy-langu.
it_message = 'File Not Found'.
APPEND it_message.
t_receivers-receiver = p_email.
t_receivers-rec_type = 'U'.
append t_receivers.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = w_doc_data
document_type = 'RAW'
put_in_outbox = 'X'
tables
object_header = it_message
object_content = 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.
if sy-subrc = 0.
commit work.
SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN.
else.
MESSAGE s027(vv) WITH 'E-mail not sent'.
endif.
ENDFORM. "populate_message_body
*& Form send_attachment
text
FORM send_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.
w_doc_data-doc_size = 1.
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[].
clear t_attachment.
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.
if sy-subrc = 0.
commit work.
SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN.
else.
MESSAGE s027(vv) WITH 'E-mail not sent'.
endif.
Populate error return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM. "send_attachmentJust copy the code below and execute . I just checked and found the exact values on attachment with no blank lines. This is more simple than the one u have written , just include ur data upload logic . For ITAB values to be attached i have written a simple logic to retrive from EKPO. Just copy this code and execute. u will understand then.
I understand that ur initial requirement was to attach the file directly and not to upload and attach. If u still want to go for the old requirement then check out the code(2nd program of the two that i have sent) that i have sent u on ur previous post.
REPORT ZEMAIL_ATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver
DEFAULT '[email protected]'.
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_TXT_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .TXT speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using p_email
'Example .TXT documnet attachment'
'TXT'
'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_TXT_DATA_TABLE
Build data table for .txt document
FORM build_txt_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 SPACE . "con_tab.
CONCATENATE con_cret it_attach INTO it_attach." Use this if req.
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 SPACE ."con_tab.
CONCATENATE con_cret it_attach INTO it_attach." Use this if req.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_txt_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
execute this code and i hope that will help u.
regards,
Barath. -
Importing fixed width text from a .txt file
I am really struggling to do in Numbers '09 something which I can do easily in Excel.
I have a txt file containing plain text in fixed-width columns which I would like to import into numbers.
I just cannot find a way to do it.
I have tried using the Insert/choose menu item - but it won't take .txt files.
I have tried to copy/paste the data, but it get's pasted into a single column.
The data consists of many lines like this:
Part Value Device Package Library Sheet
A-IN JST-2.0-4 JST-2.0-4 JST-20M KMILLAR 1
A-IN JST-2.5-4 JST-2.5-4 JST-25M KMILLAR 1
A-IN JST-2.8-4 JST-2.8-4 JST-28M KMILLAR 1
(and so on....)
(Each column is an exact number of characters wide, but these forums make that hard to see due to the variable spaced fonts).
How can I import this data into numbers?
(Sorry, but I cannot get the data in any other format, such as CSV, the application which exports it only support fixed width colums with spaces for padding).
Many thanks in advance,
KennyHere is a script treating the case of fixed widths values.
--[SCRIPT fixedwidth_values_toTSV.scpt]
Enregistrer le script en tant que Script : fixedwidth_values_toTSV.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
aller au menu Scripts , choisir Numbers puis choisir fixedwidth_values_toTSV
Choisir un fichier texte.
Le script détermine la largeur des différentes colonnes puis remplace les groupes séparateurs par des caractères TAB.
Le résultat est passé dans le presse-paiers et est enregistré à la place du contenu initial.
Vous pouvez alors
(1) coller dans le document de votre choix
(2) ouvrir le fichier texte modifié dans Numbers qui accepte sans broncher les ficiers .txt.
Utilisation alternative : enregistrer le script en tant que Progiciel (Application sous 10.6.x)
Glisser-déposer l'icône d'un fichier texte sur celle de l'application lancera le traitement voulu.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
Sous 10.6.x,
aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
puis cocher la case "Afficher le menu des scripts dans la barre des menus".
--=====
Save the script as a Script: fixedwidth_values_toTSV.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
go to the Scripts Menu, choose Numbers, then choose "fixedwidth_values_toTSV"
Choose a text file.
The script scan the file's contents to extract the width of every column then it replace the separator groups by TAB characters.
The result is passed to the clipboard and is written in the original file.
So you may :
(1) paste in the document of your choice
(2) open the modified text file with Numbers which is fair enough to do that.
An alternate track is to save the script as an Application Package (Application under 10.6.x)
Drag and drop the icon of a text file on the application's one will do the job.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Under 10.6.x,
go to the General panel of AppleScript Editor’s Preferences dialog box
and check the “Show Script menu in menu bar” option.
--=====
Yvan KOENIG (VALLAURIS, France)
2010/08/19
--=====
on run
set un_fichier to choose file with prompt "Choose e text file…" of type {"public.plain-text"} without invisibles
my commun(un_fichier)
end run
--=====
on open (sel)
set un_fichier to item 1 of sel
tell application "System Events" to set type_ID to type identifier of disk item ("" & un_fichier)
if type_ID is "public.plain-text" then my commun(un_fichier as alias)
error "The file “" & un_fichier & "” isn’t a text file !"
end open
--=====
on commun(le_fichier)
set le_contenu to read le_fichier
set le_contenu to "azer ertyuio wxcv dfghj
qszaed dc fghj mlkjhgf nbvcxw
aqwzsx edcrfv tg byhn aaaaaaa "
set listedelistes to {}
set plusgrandelongueur to 0
set pluspetitelongueur to 999999
set listelignesbrutes to paragraphs of le_contenu
repeat with refd_uneligne in listelignesbrutes
set maybe to contents of refd_uneligne
set maybe2 to count of maybe
if maybe2 > plusgrandelongueur then set plusgrandelongueur to maybe2
if maybe2 < pluspetitelongueur then set pluspetitelongueur to maybe2
copy my decoupe(maybe, space) to end of listedelistes
end repeat
set differencedelongueur to plusgrandelongueur - pluspetitelongueur
set des_espaces to space
repeat differencedelongueur times
set des_espaces to des_espaces & space
end repeat
set largeur1 to 0
repeat with refd_uneligne in listedelistes
set maybe to length of first item of refd_uneligne
if maybe > largeur1 then set largeur1 to maybe
end repeat
set liste_finale to {}
repeat with refd_uneligne in listelignesbrutes
set maybe to contents of refd_uneligne
set maybe2 to text 1 thru largeur1 of maybe
repeat while maybe2 ends with space
set maybe2 to text 1 thru -2 of maybe2
end repeat
copy maybe2 to end of liste_finale
copy text (largeur1 + 2) thru plusgrandelongueur of (maybe & des_espaces) to contents of refd_uneligne
end repeat
Enter the bigger loop *)
set cest_Lafin to false
repeat
Deprieve the stored rows of the treated column's items *)
set flag to 0
repeat
set flag to flag + 1
set flag2 to 0
repeat with refd_uneligne in listelignesbrutes
if "" & character flag of contents of refd_uneligne is space then set flag2 to flag2 + 1
end repeat
if flag2 < (count of listelignesbrutes) then exit repeat
end repeat
repeat with refd_uneligne in listelignesbrutes
copy text flag thru -1 of contents of refd_uneligne to contents of refd_uneligne
end repeat
Prepare the extraction of next column *)
repeat with refd_uneligne in listelignesbrutes
copy my decoupe(contents of refd_uneligne, space) to end of listedelistes
end repeat
Extract the width of the column to treat *)
set largeur1 to 0
repeat with refd_uneligne in listedelistes
set maybe to length of first item of refd_uneligne
if maybe > largeur1 then set largeur1 to maybe
end repeat
Extract the column's values *)
repeat with i from 1 to count of listelignesbrutes
set maybe to contents of item i of listelignesbrutes
set maybe2 to text 1 thru largeur1 of maybe
repeat while maybe2 ends with space
set maybe2 to text 1 thru -2 of maybe2
end repeat
copy (contents of item i of liste_finale) & tab & maybe2 to item i of liste_finale
try
copy text (largeur1 + 2) thru -1 of maybe to item i of listelignesbrutes
on error
set cest_Lafin to true
end try
end repeat -- i
if cest_Lafin then exit repeat
end repeat -- bigger loop
set le_contenu to my recolle(liste_finale, return)
set the clipboard to le_contenu
set eof of le_fichier to 0
write le_contenu to le_fichier
end commun
--=====
on decoupe(t, d)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to oTIDs
return l
end decoupe
--=====
on recolle(l, d)
local oTIDs, t
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end recolle
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) vendredi 20 août 2010 12:44:33 -
Include ".txt" as if it was a ".jsp" in servlet
Hi,
I am able to include a ".jsp" file from a servlet, but is it possible to include a ".txt" file but "render" it as if it was a ".jsp" (if the .txt file contains jstl tags, for example, I want the code to be "rendered" and not just outputed like normal text)
ThanksHi there,
It's important to remember that there are two basic ways to make the
front panel of a SubVI appear when the SubVI is called from another VI.
Only the first method has been mentioned in this thread:
1. In case you have a SubVI that you always want to open as a dialog when it's called from any other VI, go to the "File » VI Properties..." menu and customize the "Window Appearance" to "Show front panel when called" and "Close afterwards if originally closed". After applying these settings, the front panel of the SubVI will pop up every time the SubVI is called within another VI.
2. If you only want a SubVI to pop up in some places where it is
called, you should not customize the actual SubVI, but instead
customize the call to the SubVI. Do this by right-clicking on the icon
of the SubVI on the block diagram of the main VI. Select "SubVI Node Setup..." and enable "Show Front Panel when called" and "Close afterwards if originally closed". After this, the SubVI will only pop up in the actual call.
To run the SubVI only when a button is pressed, use a Case Structure or
an Event Structure. Here's a small example that shows these two methods:
Have fun!
Message Edited by Philip C. on 07-20-2005 09:13 PM
- Philip Courtois, Thinkbot Solutions
Attachments:
CallSub.PNG 22 KB
CallSubExample.zip 21 KB -
Interesting ? @ servlet reading a txt file
hi friends,
i need ur help for one interesting problem i m facing.
I want to read a txt file and wanna display the text from that file into an html, using a servlet.A txt file contains sentences( words with spaces in between ).When servlet reads the file, it is reading the whole sentence ,but while displaying that sentence, it is just showing the first word of the sentence.
html is not able to read the space between the words.
so what do i suppose to do now.
waiting for ur replies.......
thanx
amithi friends ,
i m giving the code , just give it a try//
This is a servlet ---------------------------------------
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class AdminGraphServlet extends HttpServlet
Properties ht;
FileInputStream fin;
FileOutputStream fout;
String s15,st;
public void init(ServletConfig config) throws ServletException
super.init(config);
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException,ServletException
ht = new Properties();
try
fin = new FileInputStream("Data.txt");
catch(FileNotFoundException e)
System.out.println("FileNotFound");
try
if(fin != null)
ht.load(fin);
s15 = (String)ht.get("title");
fin.close();
catch(IOException e)
System.out.println("Error Reading File");
PrintWriter out = res.getWriter();
res.setContentType("text/html");
out.println("<html><body>");
out.println("<form method=post action=http://localhost:8080/servlet/MyServlet>");
out.println("<table><tr>");
out.println("<tr><td>Title</td>");
out.println("<td><Input Type=Text name=title value="+ s15 +"> </td></tr>");
out.println("</table>");
out.println("<input type=submit name=submit value=submit>");
out.println("<input type=hidden name=check value=save>");
out.println("</form>");
out.println("</body></html>");
public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
String Scheck = req.getParameter("check");
PrintWriter out1 = res.getWriter();
String ttl = req.getParameter("title");
if(Scheck.equals("save"))
ht.put("title",ttl);
fout = new FileOutputStream("Data.txt");
ht.store(fout,"Data");
fout.close();
out1.println("<html><body>");
out1.println("<h1>Stored This Data Successfully</h1>");
out1.println("</html></body>");
txt file is having a line
title=Are you smart enough?
The servlet should display this sentence in a text box.
But it is displaying only "Are".
still waiting...
have nice time..
amit -
Creating file containing a RecCount of the table
I have a SP which dynamically Creates a <Table1> populate it with data. This SP is called from the SSIS package and at the end of package I'll drop the table <Table1> created in the SP.
But Before dropping it, I have to generate 2 files using the table created in the SP
1. One which gives the count of that table <table1> in file ( just count and nothing in that file)
2. A .txt file containing entire dump of that table <table1>
I have developed a CM for txt file, which dynamically constructs the file name and path( this one I have tested working) figure 2
figure1 :- ESQL1 Get the file and folder path details and execute the SP -- this working
ESQL2 Get the Name & count from the <Table1> in a package variable --This is also working
ScriptTask to construct the full path where the files to be placed --This is also working
Now what is failing is, I am not able to pass the name of the table from OLEDB using the variable to the flat file destination transformation.Hi Neil,
If I understand correctly, you have already generate a text file that store the count of the table. Then you want to generate another file that contains all the table data in another Data Flow Task before dropping the table.
If in this scenario, I suggest we can insert another Data Flow Task connect to the current Data Flow Task. Then directly load the table data from OLE DB Source to Flat File Destination. After the Data Flow Task, we can insert Execute SQL Task to drop the
table.
If you still couldn’t execute the package successfully, please post the error message from Output windows. If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
Read numbers from a .txt file and display them in a graph
How can I get Labview 7 to read from a txt. file containing a lot of
coloumns with different datas? There`s only two of the coloumns that are
interesting to me, the first, that contains the time of the measuring, and
one in the middle, that contains the measured temperatures. I want Labview
to read this datas and display them graphicly.
Thanks from StaleHere's one way.
You can also use the help-> find examples and search for "text".
2006 Ultimate LabVIEW G-eek.
Attachments:
Graph.vi 21 KB -
C# WPF read a .txt file line by line and store it to listview with GridViewColumn
I have a .txt file with text in the following format:
Name Pid CPU Thd Hnd Priv CPU Time Elapsed Time
Idle 0 99 8 0 0 203:18:16.647 26:02:53.315
I want to store it in a listview with a GridViewColumn. Name is one GridViewColumn and in this I want to store, for example, Idle. How can I do this?Unfortunately your post is off topic as it's not specific to Microsoft Training and Certification.
This is a standard response I’ve written in advance to help the many people who post their question in this forum in error, but please don’t ignore it. The links I provide below will help you determine the right forum to ask your question in.
For technical issues with Microsoft products that you would run into as an end user, please visit the Microsoft Answers forum ( http://answers.microsoft.com ) which has sections for Windows, Hotmail,
Office, IE, and other products.
For Technical issues with Microsoft products that you might have as an IT professional (like technical installation issues, or other IT issues), please head to the TechNet Discussion forums at http://social.technet.microsoft.com/forums/en-us, and
search for your product name.
For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), please head to the MSDN discussion forums at http://social.msdn.microsoft.com/forums/en-us, and
search for your product or issue.
If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here: http://community.dynamics.com/
If you think your issue is related to Microsoft Training and Certification and I've flagged it as Off-topic, I apologise. Please repost your question and include as much detail as possible about your problem so that someone can assist you further.
If you really have no idea where to post your question please visit the Where is the forum for…? forum http://social.msdn.microsoft.com/forums/en-us/whatforum/
When you see answers and helpful posts, please click Vote As Helpful,
Propose As Answer, and/or Mark As Answer
Jeff Wharton
MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCSA, MCITP, MCDBA
Blog: Mr. Wharty's Ramblings
Twitter: @Mr_Wharty
MC ID:
Microsoft Transcript
Maybe you are looking for
-
I am trying to record a meditation from my Macbook Air and an annoying loud sound, like a burp, will suddenly erupt from the MacBook, necessitating I start again. Any ideas on how I may stop this, or what it is??
-
How do I locate the Admin Password
I need to find and change the admin password so I can download mavericks. contacting the last Admin person has yielded no info
-
Remove matched itunes account tag data from AAC file
My brother has (stupidly) added his iTunes folder to mine and now everyone is mixed up. The problem is that some of his files were tagged with his iTunes account details as he had been "matching" until he decided not to renew the service after the in
-
N80: Problem of no Chinese Language while update t...
Recently i just update my firmware to:- V 4.0623.0.41. 26-07-2006 RM-92 Nokia N80 (11) But it's can't support any chinese language. There are France etc language which i can't understand. How do i get the firmware which support chinese and english la
-
Pages file 'could not be opened' message, HELP!!
I was working on the pages file until an hour ago but then I got kicked out while I was doing copy/paste. Ever since, I cannot open the file. The message I get is 'The document "xxx.pages" couldn't be opened. Please help!!!