Sending email through a public folder from Oracle forms 6i

Hi,
I have read a lot about this topic but still can't seem to figure out how to send a email from a public folder that I have access to. I am logged on as myself into Outlook and I have access to a public folder. When I send a email with attachments to a client it MUST show the public folder email address as the "FROM'. How can I get outlook to stop defaulting to my email? I have the proper rights and so forth meaing I can send a test email logged onto this folder and user cc,bcc, BUT not the FROM field.
Here is my code:
Declare
objOutlook OLE2.OBJ_TYPE;
objMail OLE2.OBJ_TYPE;
objArg OLE2.LIST_TYPE;
objArg2 OLE2.LIST_TYPE;
objAttach OLE2.OBJ_TYPE;
nameSpace OLE2.OBJ_TYPE;
args OLE2.LIST_TYPE;
BEGIN
objOutlook := OLE2.CREATE_OBJ('Outlook.Application');
args:=OLE2.create_arglist;
OLE2.add_arg(args,'MAPI');
nameSpace:=ole2.invoke_obj(objOutlook,'getNameSpace',args);
OLE2.destroy_arglist(args);
OLE2.invoke(nameSpace,'Logon');
objarg := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(objarg,0);
objMail := OLE2.INVOKE_OBJ(objOutlook,'CreateItem', objarg);
OLE2.DESTROY_ARGLIST(objarg);
objAttach := OLE2.GET_OBJ_PROPERTY(objmail, 'Attachments');
objarg := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(objarg,'c:\Jan28.txt');
objarg2 := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(objarg2,'c:\2011_1.pdf'); -- filename
OLE2.SET_PROPERTY(objmail,'FROM','[email protected]');
OLE2.SET_PROPERTY(objmail,'To','[email protected]');
OLE2.SET_PROPERTY(objmail,'Bcc','[email protected]');
OLE2.SET_PROPERTY(objmail,'Subject','Email sent from Oracle Forms 6i');
OLE2.SET_PROPERTY(objmail,'Body','Testing email FROM');
OLE2.INVOKE(objattach, 'Add', objarg);
OLE2.INVOKE(objattach, 'Add', objarg2);
OLE2.INVOKE(objmail,'Send');
OLE2.RELEASE_OBJ(objmail);
OLE2.RELEASE_OBJ(nameSpace);
OLE2.RELEASE_OBJ(objOutlook);
OLE2.DESTROY_ARGLIST(objarg);
END;
Please let me know why OLE2.SET_PROPERTY(objmail,'FROM','[email protected]');
does not work. And how I can get it to work?
Any suggestions much appreciated...

You can send emails using the utl_smtp package. There are many examples in the pl/sql forum, or on http://asktom.oracle.com.

