Sending mail problems -- help

hello all,
I have two databases one in a DMZ and one that is not call it (local)
On local I have created a mail procedure that can send mail to users.
The same procedure does not work on the machine in the DMZ.
I thought it might have something to do with being in the DMZ
so I created an account in microsoft express and sent my self a message which I recieved.
Any help on why I can't get the database procedure to work would be apprecieated.
<<<<<<Code Below >>>>
CREATE OR REPLACE PROCEDURE "CFULLER"."MAIL" ( TOPERSON IN
VARCHAR2,FROMPERSON IN VARCHAR2,MESSAGE IN VARCHAR2)
IS
mailhost VARCHAR2(64) := '[email protected];
recipient VARCHAR2(64) := TOPERSON;
sender VARCHAR2(64) := FROMPERSON;
mail_conn utl_smtp.connection;
BEGIN
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, sender);
utl_smtp.rcpt(mail_conn, recipient);
utl_smtp.open_data(mail_conn);
utl_smtp.write_data(mail_conn,MESSAGE);
utl_smtp.write_data(mail_conn,'Mail host'||mailhost);
utl_smtp.write_data(mail_conn,'get_user: ' || wwctx_api.get_user );
     utl_smtp.write_data(mail_conn,'get_user_id: ' || to_char(wwctx_api.get_user_id));
utl_smtp.write_data(mail_conn,'get_db_user: ' || wwctx_api.get_db_user);
utl_smtp.write_data(mail_conn,'get_product_version: ' || wwctx_api.get_product_version );
utl_smtp.write_data(mail_conn,'get_product_schema: ' || wwctx_api.get_product_schema);
utl_smtp.write_data(mail_conn,'logged_on: ' || to_char(wwctx_api.logged_on));
utl_smtp.write_data(mail_conn,'get_sessionid: ' || wwctx_api.get_sessionid);
utl_smtp.write_data(mail_conn,'get_login_time: ' ||to_char(wwctx_api.get_login_time,'MM/DD/YYYY HH24:MI:SS'));
utl_smtp.write_data(mail_conn,'get_ip_address: ' || wwctx_api.get_ip_address);
utl_smtp.write_data(mail_conn,'get_nls_language: ' || wwctx_api.get_nls_language);
utl_smtp.write_data(mail_conn,'get_public_user: ' || wwctx_api.get_public_user);
utl_smtp.write_data(mail_conn,'get_sso_schema: ' || wwctx_api.get_sso_schema);
utl_smtp.write_data(mail_conn,'get_proxy_server: ' || wwctx_api.get_proxy_server);
utl_smtp.write_data(mail_conn,'get_image_path: ' || wwctx_api.get_image_path);
utl_smtp.write_data(mail_conn,'get_proc_path: ' || wwctx_api.get_proc_path ( 'home', 'portal30'));
utl_smtp.write_data(mail_conn,'get_server_protocol: ' || wwctx_api.get_server_protocol );
utl_smtp.write_data(mail_conn,'get_sso_proc_protocol: ' || wwctx_api.get_sso_proc_path ('home', 'portal30_sso' ));
utl_smtp.write_data(mail_conn,'get_server_name: ' || wwctx_api.get_server_name );
utl_smtp.write_data(mail_conn,'get_dad_name: ' || wwctx_api.get_dad_name );
utl_smtp.close_data(mail_conn);
utl_smtp.quit(mail_conn);
EXCEPTION
WHEN utl_smtp.INVALID_OPERATION then
DBMS_OUTPUT.PUT_LINE ( 'INVALID_OPERATION : '|| sqlcode ) ;
WHEN utl_smtp.TRANSIENT_ERROR then
DBMS_OUTPUT.PUT_LINE ( 'TRANSIENT_ERROR : '|| sqlcode ) ;
WHEN utl_smtp.PERMANENT_ERROR then
DBMS_OUTPUT.PUT_LINE ( 'PERMANENT_ERROR : '|| sqlcode ) ;
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE ( 'Others : '|| sqlcode ) ;
end mail
;

The only thing I am getting for output is a value of 1
If I comment out the portal api calls in this message it works fine.
I am going to pass these values in a function call to a variable and concatenate them.
I wish there was a example of tieing the utl_smpt mail functionality with the portal environment.
This make life a lot easier to know what the person was doing when they had the problem.
crf

