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

Similar Messages

  • How to send automatic emails to lotusmail from forms 10g

    hi iam new to oracle forms 10g...as i have developed complaint module. now i need to send automatic emails from my forms 10g to my department heads
    depending on complaints assigned, to their lotus mail... as iam totally new to this can any one tell me step by step process to do........ if anyone having sample
    complaint module pls send it to me it vl be more helpful to me........

    Welcome to the forum!
    Sometimes it helps to search the forum before posting a question.
    Here are some links which might help you:
    Sending emails viw UTL_SMTP
    PL/SQL for utl_smtp
    If you have a mail-client installed on the client-pc you could use the following to open it and iinitially create a mail with that
    microsoft outlook express connectivity to oracle
    If you have Outlook installed as mail-client another option would be CLIENT_OLE in webutil, have a look at this
    Send mail with attachment

  • Anyone know how to send automatic email notification in OA?

    Any where I can find a resource about how to send automatic email notification?
    say, samples, reference?
    please advice, thank you very much

    integrate your application with oracle workflow and send a notification from the mailer.
    details of working with workflow is there in the dev guide
    Thanks
    Tapash

  • 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. 

  • To send an email from outlook to SAP user in SAP

    Hi,
    Is it possible to send an email from outlook to SAP user in SAP?
    Regards,
    Mizan

    Hi Mizan......
    Yes off course it is possible.
    Generally how we put the CC to our ionternal users like you have to put their email address while sending mail through SAP viq outlook.
    The mail will go from SAP but via. outlook and user will receive the mail in Outlook Integration and not inside B1.......
    If you want it in B1 then instead of sending mail you can send the same by choosing option Int......
    Regards,
    Rahul

  • 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

  • Help to resolve error in sending database email from SQL Server 2012.

    Please help to resolve error in sending email from SQL Server 2012.
    SQL Instance Version:
    Microsoft SQL Server 2012 (SP1) - 11.0.3449.0 (X64) 
    Jun 29 2014 23:15:18 
    Copyright (c) Microsoft Corporation
    Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: )
    Error Message: Error MeThe mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2015-01-15T19:48:25). Exception Message:
    Cannot send mails to mail server. (The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was not authenticated).)

    The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1
    Client was not authenticated).
    I think the error message is pretty clear, you have to setup authentication for the SMTP connection in Database Mail, see
    Database Mail Configuration Objects
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • 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

  • Issues while sending automatic email from job scheduled via sm36

    Dear basis guys,
    We are on Netweaver 2004s, ERP 6 .
    I am scheduling (in SM36) a standard report output as background job, send its output to a pdf device and send this pdf automatically to email address. Everything is working fine except that I am not able to do the following:
    1. Cannot change the email title (APR****-spool request no.) and body from "The Mail Attachment Contains the Print File Created by User..."
    2. I need to send the email to several people.  Cannot use the distribution list with the pdf device. IF I use in sm36 "spool list recipients"  instead,  the attachment sent as pdf will result truncated. Not all report lines will show.
    Could someone help on any of the above?
    Thank you in advance for any input.

    Dear basis guys,
    We are on Netweaver 2004s, ERP 6 .
    I am scheduling (in SM36) a standard report output as background job, send its output to a pdf device and send this pdf automatically to email address. Everything is working fine except that I am not able to do the following:
    1. Cannot change the email title (APR****-spool request no.) and body from "The Mail Attachment Contains the Print File Created by User..."
    2. I need to send the email to several people.  Cannot use the distribution list with the pdf device. IF I use in sm36 "spool list recipients"  instead,  the attachment sent as pdf will result truncated. Not all report lines will show.
    Could someone help on any of the above?
    Thank you in advance for any input.

  • 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 SAPOffice email from XI?

    Hi Experts,
               I have R/3 system. Whenever there is any error in XI I have to send mail to SAPOffice of R/3 system.
    R/3 <- XI. How can I do this? SAPOffice is the transaction SBWP. Any adapter I have to use?
    I have seen that there is a FM 'SO_NEW_DOCUMENT_SEND_API1'
    which can send email to SAPOffice.
    Is there some way I can use this FM from XI?
    Is there any other better solution to send mail to SAPOffice?
    Gopal

    Hi,
    Refer the below weblog.
    Send an attachement
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    Mail Adapter (XI) - how to implement dynamic mail address
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Thnx
    Chirag

  • How to send an email from oracle?

    Hi I want to send email from oracle database.
    i have tried following procedure
    create or replace
    2 PROCEDURE send_mail (p_sender IN VARCHAR2,
    3 p_recipient IN VARCHAR2,
    4 p_message IN VARCHAR2)
    5 as
    6 l_mailhost VARCHAR2(255) := 'aria.us.oracle.com';
    7 l_mail_conn utl_smtp.connection;
    8 BEGIN
    9 l_mail_conn := utl_smtp.open_connection(l_mailhost, 25);
    10 utl_smtp.helo(l_mail_conn, l_mailhost);
    11 utl_smtp.mail(l_mail_conn, p_sender);
    12 utl_smtp.rcpt(l_mail_conn, p_recipient);
    13 utl_smtp.open_data(l_mail_conn );
    14 utl_smtp.write_data(l_mail_conn, p_message);
    15 utl_smtp.close_data(l_mail_conn );
    16 utl_smtp.quit(l_mail_conn);
    17 end;
    and when i execute the following
    begin
    send_mail( '[email protected]',
    '[email protected]',
    'Hello arun' );
    end;
    I get the following errors
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "TEST.SEND_MAIL", line 8
    ORA-06512: at line 2
    Please help
    Regards
    Arun

    C:\>telnet aria.us.oracle.com 25Only if you work ofr Oracle & start behind their firewall would I expect this to work.
    The SMTP server to which PL/SQL connects needs to be YOUR corporate email (MTA) server & configured to RELAY message.
    Contact your LOCAL postmaster/Network Admin
    NONE of this is related to Oracle RDBMS!

Maybe you are looking for

  • I have songs that show up as on the Cloud on my iPad, but do not show on my laptop.

    Further information: These songs were uploaded from CD's back in '07, and deleted from my library several years (and a computer or two) ago.  I have never signed up for iTunes Match.  I recently decided that I would like to listen to some of the song

  • Project Pro for Office 365 or not?

    Hello, What are the differences between the two "MS Project" we can download from these two web pages of Office 365 : are they the same product? Your Office, on request   Software: install of the last version of Project: Thanks and regards

  • Pismo Power Problem?

    While installing Tiger on my Pismo it died, I got it to boot from the battery for a few moments, and tried the adapter on another powerbook g3. It didn't work on that one either. I can hear the adapter "clicking". How did my adapter die? Did my pismo

  • Native essbase and admin services

    My users are only using Essbase, the AAS Console, and the Excel Add in. It dosn't make much sense to install any additional Hyperion components if they are not used. As a result, I'm considering installing a native version of Essbase 9.3.1. and Admin

  • Internet Explorer 7, htm page, flash movie and page jump

    I'm developing a simple htm page in dreamweaver which contains a flash movie. the page works fine in firefox and netscape, but in internet explorer 7 the page jumps when the navigation of the flash movie is used. any clues? pls see: http://www.multic