How to send out email from table data every day?

want to implement email function:
send out data in email from a table with select everyday
how to implement it in ASE 12.5?

You can use the Job Scheduler functionality within ASE or a UNIX OS cron job to cause something to happen at a particular time every day.
With Job Scheduler, you might have it use xp_cmdshell to execute a script on the OS,
while cron would just execute the script directly.
The script would log into ASE, run the select and store the results into a file, then send the file contents.
A simple example of such a script file might be:
isql -Usa -Ppassword -o /work/my_output.txt  << EOF
select * from mydb..mystatus
go
EOF
mailx -s"My Daily Status" bret < /work/my_output.txt
As the file contains your password, be sure permissions are set so only you can read and execute the file.

Similar Messages

  • Send out Email from Procedure

    Within a PL/SQL stored procedure, if an execution error occurrs, I want to receive a corresponding email to notify me as such. How can I do it?
    procedure p_exe_error(
    begin
    //If there is an error, send email to [email protected] to notify the error (error_message =xxxxxxxxxx)
    What should I do here?
    end;
    Thanks
    Scott

    This appears to be a duplicate
    Send out Email from Procedure
    Justin

  • How to send ENCRYPTED email from 10v2

    Helllo,
    How to send ENCRYPTED email from 10v2 to end users who will receive their emails from Microsoft Outlook?
    I created a stored procedure to change user passwords. I need to email the users their passwords but the email message has to be encrypted since it contains user passwords. How do I use util_mail to send encrypted messages? The users will pick up their passwords through Microsoft Outlook. Thank you in advance.

    not sure what is the mechanics of decrypting (PGP maybe?)
    I have few tips ...
    1. look at DBMS_CRYPTO package
    2. create JAVA stored procedure (I'm sure there are some good samples to use java for encryption) to encrypt the body (this can be executed from pl/sql)
    3. save the body as a file on unix and encrypt it with unix command (this can be executed from PL/SQL utilizing UTL_FILE and JAVA stored procedure)
    4. forget sending the password in email and save the password on Oracle Apex site and configure access using single sign-on with transparent windows authentication

  • How to send an email from ADF11g.

    Hi,
    How to send an email from ADF11g.can u give example code and send me any link.
    Regards
    AP

    perfect and simple way is to use the java mail api from apache
    very simple, easy to use, and handle all types of emails.
    http://commons.apache.org/email/userguide.html

  • How to send an email from a VI

    Hello..
         I want to know how to send an email from VI. I am using Labview 8.6 . I tried some examples also. But when I run those VIs, I getting errror. It is smtp server error. I dont have any idea about how to change smtp server settings. Can any body tell step by step procedure to accomplish this task.. 
    Further, I need send an attachment with this email... 
    Please help me
    Thanks
    Prashanth
    Solved!
    Go to Solution.

    Hello harold..
               thanks for sending VI. I tried it, but I am getting following error
    Error 1172 occurred at Error calling method System.Net.Mail.SmtpClient.Send of ObjectId handle: 0xCD21184 for obj 0x212E63[System.Net.Mail.SmtpClient] in domain [LabVIEW Domain for Run] and thread 280, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
        Inner Exception: System.Net.Mail.SmtpException: Failure sending mail.
        Inner Exception: System.Net.WebException: Unable to connect to the remote server
        Inner Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
    ) in GmailLV86.vi
    How can I solve this problem..
    Please let me know.
    Thanks
    Prashanth

  • How to send group emails from ipad

    How to send group emails from ipad

    Thanks.  So matters haven't changed.  Ipad and iohone systems still not make use of the groups created in OSX Contacts, although one can "see" the groups synced through iCloud.  They just do not function as real distribution lists in Mail.
    With the Mailshot app, one creates Mailshot groups with Mailshot group name.  It's as smooth as a work around can get.
    Silly that Apple iOS folks never got around to connecting the contact groups now listed in iOS Contacts through iCloud syncing to also be fully functional in iOS Mail for the purpose of group emailing. 

  • I changed my comcast password (on my iPhone) and now am having trouble sending out emails from my Mac

    I changed my comcast password (on my phone) and now am having trouble sending out emails from my Mac.

    Did you change the password on your Mac as well? Go to Mail / Preferences / Accounts and change it there too.

  • How to send only email from workflow

    Hi Guys,
    I want to send an email from a workflow without sending a notification ... how do i do it ?
    Thanks In advance
    Tom.

    Hi,
    Two possible ways - neither of which I would recommend.
    1 - Write a trigger on the WF_NOTIFICATIONS table, so that if the notification for the process that you require is sent, then you populate the mailer status column to 'spoof' the mailer into thinking that it has already sent it. That should suppress the email.
    2 - Modify the flow to include an activity prior to the notification to change the recipient preferences to not receive email, send the notification, then change the preferences back.
    Email is an "all or nothing" solution - either get email from everything, or get it from nothing. How are they planning on dealing with the notification that they are sent? If they are logging into the application to view the notification, then you could consider sending summary notification emails, and force the users to log into the application to view them all, rather than trying to adopt a half-and-half solution where some things come by email and some only come in the application.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to send out email in HTML format instead of Plain text?

    Can anyone help? Or any website with that information?
    I am trying to send out email using javamail. But i want it to be in HTML format so that i can set font size,coulor and so on.
    Thanks in advance if you have any clue or solution.

    look at this page:http://developer.java.sun.com/developer/onlineTraining/JavaMail/contents.html

  • How to Send HTML Email from Webpage?

    Hi Everyone!
    I'm Looking to Send Emails with an Option to Send Text Format (from textfile on Webserver, ex. textfile.txt) or HTML Format (from webpage on Web Server, example: test.html).
    I will include My Current Code at the end of this Q.
    What Code will I need to use to create the Option, extract the data from the .txt file Or HTML File, and send the Content in the Body of the E-mail?
    Also, how can I send the e-mails (both HTML and/or Text Format) to Multiple Recipients by adding the names into the '$email' textbox on the current form?
    Thanks in Advance!

    Which class are u using for the same purpose ?

  • How to send an email from jsp

    hello
    i want to send email from jsp
    the following is that code
    and i also downloaded the mail.jar and activation.jar
    and there is no error in the code
    but the email is not sent
    kindly tell me that what can be the reason
    <%@ page import="sun.net.smtp.SmtpClient, java.io.*" %>
    <%
    String from="[email protected]";
    String to="[email protected]";
    try{
    SmtpClient client = new SmtpClient("xx.xxx.xx.xx");//replace with the reqiured smtp
    client.from(from);
    client.to(to);
    PrintStream message = client.startMessage();
    message.println("To: " + to);
    message.println("Subject: Sending email from JSP!");
    message.println("This was sent from a JSP page!");
    message.println();
    message.println();
    message.println();
    client.closeServer();
    catch (IOException e){     
    System.out.println("ERROR SENDING EMAIL:"+e);
    %>

    try this:
    <html>
    <body>
    <form action="enviaremail.jsp" method="post">
    <table border="0" align="center" bgcolor="tan">
    <tr>
    <td><b>Para..:</b></td>
    <td><input type="Text" name="para"</td>
    </tr>
    <tr>
    <td><b>De..:</b></td>
    <td><input type="Text" name="de"</td>
    </tr>
    <tr>
    <td><b>Assunnto..:</b></td>
    <td><input type="Text" name="assunto"</td>
    </tr>
    <tr>
    <td colspan="2">
    <textarea name="mensagem" rows=10 cols=45></textarea>
    </td>
    </tr>
    </table>
    <center> <input type="Submit" value="Enviar Email"></center>
    </form>
    </body>
    </html>
    <html>
    <body>
    <%@ page import="jspbrasil.Email" %>
    <jsp:useBean id="email" class="jspbrasil.Email"/>
    <%
    try {
    String mailServer = "mail.seumailserver.com.br"
    String assunto = request.getParameter("assunto")
    String para = { request.getParameter("para") };
    String de = request.getParameter("de");
    String mensagem =request.getParameter("mensagem");
    email.sendSimpleMail(mailServer, assunto, para, de, mensagem);
    %>
    <p>Email enviado com Sucesso !!!</p>
    <%
    catch (AddressException e) { %>
    <p>Endere�o de Email inv�lido</p>     
    <%}%>
    <%
    catch (MessagingException e) { %>
    <p>Imposs�vel enviar o email.</p>     
    <%}%>
    </body>
    </html>
    package jspbrasil;
    import javax.mail.*;
    import javax.mail.internet.*;
    import.java.util.*;
    public class Email {
    public void sendSimpleMail (String mailServer, String subject,
    String to,String from, String mensagem)
    throws AddressException, MessagingException {
    Properties mailProps = new Properties();
    //defini��o do mailserver
    mailProps.put("mail.smtp.host", mailServer)
    Session mailSession = Session.getDefaultInstance(mailProps, null);
    //As duas linhas seguintes de c�digo, colocam no
    //formato de endere�os,
    //supostamente v�lidos, de email os dados
    //passados pelos par�metros to e from.
    InternetAddress destinatario = new InternetAddress (to);
    InternetAddress remetente = new InternetAddress (from);
    //As duas linhas de c�digo a seguir, s�o
    //respons�veis por setar os atributos e
    //propriedas necess�rias do objeto message
    //para que o email seja enviado.
    //inicializa��o do objeto Message
    Message message = new MimeMessage (mailSession);
    //Defini��o de quem est� enviando o email
    message.setFrom(remetente);
    //define o(s) destinat�rio(s) e qual o tipo do
    //destinat�rio.
    //os poss�veis tipos de destinat�rio: TO, CC, BCC
    message.setRecipient( Message.RecipientType.TO, destinat�rio );
    //defini��o do assunto do email
    message.setSubject (subject);
    //defini��o do conte�do da mensagem e do
    //tipo da mensagem
    message.setContent (mensagem.toString(), "text/plain");
    //a linha de c�digo seguinte � a respons�vel
    //pelo envio do email
    Transport.send (message);

  • How to send an email from CRM that shows-up as Meeting invite?

    Hi, 
    I want to send an email invitation for a meeting to the contact such that it appears as a meeting invite on Outlook. How can this be achieved?
    I know one way is to create an Appointment, sync it with Outlook, add attendees and send invite. But can we do this from within CRM?
    We have a custom meeting entity and we can add our contacts and employees as attendees. But we want to send an email to all those attendees from within CRM such that it appears as a meeting invite/Appointment.
    Please advise. 
    Thanks, 
    Fahad Ali Shaikh

    If you want to use meeting invites, it needs to be a meeting, not a custom entity.
    You could write code to send an .ics file for the meeting for example, but the point of an Outlook meeting invite is that the organiser can track who has said they are or are not attending, or have not yet replied, for example.
    Note that more recent versions of CRM *do* send invitations out for appointments created in CRM, depending on how you configure your synchonisation (eg using SSS they are automatically sent out).
    Hope this helps.
    Adam Vero, Microsoft Certified Trainer | Microsoft Community Contributor 2011
    UK CRM Guru Blog

  • How to send automatic EMail from SQL or SAP B1

    hi experts as we are using SQL as DB i ned to send E-mails from sap system automatically but from SBO mailer  or Scheduler is not working from my side now i was planning to send emails from SQL can any one help me how to send emails automatically from SAP business one or from SQL

    Hi
    In SQL under Management\Database Mail
    You can configure account you use to send mails from SQL
    Then you can prepare procedure that will send mail
    for example
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'Hurtpol',
    @recipients = '[email protected]',
    @query = 'select isnull(syncherror,'''')  collate polish_ci_as
    from np.dbo.OITM
    where U_SynchStatus=''Failed''',
    --@body = @tresc,
    @subject = 'synch error'
    read about sp_send_dbmail

  • I am getting Contraint violations when I send out emails from my work website. This has never happened before. What could this be?

    Why am I getting Contraint Violations when I go to forward or to send an email out from the URL noted? I have never received this before and am not able to work like this.
    Thank you,
    Sandra

    That doesn't sound familiar. Is this a pop-up message from Firefox, or an error that appears in a web page after you click send, or an error that is sent back to you from a mail server (e.g., like a non-delivery receipt message)?

  • I cannot send out emails from my iPad,says my email address was rejectected by server. I am receiving mail, but can't send?

    When sending emails from iPad,I get message: email was rejected by server.  I am receiving mail to rejected email address

    Try going into Settings > Mail, Contacts, Calendars > select the account > account name , tap on SMTP (under the 'Outgoing Mail Server' heading) and then tap on your Primary Server and try entering your email account and password and see if it then works

Maybe you are looking for

  • Installation problems Officejet 5610 All in One on Windows 8.1 64 bit

    I have a HP Officejet 5610 All-in-One printer that I have  had for a few years. It has worked well on the old computer but the computer died. I purchased a new Dell Laptop with the Windows 8.1 64 bit operating system. The printer works fine but the s

  • PL/SQL Equivalent to the condition "No inline validation errors displayed"

    Hello, I've seen this on another thread but can't find it. I need two conditions to be true to show a region: a value is not null and no inline validation errors are showing. Does anyone know the PL/SQL (API call?) to retrieve the number of errors be

  • Vendor deletion/Block update from ECC to SNC

    Hi When vendor is blocked or deletion flag is set, and after that when vendor is CIFe'd to SNC, is the status in SNC get updated. We have an issue that after CIF status of vendor still PO are able to be confirmed on SNC side? Is somebody having cllue

  • Decision Pop Up: buttons with custom message

    Hi Experts, I have a requirement to display buttons with custom message on it for a decision pop up instead of 'Yes' or 'No'. Please guide me how do I do it? Thanks for your help. Regards, Surekha.

  • Desktop Software can't find 9790

    Hi, i've been trying for a month now to get my 9790 to work on Blackberry Desktop software so i've actually got it backed up to the PC etc. But when ever i conect via USB it says "please conect device" i've gone through all the trouble shooting optio