Sending Email via oracle to an Ooutlook shared Mailbox

I am attempting to send email from an access database using VB to an OUtlook shared mailbox and the email does not get sent. It does not generate an error message but the mailbox never receives the email. The email functionality works fine when sending to a private mailbox in Outlook using the same code. Here is what I am attempting to do:. Does anyone know if there is a setting within the shared mailbox that is preventing the email to be sent?
Public Function Send_Oracle_Email(Recipient_Emails As String, Email_Subject As String, Email_Message As String) As Double
'MsgBox "test"
On Error GoTo Send_Oracle_Email_Error
Dim strConn As String
Dim strCMD As String
Dim oConn As New ADODB.Connection
Dim cmdCommand As New ADODB.Command
Dim rsADO As New ADODB.Recordset
Dim intIndex As Integer
Dim strSentFrom As String
Dim objPara As ADODB.Parameter
' define the connection settings to the server
strConn = "DSN=CSD_PO_PMIS_BUS;Uid=csdmgr
'strConn = "DSN=CSD_PO_PMIS_trash;Uid=csdmgr
If IsMissing(Sent_from) Or Len(Trim(Sent_from)) < 3 Then Sent_from = "[email protected]"
' create and open a connection to the server
Set oConn = New ADODB.Connection
With oConn
.ConnectionString = strConn
.CursorLocation = adUseServer
.Mode = adModeRead
.open
End With
'define the command to be sent to the server
strCMD = "CSDMGR.PRC_SEND_EMAIL"
' create the command and it's provide it's settings
Set cmdCommand = New ADODB.Command
With cmdCommand
.ActiveConnection = oConn
.CommandText = strCMD
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter("Sender", adVarChar, adParamInput, 2000, Sent_from)
.Parameters.Append .CreateParameter("recipient", adVarChar, adParamInput, 2000, Recipient_Emails)
.Parameters.Append .CreateParameter("p_subject", adVarChar, adParamInput, 2000, Email_Subject)
.Parameters.Append .CreateParameter("message", adVarChar, adParamInput, 2000, Email_Message)
End With
'execute the command
Set rsADO = cmdCommand.Execute
'show the parameters after the call. The output parameters now how the values returned by the Stored Procedure!
'For intIndex = 0 To cmdCommand.Parameters.Count - 1
' Debug.Print cmdCommand.Parameters(intIndex).Name,
'cmdCommand.Parameters(intIndex).Value
'Next intIndex
'clean up
If cmdCommand.CommandType = adCmdText Then
If Not rsADO.EOF Then
rsADO.Close
End If
End If
oConn.Close
Set objPara = Nothing
Set cmdCommand = Nothing
Send_Oracle_Email = 0
Exit Function
Send_Oracle_Email_Error:
Send_Oracle_Email = Err.Number
'MsgBox Err.Description
Exit Function
End Function

I am attempting to send email from an access database using VB to an OUtlook shared mailbox and the email does not get sent.I guess I missed the part where Oracle is involved with your problem.

