Sending email with data from table
Hi,
I have search for many site but i didn't find any answer about this. How to send an email with a content from row of a table (I mean select a record from table and put in the email body and sent it)?
Should i give some code here?
Thanks
Hi,
This link has an example using utl_smtp package, [Sending email from the database with the Utl_Smtp package|http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html]. Also check this [utl_mail|http://www.psoug.org/reference/utl_mail.html]
Regards,
Edited by: Walter Fernández on Jul 14, 2009 12:29 AM - Adding other example...
Similar Messages
-
When I send emails with photos from iPhoto recipients often tell me images are upside down. What would cause that?
Found this :
https://discussions.apple.com/thread/3431867?start=0&tstart=0
by doing this :
http://www.google.com/search?q=images+are+upside+down+ios -
Send email with attachments from oracle procedure
This is my procedure
CREATE OR REPLACE PROCEDURE send_parvo_email IS
v_header varchar2(200);
v_file UTL_FILE.FILE_TYPE;
v_count Number;
v_letter Varchar(50);
req UTL_HTTP.REQ;
req1 UTL_HTTP.REQ;
resp UTL_HTTP.RESP;
resp1 UTL_HTTP.RESP;
url VARCHAR2 (2000);
url1 VARCHAR2 (2000);
val varchar2(4000);
val1 varchar2(4000);
p_start_date DATE;
p_end_date DATE;
v_shipment_id varchar2(30);
--v_start_date DATE;
--v_end_date DATE;
Cursor C1 is select shipment_id
from ship_hdr
where trunc(create_time) = trunc(sysdate);
BEGIN
v_letter := 'r_parvo_b19_rpt';
select trunc(sysdate-7),trunc(sysdate-2)
into p_start_date,p_end_date
from dual;
Open C1;
Fetch C1 into v_shipment_id;
Close C1;
save_parvo_email;
UTL_HTTP.SET_PROXY (null,null);
url :=
utl_url.ESCAPE
( 'http://hbc-maroon.heartlandbc.org/reports/rwservlet?userid=test/[email protected]&subject="Parvo Testing Report"&destype=mail&FROM=[email protected]&desname=[email protected]&desformat=PDF&ENVID=QA&report='||v_letter||'&start_date='||p_start_date||'&end_date='||p_end_date);
req := UTL_HTTP.BEGIN_REQUEST (url);
UTL_HTTP.SET_HEADER (req, 'User-Agent', 'Mozilla/4.0 Oracle');
resp := UTL_HTTP.GET_RESPONSE (req);
UTL_HTTP.READ_LINE (resp, val, TRUE);
UTL_HTTP.END_RESPONSE (resp);
Update ship_dtl
set shipment_printed = 'Y'
where shipment_printed is null
and trunc(coll_date) between p_start_date and p_end_date;
commit;
END;
This works fine and sends email with the report as attachment. The attachment is report_name.pdf. I want to change this attachment to be named as shipment_id.pdf. Is this possible and how?
If there is any other method to sent email with attachments . ie run the report and attach the report to the email not as report_name.rdf but shipmenmt_id.rdfThis is my procedure
CREATE OR REPLACE PROCEDURE send_parvo_email IS
v_header varchar2(200);
v_file UTL_FILE.FILE_TYPE;
v_count Number;
v_letter Varchar(50);
req UTL_HTTP.REQ;
req1 UTL_HTTP.REQ;
resp UTL_HTTP.RESP;
resp1 UTL_HTTP.RESP;
url VARCHAR2 (2000);
url1 VARCHAR2 (2000);
val varchar2(4000);
val1 varchar2(4000);
p_start_date DATE;
p_end_date DATE;
v_shipment_id varchar2(30);
--v_start_date DATE;
--v_end_date DATE;
Cursor C1 is select shipment_id
from ship_hdr
where trunc(create_time) = trunc(sysdate);
BEGIN
v_letter := 'r_parvo_b19_rpt';
select trunc(sysdate-7),trunc(sysdate-2)
into p_start_date,p_end_date
from dual;
Open C1;
Fetch C1 into v_shipment_id;
Close C1;
save_parvo_email;
UTL_HTTP.SET_PROXY (null,null);
url :=
utl_url.ESCAPE
( 'http://hbc-maroon.heartlandbc.org/reports/rwservlet?userid=test/[email protected]&subject="Parvo Testing Report"&destype=mail&[email protected]&[email protected]&desformat=PDF&ENVID=QA&report='||v_letter||'&start_date='||p_start_date||'&end_date='||p_end_date);
req := UTL_HTTP.BEGIN_REQUEST (url);
UTL_HTTP.SET_HEADER (req, 'User-Agent', 'Mozilla/4.0 Oracle');
resp := UTL_HTTP.GET_RESPONSE (req);
UTL_HTTP.READ_LINE (resp, val, TRUE);
UTL_HTTP.END_RESPONSE (resp);
Update ship_dtl
set shipment_printed = 'Y'
where shipment_printed is null
and trunc(coll_date) between p_start_date and p_end_date;
commit;
END;
This works fine and sends email with the report as attachment. The attachment is report_name.pdf. I want to change this attachment to be named as shipment_id.pdf. Is this possible and how?
If there is any other method to sent email with attachments . ie run the report and attach the report to the email not as report_name.rdf but shipmenmt_id.rdf -
Sending email with attachment from iCloud
when i am sending email with attachment, when i am sending email with attachment I found that the mail was send and still on draft on the client software on my mac book pro. Any solution please??
That happens at times. Don't know why. Just delete the email in the drafts folder, as long as you are sure it was sent (check the sent folder). I've wondered whether it's a timing issue.
-
Sending Email with Query Result (Table Format)
Hi,
I have a query result from ExecuteSQL task e.g.:
ID Product
1 Pencil
2 Crayon
3 Eraser
I want to send an email with the above query result and I want it to be in Table format (such as in Microsoft Word with rows and column lines) to allow better readability to the receiver.
Is it possible in SSIS?
cherrieshIt has to be HTML format . Read Tony's article
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2008/03/28/send-table-or-view-as-embedded-html-lt-table-gt-in-an-email-stored-procedure.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Send email with attachment from Q2 notification to external email
Hi,
Whenever I create a Q2 notification, I want to send the vendor, details of the notification as attachment. Now it is copying the "coordinator" from partner function. But not copying vendor data in select partner function. Here I have to manually select the vendor. Another question here is that, this email should trigger to the email id of vendor maintained in the vendor master. This email address will be an external id. Please suggest the best way to send email to vendor along with attachment.
Thanks
VineethHi
Check with this sap note 208271 "Sending Notification email with Print function"
and required basis configuration.
Regards
Shiva -
Z10 can't send email with ActiveSync from work Outlook webmail
First off, love my Z10. It was able to connect to my work's Outlook webmail with no problem. I am able to get calendar and work emails.
HOWEVER, I can't seem to be able to send email through my work account. When sending an email, I keep getting this red wrong way icon with the message:
Message Status: Acknowledgement for send was not received from Server.
What's wrong?
I checked through my Outlook web account and it shows my phone within Mobile Phone Details:
Access state: Access Granted
Policy applied: Default - Applied in full
ActiveSync version: 14.0
Is there something I need to ask my IT staff for?
Thanks.DueNorth wrote:
First off, love my Z10. It was able to connect to my work's Outlook webmail with no problem. I am able to get calendar and work emails.
HOWEVER, I can't seem to be able to send email through my work account. When sending an email, I keep getting this red wrong way icon with the message:
Message Status: Acknowledgement for send was not received from Server.
What's wrong?
I checked through my Outlook web account and it shows my phone within Mobile Phone Details:
Access state: Access Granted
Policy applied: Default - Applied in full
ActiveSync version: 14.0
Is there something I need to ask my IT staff for?
Thanks.
It appears as if your email is running on Exchange 2010, and if so then you can troubleshoot this issue yourself to see if your phone is even talking to your ActiveSync server when it is trying to send the emails. If something doesn't jump out at you during this process, this information should help your IT folks in troubleshooting the effort.
http://blogs.msdn.com/b/mstehle/archive/2013/04/29/howto-visual-guide-to-turn-on-exchange-activesync...
You can also test the full functionality of ActiveSync on your account by using Microsoft's following testing tool, which should point out any major issues:
https://www.testexchangeconnectivity.com/
In regards to your question about what to ask your IT staff for, as an Exchange engineer myself I don't think there is anything on the server side that would let you connect and download email but not send it. So I would want to see the logs mentioned above to see what was going on with the device to server connectivity, in conjunction to the error message you already grabbed.
There are some random "fixes" on the Internet such as this one which would be a server side configuration change, but again the more information you can supply your IT folks the better:
http://forums.crackberry.com/blackberry-10-os-f269/bb10-exchange-activesync-issue-775934/ -
Sending emails with attachments from within a JSP
Hi everybody.
I have to solve that problem here and our major java freak is on holidays. So I'm countin on u guys ;)!
I've a sort of datasheet that dynamically created into a PDF file. Now this PDF file shouldn't only be available for download, which it is already, but to be able to send it anywhere via email.
Is there something nice I can use for creating an email with attachment and sending it to the world ??
Thx, for your help!
TimI think your best bet will be the JavaMail API. I've not used this (I'm planning on using it, but only for very basic emails), but you can read up on it here:
http://java.sun.com/products/javamail/index.html -
Sending Email with attachments from Desktop
Hi Experts,
I have a situation where I need to create a SAP shortcut document on desktop and then I need to send this shortcut document
as an email attachment .
I have a solution where i can create shortcut documents but the challenge here is how do I send this shortcut document which
is on desktop to as email attachment .
Please let me know If any Function module or method is available to send email attaching a document from Desktop.
<deleted by Moderator>
Karthik
Edited by: Suresh Datti on Aug 28, 2009 2:08 PMJust upload the document from the desktop and attach it to your e-mail. There are thousands of posts on this forum about sending e-mails and document attchments - what exactly are you stuck on? Is it getting the the path to the Desktop without the user picking the location? Why is that difficult?
-
How create report with data from table and some columns results function ?
Hi,
How can i create on apex report region with some columns (of the report) as returned from a table and the other columns as results of plsql functions ?
for example , I want to create a report like that:
device last_date error_msg stop/start
kodak1 06/04/08 null >>
kodak2 08/03/08 good msg --^--
kodak3 08/04/08 err msg >>
3 rows returned
where the 3 first columns are data returned from the table and the forth column is the result of plsql function (returned for example false) and on that i want to display a button of start ( >> in this example ) or stop ( --^-- in this example)Thomas,
There is no problem here -- this is fully suported scenario.
1. Bind Table dataSource to Customers node.
2. Bind individual cell editors to any attribute of customer or any nested node like Address, say create column with InputField as editor, then for "value" property select Customer.Address.Street.
Your nested nodes (like Address) must be non-singleton, set singleton=false on context designer tab.
Valery Silaev
EPAM Systems
http://www.NetWeaverTeam.com -
Cofiguring & sending email with attachment from Oracle Report 10g
I want to run report from Oracle 10g reports to be sent as email attachement to differnt people with their respective personal content.
The first problem is to know how to configure Oracle reports 10g to be able to send output to email address.
The second problem is to be able to route seperate pages of the report to seperate email address.
Thanks to all.For configuring email for reports
http://download-east.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_conf.htm#sthref472
For sending the output to different mail id's you can use bursting and distribution feature of Oracle Reports. For details,
http://download-east.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_dist.htm#i1007338 -
Whycant i send emails with attachments from aol?
every time i try to send a e mail with an attachment from my alo mail account i get message that says that there is a technical problem and to resend later, i have tried several times at different times during the day as well as at night
Thanks for replying Bob,
I tapped it and it said it sent but then it stored a copy in my outbox. Weird thing is that the receiving party said they got the email but it still sits in my outbox?? so weird. -
Send email with different "from" address
I now use iCloud (was MobileMe.) When I send an email or reply to someone's email, I don't want them to see the me.com address. I want them to see my domain email name. Through the place I bought the domain, I have it set up to send all mail to my me.com address, so there's no server info, etc. It just forwards everything to my me.com address. So using the panel in system preferences to set up a new mail account doesn't help becuase it wants the outgoing mail server, etc.
In Outlook or other mail programs, I used to look for a setting that said "reply to" and put in whatever I wanted. Is there something simple like this in iCloud?
Thanks.Thanks - that sems to have worked.
I set up my business account in my BB, made it the default in my phone so that email always say they are coming from my business account, then went to the Web through T-mobile to set up the filter so that this account does not receive email. I haven't seen any dups yet on my phone.
I will let the tmobil folks know.
Cheers -
Sending email with photo from Nokia 2630
Hi - I have photos on my Nokia 2630 that I want to download to my PC and email to friends. Can you suggest how I can do this? Many thanks in anticipation. Colin
Lokked around and it seems like your best bet is to connect it to your pc via bluetooth, (You might have to buy a bluetooth dongle) or send them to another phone via bluetooth and then to your computer via usb.
I believe in doing things in a way that is most accessible to me instead of taking too long trying to find an easy solution
maybe someone close to you has a phone with bluetooth and usb connectivity, be nice to that person and they could just let you use it
Show your appreciation. Hit that kudos button real hard -
Can't send email with photo from iPhoto
Hi I am trying to share a photo/email from iphoto and I get this error message
The email server didn’t recognize your username/password combination
I am assuming this is because I changed my password on icloud but it is working on mail... how to I update it on iphoto? thanks GailIf you're using iPhoto on your Mac go into the iPhoto/General preference pane and change the email client from iPhoto to Mail. Then you'll be able to email normally.
If you are referring to iPhoto on your Mac then post in the iLife/iPhoto community in the future.
OT
Maybe you are looking for
-
Hello. Thanks in advance for any help or advice. I am trying to parse XML. I have done a bit of background reading and made a few attempts - but i am stuck. I would like to parse XML using Crimson. I would like to use SAX as the API to that parser (h
-
Ratings Not transferring from LR on one to another.
I use a iMac to capture and tag photos as finalist. I then transfer the folder to another machine for editing. When I add the images into the editing machines lightroom, all the tags, ratings, stars, colors don't show up. When I was on Lr3 on both m
-
Hi Experts, I have notices a strange thing in portal and web dynpro. On refresh of WDA iView the WDA application is not being refreshed from Portal and doInit methord is not called, can you please help understanding if i have missed any portal or wda
-
Brand new superdrive ejects disks and isnt recognized my my brand new imac mountain lion. Oddly can be recognized on another mac without an internal drive (which I know is nessesary for the new superdives) PLEASE HELP! Thanks in advance! PS even with
-
Help connecting an airport extreme
help connecting an airport extreme