Similar Messages

  • Send mail problem

    hello
    pleze i tried to send mails from a servlrt in my application
    i tried it from a sample in tomcat sendmail.jsp which is connect with
    a servlet that manuplates the name and content for tha mail
    the problem is
    i can't do it from my application which take this servlet and
    put it in WEB-APP in the Root it gave me an exception
    javax.naming.NameNotFoundException: Name mail is not bound in this Context
    pleze help how can i manuplate with it to put it in my application in root
    thanx

    u've got to put your code on the screen so we can have a look at what u might be doing wrong

  • Multiple mail problems. help!

    (1) mail automatically reopens after quitting. computer only a month old, problem more recent, inconcsistent. have on the computer 4 accounts, including imap, pop, gmail.
    (2) when mail broswer is open and i click on one inbox, mail sometimes automatically bounces me into another - usually the gmail account.
    (3) at home cablevision is isp, connected to wife's computer, she has gmail account. i can connect wirelessly to (protected) home network. when i send email, it always marks wife's gmail account as sender/reply-to. went into gmail and added my account, but that didn't help.
    all help much appreciated.

    When I connect to the network and attempt to send mail using the
    Gmail SMTP server, my emails arrive at their destination not under
    my own email address but under my wife's.
    This is a Gmail thing. In order to be able to use Gmail's SMTP server with another address, you must first enable that address in Gmail's Settings > Accounts page, and let Gmail validate it by verifying that you do indeed own it. If you don't do this, even though Mail will correctly send the message from the address you specify, Gmail's SMTP server will silently change it to the address associated with the Gmail account that corresponds to the username specified during SMTP authentication, instead of refusing to send the message as other SMTP servers would do in those circumstances.
    Back to (1): Is it possible that Mail automaticall reopening after
    a quit would connected to my using an IMAP account?
    No.
    When I open Mail and click on one of their inboxes in the Mail sidebar,
    Mail sometimes will not show me the mail in that account inbox but rather
    jump to one of the other account inboxes and show me the mail in that one.
    I have no idea what's going on here. I've never seen anything like that reported before. Let's look at the contents of your Mail folder and see whether there is something amiss there.
    In the Finder, go to ~/Library/Mail/. With that folder open, do Edit > Select All (⌘A), then Edit > Copy (⌘C), and paste it in your reply to this post, to let me see the names of the files and folders present at the root level of the Mail folder.
    Before actually posting that information, you may edit it so that the file/folder names do not reveal any details you wish to keep private, e.g. you may replace any real username with "username" to hide your real email address if you wish; similarly, you may disguise any domain names you don't want to be revealed. Try to be consistent in how you disguise those details, though, as we may need to refer to them in subsequent posts.
    Now, locate the account folders within ~/Library/Mail/ -- their name begins with the account type (POP, IMAP, Mac), followed by the account username and the incoming mail server. For each account that has this problem, repeat the process to let me see the names of the files and folders it contains.
    Note: For those not familiarized with the ~/ notation, it refers to the user's home folder, i.e. ~/Library is the Library folder within the user's home folder.

  • Yet another can receive, but can't send mail problem.

    I’m having trouble with Mail. I have reviewed the various posts by others who have a similar problem. I’ve tried their suggestions, but none have worked for me. I just bought a new G5 PowerMac. I have set the account preferences exactly like my PowerMac G4 and PowerBook G4, but I cannot send messages on any account. I can receive messages. When I try to forward a message by clicking the forward button, nothing happens - no new reply window appears. Likewise, when I compose new message and click the send button nothing happens. My setting are correct and the same as the other Macs noted above. Both of them will send and receive messages using the same DSL connection as the G5. I have two hard drives on my G5 both with OS 10.4.3 installed. I use the second drive to start up on when I have trouble with my main drive. I started on the other drive, which had no mail settings, and tried to set up my accounts. In this case I got a message stating that the mail server could not be accessed. I went ahead and set the accounts anyway, then made sure the settings were correct. This implies that there is something wrong with my new G5 or there is a bug with Mail using the G5 since I have no problems with the other Macs. I haven't time to contact the help line and hope someone knows how to fix this problem.

    Hi Dancing Brave,
    Thanks for visiting Apple Support Communities.
    I recommend starting with the steps in this article if you are not able to send mail:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Best,
    Jeremy

  • Terminal Command is not allowing me to send mail - please help

    I (foolishly) entered these two commands based on this article to try to receive read receipts and now I cannot send any mail at all (http://email.about.com/od/macosxmailtips/qt/etrequestrecp.htm)
    defaults read com.apple.mail UserHeaders
    defaults write com.apple.mail UserHeaders '{"Disposition-Notification-To" = "Name <email@address>"; }'
    I did try the command in the article to undo this command, but it's not working. Any help would be appreciated - thanks

    Hi Christine, and a warm welcome to the forums!
    Not certain, but this can fix myriad Mail problems...
    Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.
    If that doesn't do it and you can afford to redo all your Rules, try these & reboot...
    /Users/YourUserName/Library/Mail/MessageRules.plist
    /Users/YourUserName/Library/Mail/MessageRules.plist.backup

  • Germany - sending mail problem

    as many before am not able to send mail from my private email account - neither via edge nor when using wifi. However it works from my .Mac account. It is an SMTP issue. My ISP tells me that the server drops after ehlo. In order to gather some more information, I have this question to the proud folks sporting a new t- mobile iPhone since Friday:
    What SMTP server is recomended by t-mobile when sending via edge (if they do recomend one at all)?
    Anyone having the same problems out there with an idea why theserver may drop conection and a work around (other than using a different ISP)
    Thanx,
    Christoph

    Not sure but since .Mac's SMTP server is authenticated and this works when sending messages from the iPhone with your .Mac account, this indicates your ISP's SMTP server is not authenticated or something else is wrong.
    Did you transfer the account settings from your computer to the iPhone via the iTunes sync process?
    If so, try deleting the account and manually recreating the account on the iPhone but if this works and you did transfer the account settings from your computer to the iPhone via the sync process, be sure to deselect this option before the next sync or your changes made on the iPhone will be overwritten.

  • HT1338 I am unable to access my Yahoo mail and also unable to send mail! Help!

    Incoming mail just suddenly crashed...also sending mail. What si grequired to reset the problem? Many thanks MacBook users!

    For Chrome problems use the Google support forums, or use Safari

  • Send Mail Problem with .Mac

    I cand send mail successfully from other accounts configured on the phone(both POP and IMAP), but I get errors when sending from my .Mac account.
    I found this article:
    http://www.wireless.att.com/support/knowledgeBase.do?content=KB72769.html
    ...but .Mac account config pages on the iPhone don't provide a field for Outgoing Server to change. Actually, this article fixed the problem with my other accounts.

    Thanks for the reply, Nathan.
    I had already found that article. Snip below...
    iPhone includes preset configurations for many of the
    popular providers such as Yahoo! Mail, Gmail, .Mac,
    and AOL, and in most cases sending mail will just
    work.
    However if you are using a different provider
    than above...
    Unfortunately, if you select ".Mac" for type of
    account, the configuration screen does not provide a
    field at all for Outgoing Server. This suggestion
    only works if you are not using one of the providers
    listed. It is apparently hardcoded by Apple when you
    choose ".Mac". I also tried to fool it by creating a
    generic IMAP account, but providing my .Mac info.
    This didn't work either.
    then don't select .mac, just select "Other", then select POP (or IMAP).
    incoming mail server: mail.mac.com
    outgoing mail server: smtp.mac.com:587
    enter in your username and password
    i set up my .Mac email manually by selecting "Other" and choosing POP and it is working fine.

  • Still Cant send mail? HELP PLEASE!

    I am connected to the server.
    POP3 and SMTP look corrected.
    Connection doctor says I am connected to the server.
    I can receive mail.
    but
    I CANT SEND ANYTHING.
    Please help can someone tell me why post is not going!

    even i am facing the same issue i am using email account which is on exchange server 2008 and able to recieve emails perfectly fine but, issue is when i try to send email thru my Mac mail client ( mail 3.0 [930.3]) it gives error. I checked this connection doctor as well didnt got any error messAGE authentication was done . But still cant send mail out checked for ports as well all are open on router firewall but still no luck can anyone help me on this. Thanks

  • Cannot send mail! Help!

    I have set up mail using a POP account and it receives email no problem. However, it will not send mail. It gives me message saying that it cannot br delivered 'at this time' and will try again later. I have set up the outgoing SMTP server which seemed simple enough and i do not know what else to try. Anybody got any ideas.
    Thanks.

    In the overall Mail Preferences, there are two places where Ports are selected. One is in Mail Preferences/Accounts/Advanced, and is only related to the Incoming Server, and Mail normally default to the correct type of Port, based upon the account type -- 110 is for accessing POP3 servers, while IMAP accounts will use 143, or 993 if using SSL.
    The other place Ports are selected, is in Mail Preferences/Accounts/Account Information/Outgoing Mail Server/Server Settings -- this will usually default to Port 25, but may have to be changed based upon the policies of your ISP, if you are attemping to use any SMTP not provided by your ISP.
    What is reported in each of these locations, including type of Authentication?
    Ernie

  • Send mail please help!

    I'm trying to make a simple email client, but I'm complete beginner. I got
    task to make email client so I'm having problem. Do you have any example of
    complete applet source code that is used to send mail (for example from
    hotmail to yahoo). my adress at hotamil is [email protected] and if I want
    to send someone mail from that adress I must use my password to get to inbox
    and compose message. But I don't know how to make code that you need to
    write your pass and where to write it, which method...etc to be able to send
    message

    number 4: all in one day!

  • HT201320 Hi , I'm with outlook but I can no longer send mail, problem

    What can I do about not being able to send mail? I'm with outlook

    Hi there stan137,
    You may find the troubleshooting steps in the article below helpful.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    -Griff W. 

  • Send mail problem having invalid address with correct addresses

    I used java mail api to send mails. the code is a s below
    javax.mail.Session mailSession=(javax.mail.Session)ctx.lookup("java:/Mail");
    mailSession.setDebug(false);
    javax.mail.Message msg = new javax.mail.internet.MimeMessage(mailSession);
    msg.addRecipients(javax.mail.Message.RecipientType.TO, addressToArr);
    msg.setSubject(mailSubject);
    msg.setContent(mailBody, contentType);
    javax.mail.Transport.send(msg);
    But if there is an invalid address in the recipient address array, the email won't be sent to the correct addresses as well. i just want to know whther it happens any coding issues or our mail server implementation.

    Hi!
    You need to activated properties config mail.smtp.sendpartial to true :
    // Setup partial mail
    props.put("mail.smtp.sendpartial", (new Boolean(partial)).toString());
    if the recipient address array have bad address, it will still be sent to good address...
    or/and check email address before send mail :
    public static boolean isValidEmail(String email)
              if (email == null) return false;
              boolean valid = true;
              try
                   InternetAddress addr = new InternetAddress(email);
                   addr.validate();
              catch (AddressException ex)
                   valid = false;
              return valid;
    }regards,

  • ODI send mail problem

    Hi,
    i am trying to send mail via ODI send mail package and getting error below,
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.1 Client was not authenticated
    any advise pls
    thank you

    ODI is sending the email without a password which is the behavior of OdiSendMail.
    Where as your mail server is looking for a authenticated mail i.e. which has password , this is why you are getting this error.
    For OdiSendMail , use a mail server which does not requires an authentication
    Else use customized Jython mail sending procedure ... see details in ODIsendmail error

  • Sending Mail problem - Very Urgent

    I want to send mail through the Java code using struts framework.It works fine olny with the authentication.I want suggestions for sending mails without authentication.

    {color:red}CROSS POSTED{color}
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5245789
    {color}
    Cross posting is rude.
    And as I noted on the other thread, looks like a identity fraud requirement to me.
    db

Maybe you are looking for

  • IFilter 9 for 64-bit on Server 2008 R2 creating thousands of folders

    I have installed iFilter 9 for 64-bit on a 64-bit Windows Server 2008 R2. As soon as it was installed I started seeing thousands of folders in the root of c: with the names like A9R1aa0-e3efao.  I uninstalled iFiler 9 and the folder creation stopped.

  • How stay on the sreen list

    Hi all,   I have an output list where I have added two button in order to dowload   two different files.   When I push the first button everything works fine, but the program return to the screen 0, whereas I have to allowed the user to push the seco

  • Copyright laws

    I have a question. My previous post was taken off because I was asking about album covers. Please explain this part of the copyright laws. If I bought the CD from a store years ago and I download certain tracks from the CD to my IPod, how and I viola

  • CE - Turning off caching

    I have a CE510 and I also run SmartFilter. To a degree the caching has been more problems than what it is worth. I am constantly plagued by users having problems with forms, search sites, redirects, etc.... I would like to turn off caching! I will be

  • HT201363 I need to change my Security Questions, as I cannot remember the answers to them, At all.

    How can I change them? I have tried calling them, I have tried things that are already listed on Google for it, And the website, But it just doesn't help. Can someone please help me?