Send mail from database server to client

Hi,
i Want to send mails from oracle database (10gR1 on windows 2003) to user client systems (Developer 6i). Can anyone tell me how it is possible ?
Thanks

You can use utl_smtp to send mail or Java stored procedure to send the mail.
example of utl_smtp.
CREATE OR REPLACE PROCEDURE SEND_MAIL (
msg_to varchar2,
msg_subject varchar2,
msg_text varchar2 )
IS
c utl_smtp.connection;
rc integer;
msg_from varchar2(50) := 'Oracle9.2';
mailhost VARCHAR2(30) := '127.0.0.1'; -- local database host
BEGIN
c := utl_smtp.open_connection(mailhost, 25); -- SMTP on port 25
utl_smtp.helo(c, mailhost);
utl_smtp.mail(c, msg_from);
utl_smtp.rcpt(c, msg_to);
utl_smtp.data(c,'From: Oracle Database' || utl_tcp.crlf ||
'To: ' || msg_to || utl_tcp.crlf ||
'Subject: ' || msg_subject ||
utl_tcp.crlf || msg_text);
utl_smtp.quit(c);
EXCEPTION
WHEN UTL_SMTP.INVALID_OPERATION THEN
dbms_output.put_line(' Invalid Operation in Mail attempt
using UTL_SMTP.');
WHEN UTL_SMTP.TRANSIENT_ERROR THEN
dbms_output.put_line(' Temporary e-mail issue - try again');
WHEN UTL_SMTP.PERMANENT_ERROR THEN
dbms_output.put_line(' Permanent Error Encountered.');
END;
http://www.oracleutilities.com/Packages/utl_smtp.html

Similar Messages

  • Send mail from database

    Hi, i am trying to send mail from database i have create a database in mysql and the program will retreive the email and send it to the person.
    I have set the classpath in my window 98.
    But still cannot run
    Below is my source code;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.net.*;
    import java.text.*;
    import java.io.*;
    public class Emailer
         public static void sendMessage( String title,
         String email1,String email2, String message1)
         throws Exception     
    try
    String host = "192.9.201.28";
    Properties props = new Properties();
    props.put("mail.smtp.host", host);
    Session session = Session.getInstance(props, null);
    Message msg = new MimeMessage(session);
         InternetAddress [] address = null;
    address = InternetAddress.parse(email1);
         InternetAddress [] ccaddress = null;
         ccaddress = InternetAddress.parse(email2);
         String mailsenderaddr = "[email protected]";
         msg.setFrom(new InternetAddress(mailsenderaddr));
         msg.setRecipients(Message.RecipientType.TO, address);
         System.out.println(email1);
         msg.setRecipients(Message.RecipientType.BCC, ccaddress);
         System.out.println(email2);
         msg.setSubject(title);
         System.out.println(title);
         msg.setSentDate(new java.util.Date());
         msg.setText(message1);
         System.out.println(message1);
         Transport.send(msg);
    System.out.println("Mesage Send");
    catch (MessagingException mex)
    System.out.println("msg err:"+mex);
         public static void main(String[] argv) throws Exception     
         try {
         System.out.println("Loading Driver (with Class.forName)");
         Class.forName ("org.gjt.mm.mysql.Driver");
         System.out.println("Getting Connection");
         Connection conn = DriverManager.getConnection (
         "jdbc:mysql://192.9.201.40/test?user=testid&password=testpwd");     // user, passwd
         System.out.println("Creating Statement");
         Statement stmt = conn.createStatement();
         System.out.println("Executing Query");
         ResultSet rs = stmt.executeQuery("SELECT * FROM Reminder where Date_Remind='20050406'");
         System.out.println("Retrieving Results");
         int i = 0;
         while (rs.next()) {
              String title = rs.getString("Title");
              String message1 = rs.getString("Message");
              String date_remind = rs.getString("Date_Remind");
              String email1 = rs.getString("Email1");
              String email2= rs.getString("Email2");
    System.out.println("ROW " + ++i + ": " +
    title + "; " message1 ";" + date_remind + "; " + email1+ ";" + email2+ ";");
              sendMessage ( title, email1,email2, message1);
              rs.close();          // All done with that resultset
              stmt.close();     // All done with that statement
              conn.close();     // All done with that DB connection
         } catch (ClassNotFoundException e) {
                   System.out.println("Can't load driver " + e);
         } catch (SQLException e) {
              System.out.println("Database access failed "+ e);
    But there are still error in the following:
    msg error: javax.mail.NoSuchProviderException: No provider for SMTP
    Please help..
    Thank you

    Can you print the error message your getting. Are you able to print date_reminder, email1, email2 from your db.

  • Send mail from windows server 2008

    Hi all,
    I have developed one web application on windows xp platform, which will send mails on request (using javamail api).
    But it is not able to send mails from windows server 2008, what should I do .. ?
    Thanks & Regards,
    Abel

    Thanks for reply.
    Here my answers for above questions :
    The web application which is deployed in the server is not able to send mails.
    I'm not getting any exceptions.
    I don't know what the protocol trace show.
    I don't know how to debug my application, which was working fine in my development environment,but giving error result(not working fine in deployed system).
    Regards,
    Abel

  • Problem in sending mail from database with attachment

    Hi All,
    I amd using forms10g,oracle10g
    I am facing a error while running a procedure to send mail from db
    procedure is:
    declare
    ErrorMessage VARCHAR2(4000);
    ErrorStatus NUMBER;
    -- enable SQL*PLUS output;
    --SET SERVEROUTPUT ON
    -- redirect java output into SQL*PLUS buffer;
    --exec dbms_java.set_output(5000);
    BEGIN
    ErrorStatus := SendMailJPkg.SendMail(
    SMTPServerName => '192.168.4.2',
    Sender => '[email protected]',
    Recipient => '[email protected]',
    CcRecipient => '',
    BccRecipient => '',
    Subject => 'hth106: Test JavaMail',
    Body => 'This is the body: Hello, this is a test that spans 2 lines',
    AuthReqdYNNum => 1,
    UserID => 'jagan',
    Password => 'songbirds',
    ErrorMessage => ErrorMessage,
    Attachments => SendMailJPkg.ATTACHMENTS_LIST('C:\oramail\MHTHSO_GEN45.html')
    END;
    while running this procedure i am receiving following error
    "ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IncompatibleClassChangeError"
    but the same procedure sending mail from all other user in the same database
    I am very myuch confused.i have given the all rights
    below mentioned rights are given .it is working in all other user on the same db except this user "hth106". And all the othere things are compared between working user and this hth106 user every things are same.But i am receiving error when i sending mail with attachment if the mail is sending without attachement it is working fine
    below rights are given to this user
    1.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read');
    2.exec dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','write');
    3.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','connect');
    4.exec dbms_java.grant_permission('HTH106','java.net.SocketPermission','*','resolve');
    5.exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','read');
    exec dbms_java.grant_permission('HTH106','java.io.FilePermission','C:\oramail\*','write');
    6.call dbms_java.grant_permission('HTH106','java.net.SocketPermission','HTHDS01','resolve');
    7.call dbms_java.grant_permission('HTH106','java.util.PropertyPermission','*','read,write');
    7.call dbms_java.grant_permission('HTH106', 'java.io.FilePermission','C:\oramail\*','read');
    please advise me to proceed further
    Thanks in advance
    Thanks ,
    Antony

    With respects to the following:
    The bit you'll have most diffulty with is the attachment, because you can't be sure that
    the directory path specified is one that the database can read from. You can probably
    resolve this by using some java to move the file to a directory which utl_file can see.Another alternative is to specify a location on then database server where all file attachments MUST be copied to and the define and Oracle DIRECTORY (CREATE OR REPLACE DIRECTORY [dir_name] AS '/dir/name/on/files/system';) that references this location. When you attach a file to an email, then you only have to refer to the DIRECTORY for the file location.
    Just my 2 cents on the topic. :-)
    Craig...

  • Sending Mail from EBP Server

    Hi,
    I am trying to send external mail from EBP server through the function module SO_NEW_DOCUMENT_ATT_SEND_API1. I have passed similar kind of values to the parameter which I have used for R/3 while using the same function module. In R/3 server the function module is working fine but not in EBP. I am new in EBP. Does this function module work fine in EBP ? If not can someone provide me any Function Module name through which I can send external mail ?
    Thanks in advance,
    Achirangshu

    Hi,
      Try the FM "SO_DOCUMENT_SEND_API1".
    BR,
    Disha.
    Pls reward points for helpful answers.

  • Sending mail from database

    I am trying to send mail from the database and get the following
    error. How do I make sure that the class mentioned in the error
    message is installed properly in the database? The db ver is
    8.1.7.
    SQL> exec send_mail_tcp
    (msg_to=>'[email protected]' ,msg_text=>'Message from db');
    BEGIN send_mail_tcp
    (msg_to=>'[email protected]' ,msg_text=>'Message from db'); END;
    ERROR at line 1:
    ORA-29540: class oracle/plsql/net/TCPConnection does not exist
    ORA-06512: at "SYS.UTL_TCP", line 537
    ORA-06512: at "SYS.UTL_TCP", line 199
    ORA-06512: at "ADSL.SEND_MAIL_TCP", line 10
    ORA-06512: at line 1

    The most likely explanation os because the Jserver is not
    installed properly. Some versions of the script didn't call
    initplsj.sql so try running this manually (as SYS) - it's in the
    $ORACLE_HOME/rdbms*/admin directory. If that doesn't solve your
    problem trying using loadjava to load plsql.jar.
    rgds, APC

  • Cannot send mail from newsletter server and Server error: Unable to relay

    We have newsletter server. Sometimes we sent mail by our exchange 2010 server. But recently we are unable to send mail to external mail server. we sent mail by newsletter server within a domain now. We need to solve. Pls. check below log file and provide
    how to solve it.
    Sender ID: [email protected]
    our domain: www.silkways.net
    LOG:
    Status Msg : The email details entered successfully into the database.
    Status Msg : The email details entered successfully into the database.
    Access Level : 1
    MAIL SENT TO : [email protected]
    FAILED TO SEND MAIL TO : [email protected]
    Error : SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 5.5.2 Sender already specified
    </p>
    FAILED TO SEND MAIL TO : [email protected]
    Error : SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 5.5.2 Sender already specified
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 4.7.0 Too many errors on this connection, closing transmission channel
    </p>
    FAILED TO SEND MAIL TO : [email protected]
    Error : SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 5.5.2 Sender already specified
    </p>

    Hi,
    Since you are able to send emails to internal domain i assume the application server IP address already allowed into Receive Connector.
    To relay application emails to external domain you should enable Externally Secured box in the Authentication Tab of the particular Receive Connector.
    Kottees :My Blog Please mark it as an answer if it really helps you.

  • TS3276 Anyone having problems sending mail from Os X10.7.2?

    Anyone having problems sending mail from Os X10.7.2?
    i have Mac book pro,  I mac Desk top and i pad:All can receive mail but not send. I have checked and re checked set up etc No luck
    Thx

    Hi Ernie,
    Sorry I don't understand the first question :{
    Connection Doctor says everything is connected. i can send mail from the server's own web site ,just not from the Apple Mail program.
    The problem did begin when I was travelling from one hotel to another.
    Any ideas?
    Susan

  • Send Mail from webmail interface, appearing to be from gmail account

    I thought this topic came up during the .mac/mobileme debacle that occurred a while back, but i can't find anything about it. Here is my scenario. I use my .mac address as my main email address and use aliases for website signups, etc. -- anywhere i don't want to give out my "good" address. However, i am in the middle of job searching and have created a new gmail address specifically for that - it keeps things cleaner and allows me to give out a very specific address -- in the past i've found my email ends up earning me spam when job searching. So here's what i want to do. I want to be able to send/receive mail from my Mail application AS WELL AS the mobile me webmail -- is this possible? so that when a potential employer gets the email it is from my "job search address" but allows the convenience of a single hub (versus logging into gmail separately from my mobilme.
    Any suggestions? Thanks in advance for your thoughts - i really appreciate it!

    You can't send mail from the MobileMe web client that appears to be from Gmail. You could send email from Gmail via Mail, which is quite easy and you would not have to pretend that it's from somewhere else. And if someone sends you an email related to your job search, you can receive it via Mail and then BCC it to your .Mac account.
    Mulder

  • Send mail from Enterprise Linux

    We have a couple of servers running Enterprise Linux v5.3. What we want is to be able to send mail from those linux servers to internal and external mail adresses. In SuSE it is fairly simple to configure your MTA but Enterprise Linux I cannot find where to configure a outgoing mailserver. I don't want the configure the servers as a mail server but simply be able to send mails from those server.
    Can someone help me?
    Cheers,
    Wierd van der Haar

    Since OEL is a derivative of RedHat (even the numbering scheme matches), and since RedHat Enterprise is derived from Fedora, you could use web searches to find out how to do this by referencing the search to RedHat or Fedora insteadd of Oracle ENteprise Linux.
    That said, the apporpriate place to ask such a question is where the Linux people hang out. Click on "Forum Home" at the top of the page, scroll down to "Linux" (in the "Technology" category) and ask there. Since the inhabitants of that corner all deal with Linux the probability of getting a useful answer is much higher than here.
    http://www.joreybump.com/code/howto/smtpauth.html
    http://linuxhelp.blogspot.com/2005/06/change-your-mail-transport-agent-mta.html
    http://www.experts-exchange.com/OS/Linux/Administration/Q_22038591.html
    http://cr.yp.to/qmail.html
    are 4 useful responses to Google query "redhat configure outgoing mta"

  • Send mail from my oracle database

    I want to send mail from my oracle database.
    I have followed the steps below:
    1> Run utlmail.sql & prvtmail.plb
    2>set smtp_out_server parameter
    3>To send mail, execute utl_mail.send(sender=>'',recipients=>'',message=>'ABC');
    My concept is to provide smtp/mail server ip & port in smtp_out_server parameter's value.
    But One person said that oracle database server can make itself as a smtp server.So that we can assign database server ip & port in smtp_out_server parameter's value.We have to just on the smtp service in oracle database itself.There is no requirement of smtp/mail server ip & port.Is it true?How can we do that?
    In google to Add an SMTP Service,the document said in the 1st line that on the Services tab on the left, select a Process tree node (for example, the default Oracle Enterprise Gateway).
    I am sorry to say that I did not find that.Anyone can help me please?
    Please reply anyone.

    979620 wrote:
    But One person said that oracle database server can make itself as a smtp server.So that we can assign database server ip & port in smtp_out_server parameter's value.We have to just on the smtp service in oracle database itself.There is no requirement of smtp/mail server ip & port.Is it true?How can we do that?Not true - I cannot recall ever seeing a native service in the Oracle database that acts as a SMTP server.
    PL/SQL code can only create and use tcp client sockets via UTL_TCP. A tcp server socket is needed for a SMTP server.
    The Oracle database also does not listen and accept incoming client tcp connections - the Oracle Listener does that (separate process/layer).
    The Oracle database instance registers the services it has available with the Listener. There are 3 basic type of services that the instance will register:
    - dedicated services (supporting Oracle client connections)
    - dispatchers for shared services (supporting Oracle client connections)
    - http/ftp services (supporting XMLDB WebDav, WebService and EPG servlets access for web based clients)
    There is no support for a SMTP service.
    You can install SMTP server s/w on the same platform as the Oracle server s/w. You may even (via Oracle Collaboration services I think) use the Oracle database for mail drops and mail boxes (storage). But I have not yet seen an actual SMTP server running as PL/SQL or Java code inside a database instance as a database server process.

  • TS4291 I can't send mail from my iPad apps, I just get the error message, 'The recipient- was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    I can't send mail from my iPad apps, I just get the error message, 'The recipient… was rejected by the server because it does not allow relaying.' Does anyone know what this means and how to fix the problem.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Using a POP account with multiple devices
    http://support.apple.com/kb/ht3228
    iOS: Adding an email account
    http://support.apple.com/kb/HT4810
    iOS: Setting up an Outlook.com, Hotmail, Live, or MSN email account
    http://support.apple.com/kb/ht1694
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    How to Sync Contacts with Your iPad Using iTunes
    http://www.dummies.com/how-to/content/how-to-sync-contacts-with-your-ipad-using- itunes.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    eMail Groups - You can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • How do I specify the gmail outgoing server if I have multiple gmail accounts in my mail? I have 2 business accounts and when I send mail from one account, it is sent from the other account and the sending email is not from the correct account.

    I love my apple email and do not want to use google mail on safari. However, I have 2 gmail accounts set up on apple mail, but when I send mail from one of my gmail accounts (I choose the specific gmail account in the drop down window), it actually goes out as if it is from the other gmail account. I can't have that happen because one is my job, the other is a personal business account and unfortunately, the mail from both gmail accounts want to send through the personal business account. How do I make it send from a specific gmail account? I even tried deleting the accounts and setting them up again hoping I set it up wrong in the first place, but to no avail, it is still doing the same thing except this time I set the job account up first and then the personal business account and now everything goes from the job account! The only good thing is that the incoming messages work properly and they go into the correct inbox. Somebody please fix my outbox!

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • How to send mails from Oracle database

    Hi All,
    I want to send a mail from my oracle database once my store
    procedure runs successfully or fails.
    How can i do this.
    what are the preliminary modules of Oracle which need to be
    active for me to do so.
    If any once can also mention about any links that give
    information about the same it will be very helpful for me.
    Thanks and Regards
    Srinivas Chebolu

    CREATE OR REPLACE PROCEDURE SEND_MAIL_TCP(
    msg_from varchar2 := '[email protected]',
    msg_to varchar2,
    msg_subject varchar2 := 'E-Mail message from your database',
    msg_text varchar2 := '' )
    IS
    c utl_tcp.connection;
    rc integer;
    BEGIN
    c := utl_tcp.open_connection('1.17.0.218', 25); -- open the SMTP
    port 25 on local machine
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'HELO localhost');
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'MAIL FROM: '||msg_from);
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'RCPT TO: '||msg_to);
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'DATA'); -- Start message body
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'Subject: '||msg_subject);
    rc := utl_tcp.write_line(c, '');
    rc := utl_tcp.write_line(c, msg_text);
    rc := utl_tcp.write_line(c, '.'); -- End of message body
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    rc := utl_tcp.write_line(c, 'QUIT');
    dbms_output.put_line(utl_tcp.get_line(c, TRUE));
    utl_tcp.close_connection(c); -- Close the connection
    EXCEPTION
    when others then
    raise_application_error(-20000,'Unable to send e-mail message
    from pl/sql');
    END;
    show errors
    exec send_mail(msg_to =>'[email protected]');
    exec send_mail(msg_to
    =>[email protected]',msg_text=>'Look Yaar, I can send
    mail from plsql');

  • Error: Not able send mail from OWA 2010. When I send mail, the mails go to Drafts Folder.

    Error: Not able to send mail from OWA 2010. When I send mail, the mails go to Drafts Folder. I have installed everything correctly but when I tried to open the OWA and trying to send mail from OWA. The mails do not deliver and mails become saved in Drafts folder. I tried to re-send messaged from Draft also but not able to send. 
    Screen Shot: http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/Error%20-%20Not%20Able%20to%20Send%20Mail%20from%20OWA%202010.docx
    Scenario: I have below configuration of exchange 2010 server Setup:
    1. Windows Domain Controller with Global Catalog on Windows Server 2008 which only for Windows 2008 Server Native.
    Server Name: WDC2010
    Domain: Blazex.Com
    2. Hub/Client Access Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Hub/Client Access Exchange role servers.
    Server Name: HC2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Hub and Client Access Server.
    3. Mailbox Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Mailbox Exchange role servers.
    Server Name: MBX2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Mailbox Server.
    4. 2nd  Mailbox Server: It is installed on Windows Server 2008. As per Microsoft recommendation, I have just installed Windows Server 2008 and then join this computer to Blazex.com.
    After that installed the Mailbox Exchange role servers.
    Server Name: 2MBX2010.blazex.com (This is not a Addition Member server or ADC)
    Role: Mailbox Server.
    5. Client Windows 7: It is installed on Windows 7 Ultimate Workstation. As per Microsoft recommendation, I have just installed Windows 7 and then join this computer to Blazex.com.
    Workstation Name: WIN7.blazex.com
    Role: Workstation
    Error Description: I have installed everything correctly but when I tried to open the OWA and trying to send mail from OWA. The mails do not deliver and mails become saved in Drafts folder. I tried to re-send messaged from Draft also but not able to send. 
    Screen Shot (Same As Above): http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/Error%20-%20Not%20Able%20to%20Send%20Mail%20from%20OWA%202010.docx
    I don't know what I am missing but I think there is some configuration I need to do on Hub/Client Access Server (HC2010).  I tried to access the mailbox on XP Client system through OWA. I get the same problem as Win7.
    Can someone please help me on this?
    Thanks and Regards
    Shambhu

    Hi Subhash,
    I have done the troubleshooting but I didn't find any problem at server side. I will send you mail also with all EXBPA report and as well DC, HC and Mailbox servers' Application Log and System Log.
    Below are the questions's answers which was asked by you:
    1.     Please check whether you can send email via Outlook.
    I am not able to open the MS Outlook. Please check all details in this thread : http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c491c5c7-7d6f-48ff-97fa-6bf83d94e53c
    2.     Please run EXBPA to have a health scan.
    I have run the EXBPA and didn't see any critical Problem. I have took the screen shot and report. Please have a look in below screen shot link:
    a. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/EXBPA.docx                                                                            - Final Report
    b. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.BaseLine.200906270226501077.data.xml                        - Baseline Health Check
    c. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Connectivity%20Test.200906270223318201.data.xml      - Connectivity Check
    d. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Health%20Check.200906270125477730.data.xml            - Health Check with 2 Hr. Baseline option
    e. http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/ExBPA.Permission%20Check.200906270224343377.data.xml      - Permission Report
    The error which I received in EXBPA, that allready ignored by you and told that it is bug in EXBPA. Have a look here: http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/d4bb03bb-db84-4a8b-83ba-19937d7dcacf
    3.     Please check application log, whether any error event logged there. They could come from ADAccess related error or etc.
    I didn't see any ADAccess event on the server. For this I have left my lab PC open and I will check again.
    4.     We find that if mail .que gets corrupt, then this issue will occur, please try to move the affected user to another store and then test the issue.
    I am facing this problem with all users (7 users). Anyway I moved one user from one server Mailbox Database (2mbx2010) to Other Server Mailbox Database (mbx2010). After that
    a) Rebooted the Workstation
    b) Login successfully with same user.
    c) Delete the Old MS Outlook Profile
    d) Create New profile for same user without any problem.
    e) Tried to login in MS Outlook and got the same error. : http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c491c5c7-7d6f-48ff-97fa-6bf83d94e53c
    f) Open the OWA successfully for Same user.
    g) Tried to send mail but again mail went to Drafts Folder.
    5.     I noticed that you test the issue after you close outlook. I recommend you to reboot your pc and then access
    mailbox via OWA to test the issue.
    I tried you suggested option, but sorry it also couldn't help.
    6.  You also check your disk space.
         All Servers have Enough Disk Space. Check the EXBPA Report.
    7. You may run EXTRA to get log information for further troubleshooting.
      Need more time for this.
    8. Please save application log, system log as *.evt file, then send them with EXTRA,EXBPA report to [email protected] .
       I have sent it as your mentioned mail address OR, you can get the mentioned log from below link also:
       a) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/WDC2010%7C_APPLICATION.evtx           - DC/GC Application Log
       b) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/WDC2010%7C_SYSTEMEVENT.evtx          - DC/GC System Log
       c) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/HC2010%7C_APPLICATION.evtx              - Hub/Client Application Log
       d) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/HC2010%7C_SYSTEM.evtx                      - Hub/Client System Log
       e) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/MBX2010%7C_Application.evtx                - Mailbox Application Log
       f) http://cid-31ba948d0da4d57e.skydrive.live.com/self.aspx/.Public/MBX2010%7C_System.evtx                      - Mailbox System Log
    There will be some error log you will be that the system is not able to communicate with DC/DC, MBX or HC at everyday around 3 AM or some time 6 PM Evening also. These error came because I have installed VM on Windows 7 Workstation and after 45 min or one hrs. if I don't work on PC, then pc goes to sleep. so you may ignore these alerts.
    I hope my answer will give you some clue and I expect more help from your side.
    With Best Regards
    Shambhu Sharma

Maybe you are looking for