Mail Attachment with attachment name = mail subject name
Hi,
I am using the mail adapter and today I am using hard codes attachment names using the MessageTransformBean. I have read the blog /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution about dynamic filenames but how do I get the eMail subject as a viriable to create the attachment?
Thanks
Juergen
Juergen my weblog was the simplest suggestion to your issue - you can put the mail subject anywhere in
message get it (and remove) in the adapter module
you can also try to get the
Adapter-Specific Message Attributes from the adapter module
http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/content.htm
but I'm not sure it the second solution works with adapter modules - but you can do an easy check
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>
Similar Messages
-
I want to sync my I phone user name (my current e-mail address) with my iPad, PC user name (old e-mail address.) If I delete that current address in the iPhone, won't I also be deleting it in my other devices? They are synced. I don't want to lose it. I just want to get it out of the way on my iphone so it doesn't confuse the transfer of ID names and then I want it back again.. I tried deleting the cloud account, being told the current e-mails would be spared. But all it did was pop up a prompt asking me for the password to my still current email ID. So I assume now that I have to go to mail and get rid of the e-mail account. But I'm scared I'll lose everything in my other devices too.
You can change the email address you use as your apple ID. this doesn't mean you have to delete the old email address as email.
When you delete an email from your device, it is only removed from the device, it does not delete your emails or the email account. -
File-xi- mail scenario with attachements
Hi
Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
thanks
kumarHi,
>>>>Can anybody tell me the real time use of file-xi- mail scenario with attachements ??
yes: your application puts order data into a file and generated a PDF file with it
XI takes both and send order file in mail and PDF in mail attachment
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
When I send or receive e-mails, the icon showing that there is an attachment with the e-mail may or may not appear. I have contacted Apple and they do not have a solution for this issue. This is a huge problem for me.
No, the senders are in most case sending from corporate servers which are almost certainly not Mac based. Also, remember this happens when I send or receive. So if I send something with an attachment, the attachment will go through, but the sent box will not show the paper clip icon so that I can distinguish the emails sent with attachments versus the emails sent without attachments. I receive the attachments as well, but again the paper clip icon does not show up so that I can distinguish the emails that I have received that contain attachments. Recipients of my e-mails have complianed that when they receive an attachment from me they do not see the paper clip icon which alerts them to the fact that the email contains an attachment.
-
Sending an attachment with an e-mail
Does anyone know how to send an attachment with an e-mail
using a
form page that is on our web site? I am using the TYPE
attribute of
the form tag as "File" to get the file I want to attach to
the e-
mail. Below is the code I have. The first page is where the
user can
click the browse button to search for a file to attach. The
second
page is where the e-mail should be sent to. Thanks for your
help.
AndyIan,
Do we have to set a folder up on our cold fusion server or do
we just
make a folder under our web site so when a user clicks on the
browse
menu, the file they attach has to be saved to our server
first and then
I can attach the saved file to an e-mail? How do we create
this folder?
Does it have to be an FTP site or just a folder on our web
site? How do
we make the permissions work correctly since a folder under
our web site
is not writable to except by the web editors that work here?
Please let
me know what I can do to get this to work. Thanks.
Andy
You can use any folder on the CF server or any system to
which it has
access. By default the CF service runs as a localsystem user,
so would
generally only have access to the local server file system.
This is
determined in the Services panel on window systems, I'm not
sure how it
works for other OS's.
If you are talking about the "Browse" button that is
displayed in the
web page for the <input type="file" ..> that does not
browse the server,
it browses the local user's system. You do not and can not
influence
this in any way. When a user selects a file from their system
and
submits the form, the file is uploaded to the webserver
through the HTTP
response header or URL query string, depending on whether the
form is a
post or get form.
You then use the <cffile action="upload" ...> tag on
the form's action
page to get the file from the web server and write it to a
location you
define the "file" parameter of the flag. This file system
access is
done under the permissions of the ColdFusion server, again
'LocalSystem'
by default.
You can then use this newly saved file in you <cfmailparam
...> tag to
attach it to an email. After this if you like you can use a
<cffile
action="delete" ...> to remove the file. -
I'm picking up all of the data script related to the sending / receipt of an e-mail along with the e-mail itself and can't find a way of not showing the text. Obviusly only a command but can't find it! Help!
Shift-Command-H is the key-combo to switch 'Long Header'/'Standard Header' .
Long way: Top Menu -> View -> E-Mail
Stefan -
Receiver Mail Adapter with Attachment and Mailpackage
I have set up a scenario
filesystem: filexxx.xml filexxx.pdf
xml= mailpackage format to get the receiver mailaddress
pdf=the file i want to send as a attchment.
I am using the RenemAttachment module i found on SDN.
in SXMB_MONI it looks ok, the attachment name is filexxx.pdf application/pdf
But when i look at the mail send it shows as attachments
Untitled.txt and Untitled.pdf
Any id's
I only want to send the mail woth one attachment, the original pdf as a attchment.
tnxIssue should be solved with SP17.
I solved by putting the attacgement into the content part of the message.
like.
<?xml version="1.0" encoding="ISO8859-1"?>
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>Greenery:TESTTEST</Subject>
<From>customerservicedesk@xxxxxxx</From>
<To>Peter.schults@xx</To>
<Content_Type>application/pdf; name=TEST.pdf</Content_Type>
<Content_Description>PDF FAKTUUR</Content_Description>
<Content_Disposition>attachment; filename=TEST.pdf</Content_Disposition>
</ns1:Mail> -
How to include body of the mail along with attachment using the below FM
Hi All,
I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to generate an e-mail with excel file as attachment. Can you please let me know how to include body of the e-mail along with this attachment.
Thanks & Regards
Gowthamihi,
see this code
TABLES: apqi. "Queue info definition
TYPES DECLARATION
*& Global Types
TYPE-POOLS: slis, "Type for alv list
sx. "SAP connect
TYPE-POOLS: list.
*& Types
TYPES: BEGIN OF s_itab_apqi.
INCLUDE STRUCTURE apqi.
TYPES: END OF s_itab_apqi.
INTERNAL TABLE / WORK AREA DECLARATION *
*& For email attachment
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: it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE ,
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE ,
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE ,
it_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE .
DATA: v_cnt TYPE i ,
v_sent_all(1) TYPE c ,
v_doc_data LIKE sodocchgi1 ,
gd_error TYPE sy-subrc ,
gd_reciever TYPE sy-subrc .
DATA: p_email TYPE somlreci1-receiver
VALUE 'mail id here of the reciever'.
*& Variable for attachment name
DATA: v_attach(12).
*& Internal table to get data from apqi table
table here
DATA: ws_line TYPE slis_listheader.
DATA: it_list_top_of_page TYPE slis_t_listheader.
CONSTANTS : v_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.
VARIABLE DECLARATION
DATA: v_colpos TYPE i.
DATA: v_transcnt(10) TYPE c,
v_transcnte(10) TYPE c,
v_transcntf(10) TYPE c,
v_msgcnt(10) TYPE c,
v_qid(20) TYPE c.
DATA v_tot_rec(3) TYPE n.
DATA :v_date(10) TYPE c,
v_time(8) TYPE c .
DATA: v_fromdate(10) .
DATA: v_todate(10) .
SELCTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-015.
PARAMETERS:
SELECTION-SCREEN END OF BLOCK blk1.
AT SELCTION SCREEN
AT SELECTION-SCREEN.
IF p_dfrom IS INITIAL AND
NOT p_dato IS INITIAL.
MESSAGE e000(zp) WITH text-020.
ENDIF.
START OF SELECTION
START-OF-SELECTION.
*& To get data from APQI table into internal table
PERFORM populate_itab.
**To Populate table with details to be entered into .xls file
PERFORM build_xls_data_table.
END OF SELECTION
END-OF-SELECTION.
*& To display ALV list when IT_APQI is not initial
IF NOT it_apqi[] IS INITIAL.
*&-- Send an Notification email
PERFORM send_email .
*&--To populate fields for ALV
PERFORM build_fieldcat .
PERFORM build_eventcat .
PERFORM e04_comment_build USING it_list_top_of_page[].
PERFORM build_layout .
PERFORM build_sortcat .
PERFORM start_list_viewer.
ELSE.
*&-- If no record exists in IT_APQI internal table then message is displayed
MESSAGE s000(zp) WITH text-021.
ENDIF.
FORMS **********************************
populate itab here -
*& Form BUILD_FIELDCAT
FORM build_fieldcat .
ENDFORM. " BUILD_FIELDCAT
*& Form BUILD_EVENTCAT
FORM build_eventcat .
DATA: v_header(25) .
CONCATENATE 'ZPIPY016' p_dfrom p_dato INTO v_header.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = it_eventcat[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
READ TABLE it_eventcat WITH KEY name = slis_ev_top_of_page
INTO wa_eventcat.
IF sy-subrc = 0.
MOVE v_formname_top_of_page TO wa_eventcat-form.
APPEND wa_eventcat TO it_eventcat.
ENDIF.
ENDFORM. " BUILD_EVENTCAT
*& Form BUILD_LAYOUT
FORM build_layout .
ws_layout-no_keyfix = 'X'.
ws_layout-group_buttons = 'X'.
ws_layout-colwidth_optimize = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form BUILD_SORTCAT
FORM build_sortcat .
CLEAR wa_sortcat.
CLEAR v_colpos.
ENDFORM. " BUILD_SORTCAT
*& Form START_LIST_VIEWER
FORM start_list_viewer .
DATA: ws_pgm LIKE sy-repid.
*& To Display ALV list
ws_pgm = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = ws_pgm
is_layout = ws_layout
it_fieldcat = it_fieldcat
it_sort = it_sortcat
i_save = 'A'
it_events = it_eventcat
TABLES
t_outtab = it_apqi
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " START_LIST_VIEWER
*& Form BUILD_XLS_DATA_TABLE
FORM build_xls_data_table .
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.
*& To populate it_attach table to be send as email.
CONCATENATE 'Error of transaction SM35' ' '
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
*& To gettotal number of error records
DESCRIBE TABLE it_apqi LINES v_tot_rec .
CONCATENATE 'Number of Errors = ' v_tot_rec
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
CONCATENATE text-001
text-002
text-003
text-004
text-005
text-006
text-007
text-008
text-009
text-010
text-011
text-012
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
*& To populate it_attach from it_apqi
LOOP AT it_apqi INTO wa_apqi.
*& To get the date format in DD/MM/YYYY
WRITE wa_apqi-credate TO v_date DD/MM/YYYY.
*& To get time format in hh:mm:ss.
v_time = wa_apqi-cretime.
CONCATENATE v_time(2) ':' v_time2(2) ':' v_time4(2) INTO v_time.
v_transcnt = wa_apqi-transcnt.
v_transcnte = wa_apqi-transcnte.
v_transcntf = wa_apqi-transcntf.
v_msgcnt = wa_apqi-msgcnt.
v_qid = wa_apqi-qid.
CONCATENATE wa_apqi-groupid wa_apqi-creator
wa_apqi-qstate v_date
v_time wa_apqi-progid
wa_apqi-userid v_transcnt
v_transcnte v_transcntf
v_msgcnt v_qid
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach .
CLEAR it_attach .
CLEAR: v_transcnt ,
v_transcnte,
v_transcntf,
v_msgcnt ,
v_qid ,
v_date ,
v_time .
ENDLOOP.
ENDFORM . " BUILD_XLS_DATA_TABLE
*& Form POPULATE_EMAIL_MESSAGE_BODY
FORM populate_email_message_body .
REFRESH it_message.
it_message = 'message here'.
APPEND it_message.
CLEAR it_message.
ENDFORM. " POPULATE_EMAIL_MESSAGE_BODY
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
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.
v_doc_data-doc_size = 1.
Populate the subject/generic message attributes
v_doc_data-obj_langu = sy-langu.
v_doc_data-obj_name = 'SAPRPT'.
v_doc_data-obj_descr = ld_mtitle .
v_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR v_doc_data.
READ TABLE it_attach INDEX v_cnt.
v_doc_data-doc_size =
( v_cnt - 1 ) * 255 + STRLEN( it_attach ).
v_doc_data-obj_langu = sy-langu.
v_doc_data-obj_name = 'SAPRPT'.
v_doc_data-obj_descr = ld_mtitle.
v_doc_data-sensitivty = 'F'.
CLEAR it_attachment.
REFRESH it_attachment.
it_attachment[] = pit_attach[].
Describe the body of the message
CLEAR it_packing_list.
REFRESH it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
APPEND it_packing_list.
Create attachment notification
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
it_packing_list-doc_type = ld_format.
it_packing_list-obj_descr = ld_attdescription.
it_packing_list-obj_name = ld_attfilename.
it_packing_list-doc_size = it_packing_list-body_num * 255.
APPEND it_packing_list.
Add the recipients email address
CLEAR it_receivers.
REFRESH it_receivers.
it_receivers-receiver = ld_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
APPEND it_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_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 = v_sent_all
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_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 it_receivers.
ld_receiver = it_receivers-retrn_code.
ENDLOOP.
ENDFORM. " SEND_FILE_AS_EMAIL_ATTACHMENT
*& Form SEND_EMAIL
FORM send_email .
Populate message body text
PERFORM populate_email_message_body.
PERFORM send_file_as_email_attachment
TABLES it_message
it_attach
USING p_email
'Error Sessions from SM35'
'XLS'
'filename'
v_attach
CHANGING gd_error
gd_reciever.
ENDFORM. " SEND_EMAIL
*& Form E04_COMMENT_BUILD
text
-->E04_LT_TOP_OF_PAGE text
FORM e04_comment_build USING lt_top_of_page TYPE slis_t_listheader.
CLEAR: v_fromdate,
v_todate.
WRITE p_dfrom TO v_fromdate DD/MM/YYYY.
WRITE p_dato TO v_todate DD/MM/YYYY.
*& To write header in ALV list
*& Program name
CLEAR ws_line.
ws_line-typ = 'H'.
ws_line-info = text-016.
APPEND ws_line TO lt_top_of_page.
CLEAR ws_line.
ws_line-typ = 'S'.
ws_line-key = text-018.
ws_line-info = v_tot_rec.
APPEND ws_line TO lt_top_of_page.
*& Date from
CLEAR ws_line.
ws_line-typ = 'S'.
ws_line-key = text-050.
ws_line-info = v_fromdate.
APPEND ws_line TO lt_top_of_page.
*& Date to
CLEAR ws_line.
ws_line-typ = 'S'.
ws_line-key = text-051.
ws_line-info = v_todate.
APPEND ws_line TO lt_top_of_page.
ENDFORM. "E04_COMMENT_BUILD
FORM TOP_OF_PAGE *
FORM top_of_page.
*& To write Heading in Top of page
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_list_top_of_page.
ENDFORM. "TOP_OF_PAGE
thanks -
hello
I have a mail sender adapter with attachment, that I would like to transfer to other PI.
the important is to keep the attachment and to deliever it to the PI
any ideas?
KfirHi,
By using Java mapping, you can easily achieve this.
Or use Adapter module 'PayloadSwapBean '.
Please see the below blogs, it might be helpful to you.
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
/people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
Regards,
Rajesh -
Xi sender mail adapter with attachment (to Web Service w/ attachment)
Hello,
We're working on an XI scenario wherein a sender mail adapter polls an exchange server inbox for mail (with attachment)and sends the attachment to a Web Service via SOAP Adapter? Does anyone know if this is doable, and if so, how?
Thanks,
EricHi!
I think so, if you just have a single attachment to be transferred.
Use the Mail Sender Adapter and specify the MailServer URL etc...
In the Module provessor of the Mail-Adapter you have to specify the PayloadSwapBean ( -> this changes the payload - the attachment becomes the payload)
then you configure the standard XI-scenario with
SenderAgreement
Mapping if necessary
Receiver Agreement
Receiver adapter
kr Martin -
Hi all,
i'm working on badi i need to send a mail with excel attachment, if you have sample code pls
send me.
Regards
Suprithhi
refer to this thread
Re: Send mails with attachment to external email id
hope this helps
regards
Aakash Banga -
Mail created with "Send to Mail Recipient" disappear and are not sent
I have a small setup with a SBS 2011 server (Exchange 2010) 10 users with Windows 8.1 and Outlook 2013.
One user is trying to send mails with attachments to his college´s
but they are never send, are not shown in sent items and can not be found on the server.
The user right click on a PDF file and press "Send to Mail Recipient" Outlook opens his mail is entered into the receiver (internal receiver) and press send. The mail do not show up and as mentioned even in sent items.
I then try to do the same but send through the address book in Outlook / Exchange and these messages appears as they should.
One week later, the disappeared mails suddenly appears in the college’s mailboxes and it turns out there are some mails to external addresses as well, which were not sent until a week. All messages are now in sent mail but they have not
appeared anywhere else before.
I did some tests with the "send to" function which also had the mails disappearing - those mails has not turned up until now. (a week ago)
Now the user (AND all colleagues) are very nervous that something is wrong with their system and the mail does not arrive.
It is only 1 user this has affected but he is responsible for the majority of sales in this company and they are very afraid that they are not responding correctly to large customers.
Is there anyone who can help with debugging in such a case?
I have tried repairing Outlook, started in safe mode, checked the mail server for hanging mails but nothing shows any errors.
Thanks in advance.
Michael Grøn
Michael GronHi,
Have the user logon OWA and send the attachment, will this issue persist?
Please also confirm if the issue exists when inserting an attachment when composing a new email isntead of using the "Send to Mail Recipient" function.
Since only one user has been affected, use MFCMAPI to find if the message is stuck in the user's mailbox:
https://mfcmapi.codeplex.com/releases/view/118446
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Thanks,
Melon Chen
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
I have had a problem lately with my mail application. I am using my gmail account through the Mac email program. I have it set so it plays a bell when I get a new email. But, I have been hearing the bell even when I don't get a new email.
So, is there anything that might be causing my email application to play this alarm even though there is no new email?You can turn off or change the mail alert sound. Perhaps it's something else?
There is another sound in Mail. It's a check box that says Play sounds for other mail actions.
If I manually check for new mail and there is none, another kind of tone sounds. Is this what you hear? When there is a mail check and no new mail, a tone sounds, but it's not exactly the same as the "New Mail" tone.
Do a manual "Get Mail" and see if that's the sound you are hearing. If so, that's normal. -
How can i set my university mailing platform with my ios7 mail
How can i set my university mailing protocol with ios7 mailing app??
You usually need an SSL certificate for universities. Refer to your universities website or talk to your network administrator.
-
Hello,
I have one Modulepool having Z Transaction which sends the mail through workflow.
I have created a task and bussiness object.
Using FM SAP_WAPI_START_WORKFLOW to send the workitem in SAP inbox.
That is attached to a standard Transaction CJ20n.
I added the CC for sending mail.
But if one user double click, then the WI will trrigerred and workflow completed and the second will not b able to c the WI.
I want to send the mail to the second user with that T Code as Attachment.
How to do this.
Please Help.
With Regards,
Nitin MalhotraHere's how I do it, without attachments though (names, users, and servers changed):
connect system/******@mydb as sysdba
alter system set smtp_out_server='MAIL.k12.sd.us' SCOPE=BOTH;
@I:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utlmail.sql;
@I:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\prvtmail.plb;
GRANT execute ON utl_mail TO USER1;
connect USER1/******@mydb;
CREATE OR REPLACE PROCEDURE USER1.E_MAIL_MESSAGER IS
vSender VARCHAR2(30) := '[email protected]';
vRecip VARCHAR2(30) := '[email protected]';
vSubj VARCHAR2(50) := 'TCHNAME_STUDENTS_INSERT';
vMesg VARCHAR2(4000):='TCHNAME_STUDENTS SUCCESSFUL';
vMType VARCHAR2(30) := 'text/plain; charset=us-ascii';
BEGIN
utl_mail.send(vSender, vRecip, NULL, NULL, vSubj,vMesg, vMType,
NULL);
END E_MAIL_MESSAGER;
Rem Now to call the procedure to run it:
exec E_MAIL_MESSAGER;
Maybe you are looking for
-
This is a problem that I've been experiencing for the last month. After I've had Firefox open and then close it, when I try to re-open it, it says it's already running, but I have to re-boot my computer to get it going again. I have had to re-boot 5
-
Time Machine-Time Capsule error
I don't know if this is the right place to post this but I am getting an error when my MBAir tries to backup today. Error says: Time Machine Error Unable to complete backup. An error occurred while creating the backup directory. I have not been able
-
When I attach a file to email, it prints out instead
I'm running Reader on MacBook -- my attachments to email are printing out instead of attaching. . .?
-
How to filter all portrait format photos?
Dear all, I would like to export all portrait format photos from Iphoto onto my digital photo frame. Is there any feature that can filter them automatically?? Thanks a lot, Ron
-
Internal BluRay burner recommendations for Snow Leopard on a new Mac Pro?
We're finally getting new Mac Pro's...hallelujah!! I was just wondering if anyone out there could recommend a good internal BluRay burner that will be compatible with the Intel Quad Core, Snow Leopard, and FCP7. Any assistance is greatly appreciated.