Similar Messages

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • Sending email from Oracle Forms with attachments

    Hi,
    Is there any package or option available in Oracle forms to send email with attachments?
    Your reply will be highly appreciated.
    Regds,
    noneda

    There are a couple of ways to send email (with attachements) from Oracle Forms. Check out these links to some examples.
    using OLE2 or CLIENT_OLE2 to access a mail-client via Mail-Api ( Get and set Outlook properties )
    using MAILTO in conjunction with HOST or CLIENT_HOST to "start" a mail-client ( Re: Open Microsoft Outlook new massage with TO containing the email address )
    using UTL_SMTP for database-side-mailing ( Re: Send mail with attachment )
    Hope this helps,
    Craig...

  • Emails going to spam folder from Office Outlook

    I have configured an Exchange for my domain for learning purpose. When i am sending emails to my Google Account account using OWA or iPhone(Exchange account) the mails are coming in Inbox, but when i am sending emails through Office Outlook the emails are coming
    in SPAM folder of my Google Account. Kindly suggest me the solution for this problem, thanks in advance.

    Hi
    I set it up today itself, so no chance of bad reputation(below result). This is happening when only i am sending email to my Google from Office Outlook. When i use OWA & iPhone(Exchange Active Syn) its coming in Inbox.
    This is same with Hotmail but not with Yahoo mail.
    I tried it with my another primary domain i can receive in Inbox.
    MXToolbox : blacklist
    Checking mydomain.com which
    resolves to xxx.xxx.xxx.xxx against 103 known
    blacklists... 
    Listed 0 times
    with 1 timeouts 
    Kindly suggest if any configuration requirements are to be done.
    Thanks and regards
    Mohammed Ismail Shareef

  • Send email through human task in bpel

    hi everybody,
    I am badly stuck in sending email through human task using bpel.
    I have used reminder facility and enabled send email in .task file.but no email
    is sent so anyone please help me out and please provide me with full detailed solution what I have to do like change any xml file setting etc.
    Also I was trying to send email using email activity by changing the ns_emails.xml in .........bpel/systems/services/config & in .......integration/esb/config but I was not succeeded. So please provide me with complete solution like what parameters to pass in smtp server,port no,protocols etc and which file to change in which directory. my work is pending just because of this.
    I would be very grateful to you.
    thanks in advance.
    mansoor.

    Hi mansoor,
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="EMAIL">
         <EmailAccount>
              <Name>Default</Name>
              <GeneralSettings>
                   <FromName>BPEL POC</FromName>
                   <FromAddress></FromAddress>
              </GeneralSettings>
              <OutgoingServerSettings>
                   <SMTPHost>mail.oracle.com</SMTPHost>
                   <SMTPPort>25</SMTPPort>
              </OutgoingServerSettings>
              <IncomingServerSettings>
                   <Server>mail.oracle.com</Server>
                   <Port>993</Port>
                   <Protocol>IMAP</Protocol>
                   <UserName>xxxxxx</UserName>
                   <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService"></Password>
                   <UseSSL>false</UseSSL>
                   <Folder>Inbox</Folder>
                   <PollingFrequency>1</PollingFrequency>
                   <PostReadOperation>
                   <MarkAsRead/>
                   </PostReadOperation>
              </IncomingServerSettings>
         </EmailAccount>

  • Can only access emails through OWA after migration from exchange 2007 to 2013

    can only access emails through OWA after migration from exchange 2007 to 2013, in other words unable to access mails through outlook or from other Applications services.
    needed RCA ... plz help..

    Hi,
    From your description, you can send and receive messages only when you use OWA after migration from Exchange 2007 to Exchange 2013. If I have misunderstood your concern, please let me know.
    In your case, I recommend you create a new test mailbox in your Exchange 2013 and check if you can send and receive messages on Outlook. If yes, it is recommended to create a new profile to solve this issue.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Cannot send email through yahoo on iPad 4, apple.smtp.mail.yahoo not available as of December 1, 2012

    I am unable to send emails through yahoo on my ipad 4 wifi, just starting over the weekend. My 3 other non-yahoo email accounts are working fine on my ipad. When I try to send an email from the yahoo account, I receive the message that the connection to the outgoing mail server "apple.smtp.mail.yahoo" failed. I can send email through yahoo just fine on the web and on my computer through Thunderbird.

    Yahoo's been having persistently random issues for months. You can try just waiting it out, or delete and readd your yahoo account. When my accounts were affected I just used webmail to access my yahoo accounts until it cleared up.
    Chances are it's all on their end and really all you can do is wait it out.

  • How to send a mail with HTML body from Oracle

    Hi Team,
    Can somebody guide me how to send a mail with HTML body from oracle.
    Here is the piece of code i am trying to send a mail.
    procedure SEND_MAIL is
    cursor c_1 is select * from table_name;
    l_mail_id varchar2(40);
    -- ls_mailhost VARCHAR2(64) := Mailhost;
    ls_from VARCHAR2(64) := ‘[email protected]
    ls_subject VARCHAR2(200);
    ls_to VARCHAR2(64);
    l_mail_conn UTL_SMTP.connection;
    ls_left_menu_name VARCHAR2(64);
    ll_emp_num number(8);
    begin
    for i in c_1 loop
    begin
    l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
    UTL_SMTP.HELO(l_mail_conn, 'IP');
    UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
    UTL_SMTP.RCPT(L_mail_conn, LS_TO);
    UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
    'To: ' ||ls_to || utl_tcp.crlf ||
    'Subject: ' ||ls_subject|| utl_tcp.crlf);
    UTL_SMTP.QUIT(l_mail_conn);
    exception
    when no_data_found then
    null;
    when others then
    RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
    end;
    end loop;
    end;
    Thnx

    Hi Nicolas!
    Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
    If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
    SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
    Hope this helps!
    Regards
    Geir

  • HT1694 Can't send emails through Hotmail account

    This just started.  I can receive emails, but can't send emails through Hotmail account. iPhone says I need to check my settings (password).  I have correct password in settings.  Any help?

    Hello reedstrom,
    Sorry to hear you are not able to send emails from your Hotmail account.  Sending emails is a very important feature of the iPhone, and the fourth section in the following tutorial has steps for checking your Outgoing Mail Server settings. 
    Setting up Mail
    http://www.apple.com/support/iphone/assistant/mail/#section_4
    I hope this helps!
    Best,
    Sheila M.

  • Unable to send email through sky

    Hi, unable to send emails through sky as it says the password is incorrect on the settings page

    Hello David.ball,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    Log in to your email provider's website to ensure that the account is active and the password is correct.
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Choose the affected email account, then tap Delete Account.
    Add your account again.
    Have a nice day,
    Mario

  • 3G Sending emails through tiscali

    I have a Nokia Lumia 710 smartphone. Receiving and sending emails through Wifi
    through my Tiscali account settings is no problem. The problen arises when I use 3G
    service. Surfing and receiving emails is no probelm but sending emails is. I have tried
    changing smpt from smtp.tiscali.co.uk:25:0 to smtp.o2.co.uk:25:0 (I'm payg with
    O2) and this can work but more often than not a message comes up asking for
    username and password for smpt.o2.co.uk. Trying my tiscali username and password
    is not accepted and then I have to delete the tiscali email account and start
    again. Very frustrating. I have been through O2 Guru and they supplied some APN settings but this has not solved the problem.

    Have you tried using the Network Setup app? If not download it from Marketplace if available and try running. 

  • Send email through Yahoo mail or Gmail with Java

    I have a java email program that can take a mail host name , port number and then send an email, but I don't want to use the mail host at work, I wonder if I can send email through my Yahoo Mail or Gmail account with Java, do they have any Java API that my program can log me in and send emails ? Any sample code available ? Thanks.
    Frank

    Thanks for reminding me, I did some search on "Yahoo" and "Gmail". For Yahoo someone posted some code that didn't work, for gmail, there seems to be a solution for sending email from command line. I wonder if I can send full fledged email : with CC, BCC, Attachment, Html email with images inside ...
    I've done it with a local mail host, but how to do it with Yahoo or Gmail ?
    Frank
    Have you read the JavaMail FAQ? Search for "Yahoo" and "Gmail".

  • Send email through applet

    Hello!
    Can anyone give me simple code of applet where i can send email through the form... and jar files or anything i have to import...
    Thank you very much

    Depends on how you want to handle it.
    If you want to send an email from the User's email program, you can execute a simple http request to "mailto:[email protected]" from within the applet by calling
    Applet.getAppletContext().showDocument("mailto:[email protected]")This will cause an email window to pop up using the user's email client.
    However, if you want to send email from within your program directly then you get into an area that is a little more complicated.
    First you would be using the javax.mail API. http://java.sun.com/products/javamail
    The problem you would have with this is that as an Applet you can only connect back to the server from which you came. So that server MUST have an SMTP process running on it. Otherwise you cannot send mail out since an Applet is not allowed to contact any other server other than it's own.
    If that security restriction is not a problem, then the example code at http://developer.java.sun.com/developer/onlineTraining/JavaMail/ should do everything you need.

  • Can't Send Email through Outlook using blackberry as a modem

    I am using my blaclberry 8900 as a modem and cannot send emails through outlook. I have called t-mobile and they say that it cannot be done. However I could do it with my Nokia. Any suggestions?

    Outlook folder permissions are Outlook issues, try the Microsoft Outlook Forums.

  • Can't send email through Apple mail

    I suddenly am not able to send email through Apple mail on my MacBookPro.  ipad and iphone still working.  I can also send email through att online.  My email is @att.net, and the message says "The server cannot be contacted on port 465".  (That is the proper port)

    Hi,
    Here are some suggestions,
    1. Try downloading another free email client to see if it works from there, just to eliminate other possibilities.
    2. Try removing the account in mail settings, and adding it again with the correct settings.
    Let me know what you find!
    Nolan

Maybe you are looking for