Similar Messages

  • Sending email via Oracle

    Hi Guys,
    I have a school project and i have to send an email via Oracle 10g database. I have read and tried a lot of codes but, non of them worked. Some infos says, install Java VM, JServer, JAccelerator, port 25, $ORACLE_HOME...... etc. Can anyone tell me what steps should i follow to send an email. Please i am very confused. I can't do it. I am new too. Also, i am not sure that my computer and oracle 10g needs any extra installation and configuration.
    Thanks

    Hi,
    I cannot install JServer and i have just checked that "C:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN" path doesn't include "initjvm" file.
    I tried to install Jserver with following "http://www.orafaq.com/faq/how_does_one_install_the_oracle_jserver_option" link.
    I have Java VM installed in my computer.
    When i install Oracle 10g, i have given "SYSTEM" as user name and "123456" as passw.
    What else can i do to enable Java things for utl_smtp.
    Thanks

  • Cannot send email via Hotmail through port 587 with Secure Connection (SSL) set

    Something is blocking my attempts to send email (with Outlook Express) via my hotmail.com account. The error I receive is as follows:
    Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'Hotmail', Server: 'smtp.live.com', Protocol: SMTP, Port: 587, Secure(SSL): Yes, Error Number: 0x800CCC0F
    When Hotmail.com first changed over to a POP3 server (Sept 2009), I could send emails through them using port 587, which they require. But then something happened, with no changes on my part, to disable my ability to send.
    I have checked and rechecked my Outlook Express account settings. I can send email through another third-party mail account (at 1&1 Internet.com) using port 587, which does not require setting SSL to yes. I can also ping the Hotmail SMTP server via port 587 and receive a response from it.
    I connect to Verizon DSL via a Westell 327W modem/router. Clearly it is not blocking port 587 without SSL. Does it have the capability to block SSL traffic? Or is the Verizon server the culprit, not allowing emails to be sent via Hotmail.com?
    Two different computers on my LAN have the same problem sending emails via Hotmail.com. I have tried everything the Hotmail people have suggested; at this point they think it is an ISP problem, hence this post. This problem doesn't make sense to me and is driving me crazy. Can anyone help me with this?
    Thanks.

    You can still have your reply address set to your hotmail address. And you don't have to really remember to do anything. Configure your client for the HOTMAIL account with Verizon's outgoing server. It will automatically send via Verizon. You don't reveal your verizon.net address, you are just using their server to transmit.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Have just installed ios8 on our iPad. Can no longer send emails via Hotmail. BT email says that if can't work on this device. When will these faults be fixed?

    Have just installed ios8 on our iPad. Can no longer send emails via Hotmail. BT email says that if can't work on this device.
    When will these faults be fixed?

    does it error out or does it just not go through?
    have you tried to delete and then re-add your hotmail address? Using the outlook preset

  • HT4061 since downloading IS07 I can no longer send emails via hotmail on my Iphone 5

    Since downloading IOS7 to my iphone 5 I can no longer send emails via my hotmail account  - receiving ok though.  How can I fix this?

    Chris
    thanks to your prompting, i found another mail icon that when touched requested a password. i now can send photos once again
    woohoo
    thanks again
    bpb

  • I can no longer receive or send email via my Yahoo account  from my iphone6.  I've downloaded several "help guides" from the internet and tried them, including deleting the Yahoo account and re-adding it via imap.  But nothing seems to work.  Any ideas?

    I can no longer receive or send email via my Yahoo account from my iphone6.  I've downloaded several "help guides" from the internet, deleted and re-added the account via imap settings.  Nothing seems to work.  Any ideas?

    Use the yahoo app if available?

  • Is anyone else having trouble sending email via O2 using Apple Mail (However, I can receive fine)

    Since the upgrade to Mountain Lion (OSX 10.8) I have noit been able to send email via Apple Mail through the O2 network in the UK. O2 say they are aware of this but that it is something that Apple need to address via a patch.

    Following a 45 minute call to O2 yesterday I've just had a further conversation with O2 who advised me to change my 'port setting' to 25. Mail now works fine! Panic over.

  • I can't send emails via mail. I can receive but not send. I have set up gmail on mail. Any ideas?

    I can't send emails via mail. I can receive but not send. I have set up gmail on mail. Any ideas? No problems with the set up previously to this.

    Go to Mail Preferences- Accounts and confirm you are providing Gmail what they require to send and receive mail. And DON'T specify Secure Socket Layer. Some mail accts don't like SSL
    Good Luck to you.

  • ACL error when sending email from Oracle 11g

    Hi,
    It returned something like "error...ACL security" when I tried to send email from Oracle 11g. Is there any security thing that I need to release in Oracle 11g? I used to send emails from Oracle 10g and didn't find any problem.
    Thanks.
    Andy

    In Database 11g Oracle introduced Network Access Control Lists (ACLs) to protect the database from users using the many internet-capable packages such as UTL_INADDR, UTL_HTTP, UTL_TCP, etc.
    Read all about it in the docs and look at the code demos here:
    http://www.morganslibrary.org/library.html
    under DBMS_NETWORK_ACL_...

  • Gmail taking ages to send email via mail app

    I bought a MacBook air yesterday and set up my gmail account on the mail app. Everything seemed to be working okay at first but now it's takkng at least five minutes to send a plain text email, one email I tried sending last night didn't send until this morning! I tried changing the SSL port to 25, 465 and 587 not only do they not work but then it stops my mail from moving into the folders or trash, they move and then go back to my inbox.
    Please help!

    Stephen Schulte2 wrote:
    When I am in a hotel out of town or overseas- or just anywhere where I don't have my home ISP - how can I not only RECEIVE but also SEND eMail via my Mail program?
    If your ISP is like mine, it authenticates you for outgoing e-mail by being able to determine that you're accessing the Internet from within their network. If your ISP is so configured, they'll offer the ability to authenticate to their SMTP server with a password. My ISP does not.
    However, MobileMe does provide its own authenticating SMTP server that you should be able to use from anywhere. Try an SMTP server of smtp.mac.com (smtp.me.com will probably also work) with settings of "Use default ports", "Use Secure Sockets Layer (SSL)", and "Authentication" by password, your "User Name" the part of your MobileMe ID before the "at" sign, and your password your MobileMe password.
    For non-MobileMe outgoing e-mail, you'll need to locate an SMTP server that you can use.
    Also: Anyway to attach more than 1 file (say photo) at a time using MobileMe and my mail account? For 22 small photos do I have to hit attach each time? I can't seem to select the folder they are in and get all 22 to attach...
    I haven't tried that, but I would expect to have to attach them one at a time.

  • HT201320 I have an Apple Ipad.  I was having problems receiving and sending emails via my yahoo email account.  I deleted the account and then tried to install it but it won't connect to server. Could you let me know what I do please?

    I have an Apple Ipad.  I was having problems receiving and sending emails via my yahoo email account.  I deleted the account and then tried to install it but it won't connect to server. Could you let me know what I do please?

    I think you have to turn off Private Browsing.
    Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off.
    http://i1224.photobucket.com/albums/ee374/Diavonex/547958b4a8c01ac084dd6649e8386 a0f_zps12fa0cca.jpg

  • How to sending email from Oracle 6i(Forms)

    How can I send email from Oracle Forms(6i).
    I need to send email to a distribution list(multiple email addresses).

    send email of multiple email address
    [email protected],[email protected],[email protected]
    create or replace function mailout
    (sender in varchar2,
    recipient in varchar2,
    ccrecipient in varchar2,
    subject in varchar2,
    message in varchar2) return number
    is
    crlf varchar2(2) := chr(13)||chr(10);
    connection utl_smtp.connection;
    mailhost varchar2(50) := 'Add email server Ip Address here';
    header varchar2(4000);
    v_num number :=1;
    str number:=0;
    email varchar2(50);
    begin
    connection := utl_smtp.open_connection(mailhost,25);
    header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
    'From: '||sender||' '||crlf||
    'Subject: '||subject||crlf||
    'To: '||recipient||crlf||
    'Cc: '||ccrecipient||crlf||message;
    utl_smtp.helo(connection,mailhost);
    utl_smtp.mail(connection,sender);
    utl_smtp.rcpt(connection,recipient);
    while (instr(ccrecipient,',',1,v_num)>0) loop
    email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
    dbms_output.put_line(email);
    utl_smtp.rcpt(connection,email);
    str:=instr(ccrecipient,',',1,v_num);
    v_num:=v_num+1;
    end loop;
    utl_smtp.open_data(connection);
    -- utl_smtp.write_data(connection,header);
    utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
    utl_smtp.close_data(connection);
    utl_smtp.quit(connection);
    return 0;
    exception
    when utl_smtp.invalid_operation then
    dbms_output.put_line('Invalid Operation in SMTP transaction');
    return 1;
    when utl_smtp.transient_error then
    dbms_output.put_line('Temporary problem with sending email ');
    return 2;
    when utl_smtp.permanent_error then
    dbms_output.put_line('Permanent problem with sending email ');
    return 3;
    end;

  • Cannot receive/send emails via Mail on Mac using 10.6.8, keeps asking for password, very frustrating. Any ideas please? Regards

    Cannot receive/send emails via Mail on Mac using 10.6.8, keeps asking for password, very frustrating. Any ideas please? Regards

    One more time, iCloud mail accounts are .me, .mac and .icloud. New ones are only .icloud.
    iCloud mail is a standard Imap account that can be used with any mail client in existence. But You are talking about the ability to automatically setup an iCloud account in mail, which did not exist until 10.7.2.
    You can use password or token authentification with iCloud mail (in Mail) it is your choice.
    Set the account manually, set it as Imap, use imap.mail.me.com (no P number) for the incoming email and smtp.mail.me.com as the outgoing server.
    The full settings (ports and security) are here. Use them and it will work, regardless of domain (mac, me and icloud addresses all use the same settings.
    IMAP (Incoming Mail Server) information:
    Server name: imap.mail.me.com
    SSL Required: Yes
    Port: 993
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    SMTP (outgoing mail server) information:
    Server name: smtp.mail.me.com
    SSL Required: Yes
    Port: 587
    SMTP Authentication Required: Yes
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    Note: If you receive errors using SSL, try using TLS instead. SSL is required for both IMAP and SMTP connection with iCloud. POP is not supported by iCloud. 
    For more information on how to use this information with your email application, consult your application's documentation.

  • Cannot send emails via at&t

    I have at&t internet and cannot send using my at&t email.  I can send via gmail.  Or if I go use someone elses internet, not being at&t, I can send. At&t said it is a mac issue. I told them it is their issue with macs since I can send using other providers.
    Anyone know of a fix?

    Does not help.. my problem is a little different
    I have an iMac and I cannot send emails via outlook 2011. I have 3 emails stuck in the sent box... They are not in my sent or inbox. Every time I send an email it first tries to send these 3 mails. for 2 I get an error code 3210 and for one "5.1.2 or other punctuation after the recipient's email address. g5sm23942864eem.4". I have an euronet account and not a hotmail account.

  • Cannot send emails via outlook 2011

    I have an iMac and I cannot send emails via outlook 2011. I get an error code 3210. Can anyone help?

    Does not help.. my problem is a little different
    I have an iMac and I cannot send emails via outlook 2011. I have 3 emails stuck in the sent box... They are not in my sent or inbox. Every time I send an email it first tries to send these 3 mails. for 2 I get an error code 3210 and for one "5.1.2 or other punctuation after the recipient's email address. g5sm23942864eem.4". I have an euronet account and not a hotmail account.

Maybe you are looking for

  • Use .cs & .vb files in teststand

    Hi I have lot of code in C# and VB i can use with this code in TestStand ? please send me information and example how i can doit Thank you Ran s 

  • Setting Up Cable Box for Surround Sound

    I have a Pace Set Top box, the T-7900 speakers and the Audigy 2 ZS. The Pace box has a left and right output and a digital optical output. Is there anyway of setting up this system to enable surround sound? I could obtain a 3.5mm converter to connect

  • Screen capture video flickers . . .

    I have screen capture footage from a client that's a .wmv file:    1024x768    15fps    Square pixels    Progressive When I create a DVD from the footage I get occasional flicker. This isn't just the "thin horizontal lines" issue that I'm well aware

  • Regarding BADI implementation in Debugging

    Hi,    i have a doubt regarding BADI.There are multiple badi implementations for VA02 transaction. now i am processing the VA02 transaction. Can i know which implementation is processing for the transaction.

  • SD basic questions

    Hi, Can anyone explain me the concepts of these in SAP 1) Pick List 2) Serial Number assignment using delivery and PGI 3) ATP check and inventory update, schedule lines Thanks Ricky