How to send email alert to users from the query output ?
Hi all,
I intend to write a pl/sql to send email alert to user based on the following query output :-
Item_______Qty_on_hand________Min_qty______email
[email protected]
[email protected]
[email protected]
once run, I will like to distribute to those email id. How should I code that in pl/sql ? or any other better idea is welcome. Thanks.
Rgds
Lim
http://asktom.oracle.com/pls/ask/f?p=4950:8:3439330610438686683::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:255615160805,
Similar Messages
-
Hi All,
I am working with SharePoint 2013 designer workflow. we are using office 365.
Our requirement to send email to multiple users, get the user groups from lookup list people and groups column.
But SP designer sending emails to the first user alone.
Please guide me to proceed.
Advance Thanks.
Regards
Jenkins NS
Thanks and Regards Jenkinsfinally I got a solution
Identified a workaround to solve the issue using SharePoint designer.
Step 1
Create a lookup list Example department
Columns
Title (by default) – Single line of text
Users – Person or Group
Emails – Multiple lines of text
hidden the Emails column (go to content type and set the column as hidden)
Create a SharePoint designer Workflow
Start Workflow automatically when an item is created
Also Start Workflow automatically when an item is changed
Workflow Stage 1
Set Emails to current Item: Users
The workflow will get all users email ids and add in the Emails column delimiter as semicolon.
Step 2
Create a custom list to get the email ids and send email
Create a lookup column ex: analysis and refer department list, Allow multiple values
Then Create a SharePoint designer workflow
full details workflow steps please follow below
URL
http://jenkinsblogs.com/2015/04/30/how-to-send-emails-to-multiple-users-from-lookup-list-people-picker-field-using-sharepoint-designer-workflow/
Thanks and Regards Jenkins -
How to send email to external users using the distribution list from workflow
I have created distribution list in SO23 with external email addresses.
How I can use distribution list in "Send Mail component" or I should use another component?
It works fine for a single email address. And distribution list works fine when I use it via SBWP.Hi,
Take activity step instead of Mail step. User fm SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail.
And use fm SO_DLI_READ_API1 to find list of user from distribution list. You can find how to use this fm in rule 30000012 -
How to send email alerts to others instead of only to yourself?
Where I work, we seem to have a problem with setting (email) alerts for upcoming events for others in the company besides yourself. We have one shared agenda, where we can all put events in. When I want to make an alert - a message or email alert - I can only choose my own emailaddress. Is it possible to send an alert to more users besides yourself?
Please help!Hi deepak,
I go through the link(for one mail recipiant) but can you explain me how to configure it for multiple users say 10 mail ids.
thanks in advance.. -
How to send email using pl/sql containing the result set as the msg body
Hi.. im using Pl/SQL code to send emails to the users from a dataset that is obtained in a databse table. i have used utl_smtp commands to establish the connection with the smtp mail server. im stuck at the logic when i have to include the message body which is actually the result set of a table.. For instance
IF (p_message = 0) THEN
UTL_SMTP.write_data(l_mail_conn, 'There is no mismatch between the codes' || UTL_TCP.crlf);
ELSE
UTL_SMTP.write_data(l_mail_conn, 'The missing codes are ' || UTL_TCP.crlf);
for s in (select * from temp)
loop
UTL_SMTP.write_data(l_mail_conn, ' ' ||s || UTL_TCP.crlf);
end loop;
END IF;
UTL_SMTP.close_data(l_mail_conn);
UTL_SMTP.quit(l_mail_conn);
END;
***p_message is a prameter passed to this procedure..
Can i obtain the result in the form i have it in my table. which has three columns. I want to display the three columns as it is with teh records. ?this is not related about this forum but you can use below,
CREATE OR REPLACE PROCEDURE SEND_MAIL (subject varchar2,mail_from varchar2, mail_to varchar2,mail_msg varchar2)
IS
mail_host varchar2(30):='XXXXX';
mail_conn utl_smtp.connection;
tz_offset number:=0;
str varchar2(32000);
BEGIN
begin
select to_number(replace(dbtimezone,':00'))/24 into tz_offset from dual;
exception
when others then
null;
end;
mail_conn:=utl_smtp.open_connection(mail_host, 25);
utl_smtp.helo(mail_conn,mail_host);
utl_smtp.mail(mail_conn,'[email protected]');
utl_smtp.rcpt(mail_conn,mail_to);
utl_smtp.open_data(mail_conn);
utl_smtp.write_data(mail_conn,'Date: '||to_char(sysdate-tz_offset,'dd mon yy hh24:mi:ss')||utl_tcp.crlf);
utl_smtp.write_data(mail_conn,'From: '|| mail_from ||utl_tcp.crlf);
utl_smtp.write_data(mail_conn,'To: "'|| mail_to ||'" <'||mail_to||'>'||utl_tcp.crlf);
utl_smtp.write_data(mail_conn,'Subject: '||subject||utl_tcp.crlf);
utl_smtp.write_data(mail_conn,utl_tcp.crlf);
utl_smtp.write_data(mail_conn,replace_turkish_chars(mail_msg)||utl_tcp.crlf);
utl_smtp.write_data(mail_conn,utl_tcp.crlf);
utl_smtp.close_data(mail_conn);
utl_smtp.quit(mail_conn);
END;
Edited by: odilibrary.com on Jun 12, 2012 5:26 PM -
How to send mails in HTML format from the send mail step of workflow?
Hi,
I have a requirement where I need to send mails in the html format from the send mail step of the workflows.
But what I found out that the html tags are not renderd and as such the output is in plain text.
I know that there is an alternative of using an activity step and use my own custom code from within there,But due to certain business constraints, I need to use the send mail step only.
My SCOT settings are all right.
Please let me know how it can be done.
Thanks,
Samrat.Samrat,
It can't be done, you have to use your own activity step.
What are these constraints that refrain you from doing that?
Rgds,
Patrick -
Emails Retention and Re-sending emails after a while from the appliance
I need to know if it would be possible to keep track of the whole email in the appliance not only the message tracking (which contains the Processing details only without the email Body)
And I also need to know if it is possible to resend an email from this backup to a user after a while. For example after 1 month, I need to search in the email retention for a specific email and resend it to the mail server.
Other Vendor are able to do it using the message log, but I am having a hard time finding a solution for that on the cisco email security applianceFor our products we currently do not have any retention mechanism such as this. The appliance is not meant to be a mail retention system.
-Robert -
How do you get an xml file from the PO Output for Communication report?
Can anyone tell me how you've created an xml output fil for this program? When I run it, the View XML button doesn't light up, and the output file is empty.
I can see the XML when I click the View Log button, but can't figure out how to save it so that the XMLP Desktop tool can load it properly.
If you can tell me how to create this file, I'd be very appreciative.Hi,
I can't see the xml in my log file. Maybe you have a different logging level. One issue I have had before is that the xml declaration had a strange character encoding. It should say something like: <?xml version="1.0" ?>. If it mentions anything about encoding you can remove it.
One of our developers wrote a custom process to write the xml to a table when the document was generated as we couldn't find any other way of doing it.
You can use the sample xml available from the data definition but this is missing fields.
Probably not much help...
Paul -
How to send Emails to Other Domain for the users in My AD
Hi All,
I have a Domain test.com and in this i created 10 users and now i in the properties of their account i added mail address as ****.dummy.com (which is not my domain which i have created separately and there is no relation between these two) No will the mails
will be deliverd to those users??
ThanksIs this "other domain" you are talking about just an SMTP domain, or a Windows domain? If the former, and there is a messaging system they can receive with, you can just send (though you may need a send connector). If the latter,
is it in the same Windows forest? If so, you need to prepare the domain for Exchange (using Setup /PrepareDomain). You can then add that domain to your Accepted Domain list (in the Organization configuration, Hub Transport role) and create
mailboxes for these users. Once the have mailboxes, they will receive email. Until all of this happens, they won't be able to get mail. -
How to send email(oracle log files) from RHEL AS 3 to windows exchange?
Friends,
my pc : winxp sp2
database server --- 9iR2 in RHEL AS 3
I have to send a daily report to my email from my database server.
when i try the below command nothing is coming.
[oracle@xx oracle]$ echo "message" | mail -s "subject" [email protected]
[oracle@xx oracle]$can anybody help me in this regarding?
thanksI think......in RHEL AS 3 ...... it will be different to edit the sendmail.mc file
because when enter
dnl define('SMART_HOST','mail.nhm.com.sa')dnlit becomes same as the commented line.
if i enter like below....
define('SMART_HOST','mail.nhm.com.sa')dnlits like a working command line.
i think to comment a line in .mc file we have to enter "dnl" instead of "#"
correct me if i am wrong...
but i did what you said....
[root@xx root]# make
make: *** No targets specified and no makefile found. Stop.
[root@xx root]# make install
make: *** No rule to make target `install'. Stop.what to do now?
thanks -
Remove the leading Zero from the Query output in SAP BW ?
Hi
Experts,
Vendor Number loaded as (0000010076) from R/3 to SAP BW.
How to remove Prefix of Zero for the Vendor Number(0000010076) from Quey outpt.
Regards.
ASITHi,
Please check out this thread.
Remove leading zeros
Also check if there is any conversion routine used for that particular infoobject.
If ALPHA conversion is selected for your infoobject then it will automatically take away the leading zeros at query level.
Regards,
AL
Edited by: AL1112 on Sep 16, 2011 9:15 AM -
[SOLVED]How to send email to a local user?
I have installed Mutt, msmtp, procmail and I can send and receive emails to/from remote hosts and I'd like to send email locally also (to the recipients on the same machine as the sender).
When I try to send email to a local user from the root account -
echo "Test message" | mail -s "Test subject" localuser
then I get an error that connection to the port 25 is refused. Because the /etc/msmtprc file contains the 'localhost' as the default account's host, and on the local host I don't have a mail server listening on 25 port running.
When I try to send email from a non-root account which has in /$HOME/.msmtprc file a real email account on a remote server, then of course there is an error that the domain for the email address 'localuser' is not recognized.
How can sending email to local users be enabled?
Last edited by nbd (2014-09-30 22:33:37)If I understand correctly, postfix it's a constantly running daemon. Seems to be an overhead for delivering only from time to time sent messages.
ewaller wrote:
> Out of the box, sendmail should be safe, but I think you have to enable local mail.
Currently I have msmtp-mta installed, which is described as having sendmail functionality. If I install sendmail - will it be possible to send local email without running email daemons? -
How to send emails from server?
I have a form in which there is a field for the user to enter their email id.I want to send email to tht id from the server automatically.how to do tht using JSP.can any one help me in doing tht
http://java.sun.com/products/javamail/
Look at the resources section for list of articles and other info. -
Send email notification to user upon user creation
Hi,
Application : 12.1.1
DB:11.1.0.7
how to send email notification to user upon user creation in Oracle EBS r12
Thanks
Edited by: 843272 on Jun 19, 2011 5:32 AMYou can create an alert for this requirement from 'Alert Manager' responsiblity.
-
Hi friends,
I wrote this code to send mail to external user from sap.
It did not work properly can anyone help me to send email to extenal user.
The return code after executing the function module is 2.
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Creating the document to be sent
DOC_CHNG-OBJ_NAME = 'OFFER'.
DOC_CHNG-OBJ_DESCR = 'abcd'.
OBJTXT = 'aaaaaaaaaaa:'.
APPEND OBJTXT.
OBJTXT = 'bbbbbbbbbb'.
APPEND OBJTXT.
OBJTXT = 'ccccccccccccc.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
RECLIST-RECEIVER = mail address.
RECLIST-REC_TYPE = 'U'.
RECLIST-COM_TYPE = 'INT'.
RECLIST-NOTIF_DEL = 'X'.
RECLIST-NOIF_NDEL = 'X'.
APPEND RECLIST.
Creating the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creating the document attachment
(Assume the data in OBJBIN are given in BMP format)
OBJBIN = ' \O/ '. APPEND OBJBIN.
OBJBIN = ' '. APPEND OBJBIN.
OBJBIN = ' / \ '. APPEND OBJBIN.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'picasso.bmp'. APPEND OBJHEAD.
Creating the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'BMP'.
OBJPACK-OBJ_NAME = 'ATTACHMENT'.
OBJPACK-OBJ_DESCR = 'Reproduction object 138'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK..
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
IF SY-SUBRC NE 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Hi,
Check in SCOT t-code whether it has been properly configred to send the mails
Regards,
siva chalasani.
Maybe you are looking for
-
Pictures in a folder called camera that cannot be deleted from phone or by adapting it to computer
When i got my iPhone 5, at the store they transferred the pictures from my previous phone (HTC) into my new phone, those pictures are now in a folder called camera, i want to delete them because they take too much space their is no delete option for
-
Invoking a supersuperclass method
I'd like to invoke the gradparent's version of a method from a method. For example, the following public class Test { public static void main(String[] args) throws Exception { C c = new C(); c.test(); class A { void f() {System.out.println("A.f");} c
-
Iphone stuck in emergency mode after downgrade from 4.0.2 to 4.0?
iphone stuck in emergency mode after downgrade from 4.0.2 to 4.0? Upgraded to 4.0.2 last night. Immediately, itunes would no longer detect my iphone. Decided I had to downgrade back to 4.0 again. Learned I cannot do that easily, so i found a .ipsw fi
-
Grouping by 2 columns. Please see
Hi, I am using Reports 9I. I need to use two group by's : Table: TRANS_ID ACC_ID DEL CCY AMT TRADE_DAT LENDER LEL0002045 SLEND RECEIVE GBP 1200 02-AUG-05 LENDERA LEL0002053 SLEND DELIVER GBP 1000 02-AUG-05 LENDERA
-
Batch issues in V11.3 compare to V11.1
I am using same settings in V11.3 and V11.1, but in V11.3 pdfs are generating in different batch file compare to V11.1. Any one can help me.