How to send mail to different text file
Hello experts.
I follow the example in the manual under
What I have discovered is that it will send email no matter which Organization a user is created in. e.g. Top or Top:MyOrg sent to text file ie Notification file( I use text file and not the SMTP server) and IDM 6.0
I only want Email sent if user is created in Top:MyOrg. I want it to sent to another text file.....how to customizes the workflow....
Hi..........
I follow the example in the manual
What I have discovered is that it will send email no matter which Organization a user is created in. e.g. Top or Top:MyOrg sent to text file ie Notification file( I use text file and not the SMTP server) and IDM 6.0
I only want Email sent if user is created in Top:MyOrg. I want it to sent to another text file.....how to customizes the workflow....
Thaks in advance
Similar Messages
-
HT1355 How to send 2 or more pdf files in e mail
How to send 2 or more pdf files in e mail...????????
Also i have a workspace created in html.oracle.com in that when i want to upload excel file or copy data from excel i am getting error as......
ORA-20001: create_table error: ORA-20001: Excel load run ddl error: ORA-01658: unable to create INITIAL extent for segment in tablespace FLOW_6868Looks like the data you're trying to load will exceed your workspace quota (2MB small, 5MB medium). Try loading fewer rows. -
How to send mail with attachment
Hi,
How to send mail with word document as attachment in oracle pl/sql.
kindly help me .
thank you
regards
P Prakashcreate or replace procedure pdf_mail(
p_sender varchar2, -- sender, example: 'Me <[email protected]>'
p_recipients varchar2, -- recipients, example: 'Someone <[email protected]>'
p_subject varchar2, -- subject
p_text varchar2, -- text
p_filename varchar2, -- name of pdf file
p_blob blob -- pdf file
) is
conn utl_smtp.connection;
i number;
len number;
BEGIN
conn := demo_mail.begin_mail(
sender => p_sender,
recipients => p_recipients,
subject => p_subject,
mime_type => demo_mail.MULTIPART_MIME_TYPE);
demo_mail.begin_attachment(
conn => conn,
mime_type => 'application/pdf',
inline => TRUE,
filename => p_filename,
transfer_enc => 'base64');
-- split the Base64 encoded attachment into multiple lines
i := 1;
len := DBMS_LOB.getLength(p_blob);
WHILE (i < len) LOOP
IF(i + demo_mail.MAX_BASE64_LINE_WIDTH < len)THEN
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, demo_mail.MAX_BASE64_LINE_WIDTH, i)));
ELSE
UTL_SMTP.Write_Raw_Data (conn
, UTL_ENCODE.Base64_Encode(
DBMS_LOB.Substr(p_blob, (len - i)+1, i)));
END IF;
UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
i := i + demo_mail.MAX_BASE64_LINE_WIDTH;
END LOOP;
demo_mail.end_attachment(conn => conn);
demo_mail.attach_text(
conn => conn,
data => p_text,
mime_type => 'text/html');
demo_mail.end_mail( conn => conn );
END;
ref:
http://www.plpdf.com/23-1725.html
Edited by: Mahanam on Jan 9, 2011 10:32 PM -
How can send mails using hotmail/rediffmail domain name?
I have used the below code to send a mail using javamail API?Even when I am sending my application does not have notified any of error/exceptions,But the message is not reached to I have given receipient's address in the to field.
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class Sendmail1 extends HttpServlet {
private String smtpHost;
// Initialize the servlet with the hostname of the SMTP server
// we'll be using the send the messages
public void init(ServletConfig config)
throws ServletException {
super.init(config);
smtpHost = config.getInitParameter("smtpHost");
//smtpHost = "sbm5501";
smtpHost = "www.rediffmail.com";
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws ServletException, java.io.IOException {
String from = request.getParameter("from");
String to "[email protected]";
String cc = "[email protected]";
String bcc ="[email protected]";
String smtp ="www.rediffmail.com";
String subject = "hai";
String text = "Hai how r u";
PrintWriter writer = response.getWriter();
if (subject == null)
subject = "Null";
if (text == null)
text = "No message";
String status;
try {
// Create the JavaMail session
java.util.Properties properties = System.getProperties();
if (smtp == null)
smtp = "www.rediffmail.com";
properties.put("mail.smtp.host", smtp);
Session session = Session.getInstance(properties, null);
//to connect
//Transport transport =session.getTransport("smtp");
//transport.connect(smtpHost,user,password);
// Construct the message
MimeMessage message = new MimeMessage(session);
// Set the from address
Address fromAddress = new InternetAddress(from);
message.setFrom(fromAddress);
// Parse and set the recipient addresses
Address[] toAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.TO,toAddresses);
Address[] ccAddresses = InternetAddress.parse(cc);
message.setRecipients(Message.RecipientType.CC,ccAddresses);
Address[] bccAddresses = InternetAddress.parse(to);
message.setRecipients(Message.RecipientType.BCC,bccAddresses);
// Set the subject and text
message.setSubject(subject);
message.setText(text);
Transport.send(message);
//status = "<h1>Congratulations,</h1><h2>Your message was sent.</h2>";
} catch (AddressException e)
status = "There was an error parsing the addresses. " + e;
} catch (SendFailedException e)
status = "<h1>Sorry,</h1><h2>There was an error sending the message.</h2>" + e;
} catch (MessagingException e)
status = "There was an unexpected error. " + e;
// Output a status message
response.setContentType("text/html");
writer.println("<title>sendForm</title><body bgcolor= ><b><h3><font color=green><CENTER>CALIBERINFO.COM</CENTER></h3>Your message was sent to recepient(s).<br><font color=red>"+"\n"+to);
writer.println("<br><br><a href=e:/mail/javamail/mail.html>back to compose</a>");
writer.close();
Please any one help me out from this probs.
Awaiting for yours reply,
or give me a reply to: [email protected]
Regards,
@maheshkumar.kHi,
how can send mails using hotmail/rediffmail domain name?In your java application,you specified www.rediffmail.com as your
smtp server.But that is the address of that website.Try will a smtp
server instead.For a list of free smtp servers,please visit http://www.thebestfree.net/free/freesmtp.htm
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
How to send mail in html format in jsp???
Hello everybody,
I have two jsp pages.In one page I have the heading like Date,Transaction.I am retriving data from my second jsp page.And I hae included the second jsp page to my first jsp page.How to send mail this content in html format.
Thanks
SrikantMimeMessage m = new MimeMessage(session);
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(content, "text/html");this if u need to send a mail content as html -
I am making a year book for wich I have many Word files and pictures. I think the data merge should be a perfect way to bring all these different texts and photo's into my lay out. But the text i can not get it to work. I can get the pictures to work but somehow i cannot load the different text files into the lay out? Can anyone tell if this is possible and how? thnx a lot (PS I am working with CS4)
Here is one from
Peter Kahrel
// Description: Place multiple textfiles as one story
#target indesign
preset = '/d/test/*.rtf';
app.wordRTFImportPreferences.useTypographersQuotes = true;
app.wordRTFImportPreferences.convertPageBreaks = ConvertPageBreaks.none;
app.wordRTFImportPreferences.importEndnotes = true;
app.wordRTFImportPreferences.importFootnotes = true;
app.wordRTFImportPreferences.importIndex = true;
app.wordRTFImportPreferences.importTOC = false;
app.wordRTFImportPreferences.importUnusedStyles = false;
mask = prompt ('Enter a file path/mask.\r\r' +
'Examples:\r' +
'd:\\books\\test\\*.rtf /d/books/test/*.rtf', preset);
if (mask == null) exit(); // Cancel pressed
ff = Folder (File (mask).path).getFiles (File (mask).name);
if (ff.length > 0)
placed = [];
missed = [];
tframe = app.documents.add().textFrames.add({geometricBounds : [36, 36, 400, 400]});
placedstory = tframe.parentStory;
app.scriptPreferences.userInteractionLevel =
UserInteractionLevels.neverInteract;
pb = initprogressbar (ff.length, 'Loading');
for (i = 0; i < ff.length; i++)
pb.value = i;
try
placedstory.insertionPoints[-1].place (ff[i]);
placedstory.insertionPoints[-1].contents = '\r\r';
placed.push (ff[i].name);
catch (_)
missed.push( ff[i].name );
app.scriptPreferences.userInteractionLevel =
UserInteractionLevels.interactWithAll;
inform = '';
if (placed.length > 0)
inform = 'Placed ' + ff.length + ' files (in this order):\r\r' + placed.join ('\r');
if (missed.length > 0)
inform += '\r\rCould not place:\r\r' + missed.join ('\r');
delete_empty_frames ();
alert( inform );
else
alert (mask + ' not found.');
// End
function delete_empty_frames ()
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = '\\A\\Z';
var empties = app.activeDocument.findGrep (true);
for (var i = 0; i < empties.length; i++)
empties[i].parentTextFrames[0].remove()
function initprogressbar (stop, title)
progresswindow = new Window('palette', title);
progressbar = progresswindow.add ('progressbar', undefined, 1, stop);
progressbar.preferredSize = [200,20];
progresswindow.show ()
return progressbar; -
How to Send mail in oracle 10g
I am new in oracle developer.....we are using oracle 10g developer...how to send mail through oracle 10g on a button click.pease help me.
Thanks in advanceThis question have been asked many times on this forum, see if you get help from following:
https://forums.oracle.com/message/5395438#5395438
Search results: https://forums.oracle.com/thread/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=form+email
Check this out as well:
http://nzchaudhry.wordpress.com/2013/05/31/send-report-via-email-attachment-in-oracle-forms-10g/
You can find init.ora or initSID.ora file under $ORACLE_HOME/dbs on linux and on Windows under $ORACLE_HOME/database. Otherwise you can create it using "create pfile from spfile" command
Aneel -
Hi,
I am newbee in Java, I want to send mail to different accounts using java from my website. Plz help me with working example. I am new to java.
Thanks in advance,
devomThanks, but I want to send mail from my WEb page that is in JSP. The arcticle pointed out sends mail in core java. I already know how to send in Core java, but i want to send through JSP. Plz help me.
Thanks in advance,
Devom -
Hi,
I want to send email along with attachment. I have tried to install UTL_MAIL packages but dont have its backage body script i.e. %ORACLE_HOME%/RDBMS/ADMIN/PRVTMAIL.SQL file.
Please help me to guide installation of this package or tell me is there any alternate way.
Thanks
Usman Rana
mail the file at [email protected]Hello
Sending email attachment from oracle I have no idea but you can do that from UNIX.
a) using MUTT a third party utility on unix will allow attachments in emails.
b) check the below mentioned script.
SUBJECT="Send mail from Unix with file attachments"
TO=junk\@testing.com
SPOOLFILE=/export/home/oracle/sqlplus.txt
echo "Produce listing from SQL*Plus..."
sqlplus -s sri/sri >$SPOOLFILE <<-EOF
set echo off feed off veri off pages 0 head off
select * from tab;
EOF
# echo "Convert file to DOS mode..."
# unix2dos $SPOOLFILE $SPOOLFILE 2>/dev/null
echo "Send the E-mail message..."
/usr/bin/mailx -s "${SUBJECT}" ${TO} <<-EOF
Hi,
This sample E-mail message demonstrates how one can attach
files when sending messages with the Unix mailx utility.
First attachment: SQL*Plus spool file
~< ! uuencode $SPOOLFILE `basename $SPOOLFILE`
Second attachment: mailx.ksh (this script)
~< ! uuencode mailx.ksh mailx.txt
Third attachment: /etc/passwd file
~< ! uuencode /etc/passwd passwords
Best regards
~.
EOF
echo "Done!"
c) Third option is creating a procedure in oracle which allows you to send emails but with no attachments.
/* Sending email from oracle database */
create or replace procedure send_mail
( sender in varchar2,
recipient in varchar2,
subject in varchar2,
message in varchar2 ) is
mailhost varchar2(30) := '192.168.1.100';
chlr varchar2(2) := chr(13) || chr(10);
mail_conn utl_smtp.connection;
mesg varchar2(4000);
begin
mail_conn := utl_smtp.open_connection(mailhost, 25);
mesg:= 'date: ' || to_char( sysdate, 'dd-mon-yyyy hh24:mi:ss' )||chlr||
'from: <'||sender||'>' || chlr ||
'subject: '||subject || chlr ||
'to: '||recipient || chlr ||
'tablespace report - rpt '|| chlr || message;
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, sender);
utl_smtp.rcpt(mail_conn, recipient);
utl_smtp.data(mail_conn, mesg);
utl_smtp.quit(mail_conn);
exception
when others then
raise_application_error(-20002,'unable to send the mail.'||sqlerrm);
end;
Hope this helps
-Sri -
How to send mail to distribution list ?
Hi Everybody,
Pls let me know how to send mail to distributed list???
Thanks & Regards,
raju<b></b>Hi ,
Use Function Module 'SO_NEW_DOCUMENT_SEND_API1'.
U need to pass Distribution list to Receiver and 'C' to receiver type refer the below code for clarification.
Determine the Distribution List.
gv_rec_list-receiver = gv_distribution.
gv_rec_list-rec_type = 'C'.
APPEND gv_rec_list.
Check if Distribution List is deleted.
SELECT SINGLE objnam
FROM soid
INTO lc_objnam
WHERE objnam = gv_rec_list AND
dlitp = lc_dli.
IF sy-subrc = 0.
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = gv_doc_data
document_type = 'RAW'
put_in_outbox = 'X'
TABLES
object_content = gv_obj_cont
receivers = gv_rec_list
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4.
CASE sy-subrc.
WHEN '1'.
message i001(as) with 'TOO MANY RECEIVERS'.
EXIT.
WHEN '2'.
message i001(as) with 'DOCUMENT NOT SENT'.
EXIT.
WHEN '3'.
message i001(as) with 'DOCUMENT TYPE DOES NOT EXIST'.
EXIT.
WHEN '4'.
message i001(as) with 'OPERATION NO AUTHORIZATION'.
EXIT.
ENDCASE.
Hope this might have helped you.
Thanks,
Prashanth -
How can I print mulitple different .ai files onto one page in Illustrator CS6?
How can I print mulitple different .ai files onto one page in Illustrator CS6? I have all of the files organized by Arrange Documents>Tile All in Grid and I would like to print the files in this format so that they can all be seen at once when printed out onto one page.
Some background is that I have 16 different cad drawings that I have converted and edited in illustrator. I'd like to basically make a contact sheet with all 16 drawings so that they can be reviewed on one sheet of paper after printing. But each drawing is in it's own unique file, and I have not figured out how to put them all onto one page for printing.You can place them (linked) into a new Illustrator file and print from there.
The original files will need pdf compatability. -
How to get the content of text file to write in JTextArea?
Hello,
I have text area and File chooser..
i wanna the content of choosed file to be written into text area..
I have this code:
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.*;
public class Test_Stemmer extends JFrame {
public Test_Stemmer() {
super("Arabic Stemmer..");
setSize(350, 470);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setResizable(false);
Container c = getContentPane();
c.setLayout(new FlowLayout());
JButton openButton = new JButton("Open");
JButton saveButton = new JButton("Save");
JButton dirButton = new JButton("Pick Dir");
JTextArea ta=new JTextArea("File will be written here", 10, 25);
JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
final JLabel statusbar =
new JLabel("Output of your selection will go here");
// Create a file chooser that opens up as an Open dialog
openButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser chooser = new JFileChooser();
chooser.setMultiSelectionEnabled(true);
int option = chooser.showOpenDialog(Test_Stemmer.this);
if (option == JFileChooser.APPROVE_OPTION) {
File[] sf = chooser.getSelectedFiles();
String filelist = "nothing";
if (sf.length > 0) filelist = sf[0].getName();
for (int i = 1; i < sf.length; i++) {
filelist += ", " + sf.getName();
statusbar.setText("You chose " + filelist);
else {
statusbar.setText("You canceled.");
// Create a file chooser that opens up as a Save dialog
saveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser chooser = new JFileChooser();
int option = chooser.showSaveDialog(Test_Stemmer.this);
if (option == JFileChooser.APPROVE_OPTION) {
statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
chooser.getSelectedFile().getName():"nothing"));
else {
statusbar.setText("You canceled.");
// Create a file chooser that allows you to pick a directory
// rather than a file
dirButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JFileChooser chooser = new JFileChooser();
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int option = chooser.showOpenDialog(Test_Stemmer.this);
if (option == JFileChooser.APPROVE_OPTION) {
statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
chooser.getSelectedFile().getName():"nothing"));
else {
statusbar.setText("You canceled.");
c.add(openButton);
c.add(saveButton);
c.add(dirButton);
c.add(statusbar);
c.add(ta);
c.add(ta2);
public static void main(String args[]) {
Test_Stemmer sfc = new Test_Stemmer();
sfc.setVisible(true);
}could you please help me, and tell me what to add or to modify,,
Thank you..realahmed8 wrote:
thanks masijade,
i have filter the file chooser for only text files,
but i still don't know how to use FileReader to put text file content to the text area (ta) ..
please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
Give it a try. -
Where are these unix executable files coming from and how do I recover the original text file?
where are these unix executable files coming from and how do I recover the original text file?
When you upgraded to Lion did you have AppleWorks installed on your mac?
Most of the AW documents can be opened by Pages 09 or Numbers 09 with most of the orginal format in tact. (I do not know if previouse verision will work) just open the AW file with both and see which one works best.
Text Edit will also open most of the AW files as well but will require a lot of work to restore them to their orginal format.
If you have AW Database documents then they are not supported.
These document show up as "exec icons", Kind: Unix Executagle File.
They also will show up as .cwk file if they are small files. I have a couple that were under 1mb that are shown as " Kind: AppleWorks Document" but will not open.
The only option to open AW database is to have AW installed on a mac with a pre-Lion OS to recover the file. -
How can u insert and retrieve text files in any format using forms6i.
how can u insert and retrieve text files in any format using forms6i.
can u give me an example of an insert statement, let's assume the file is located in the a:drive.
and retrieving the files, i would give the user a list of all the files that are in the database, the user would select one, but what command(or piece of code) would open the file in its apppropriate editor.
e.g .pdf formatted file would open in acrobat.
any help would be appreciated.
Thanks
Hussein Saigerthe filereference class is for downloading and uploading files.
if you want to load xml, use the xml class.
and, if you want to write to an xml file and don't want to use server-side code, wait. -
How to send mail in APEX 4.1 using PLSQL
Hi All,
How to send mail in APEX 4.1 using PLSQL?
Thanks In advance.
Regards
Shailhttp://lmgtfy.com/?q=oracle+apex+4.1+send+mail
Maybe you are looking for
-
How do I clear the downloads list or a single file in ff for android?
how do i clear downloads?
-
How to sync two computers (or more) without iCloud?
i need to sync (or copy) iCal, Notes, Remembers, Adress Book between two computers working on Mountain Lion. How can i do without using iCloud or other cloud?
-
Hi, We are using Oracle 7.3 and we had a system crash. After i boot up the system and tried to open the database, i got a message that one of the redo log(current) was corrupted and hence the database cannot opened. We are in nonarchived mode and sin
-
How can I get Firefox to allow AOL to open. It will not allow!
Firefox a warning that I will be redirected to another page (aol.com) and I select the allow box., but it does not redirect or allow. HELP
-
Oracle Database 11g Certified Implementation Specialist [1Z0-514 ]
Hi Is the exam 1Z0-514 available for all (not only partners or people who attended course)?