Application server sould not able to send mails once my DR Connetivity down....
Hi all
I am using my applications server to send mail through my exchange 2010 server. I also have my DR Site server for Exchange 2010 with DAG concept.
please find below my server setups
Main site
1. Exchange MBX
2.Exchange HUB/CAS
3.Exchange Edge Server.
DR site
1. Exchange MBX/HUB/CAS
2. Exchange Edge
MBX Server are configured with DAG for Database High availlablity. we have p2p link between main site and DR Site.
We created the below receive connector in both our HUB server for accept the mails from my applications server.
1. connector name : Application_ connector- selected the Custom option
2. network --> use the local ip address to receive mail --> All available ipV4 port 25
Receive mail from remote server that have these ip address --> 10.X.X.X --> my application server.
3.Authentication --> basic authentication, Exchange server Authentication
4.Permission group --> anonymous user, Exchange users, Exchange Servers, Legcy exchange servers.
it was working fine its send the mail internally not issue.
All the DBs are mounted in our main site Only.
1. last week my DR Site P2P link got down that time the mails sent from application server was not received by our users. I don't know why?
2. once the Link got up the mail flow happened. For testing purpose I disabled the application receive connector in DR HUB server and immediately the application mail flow got down. since all the mail flow taking care by main site, How
my applications server mail itself taking my DR. I also checked my application server mail config and its configured with my main site HUB server only.
3. now I also want my application to send mail to external users. How to enable this? how secure it was?
I am not able to complete the above issue for the past week. any body will help me to resolve the issue much appreciated....
thanks in advance
Jags
With one mailbox server in the production site and one in the DR site, you do not have high availability. If the main site goes down, the cluster loses quorum and all databases dismount. You must then force quorum or move the file share
witness to restore quorum.
I can't tell you why what you observed happened. At the time of the problem I would have been looking at the transport queues to see what's queued and to where.
I recommend you look at the configuration of your send connectors to ensure that none of them are dependent upon the DR site server.
To send mail outside, you must allow relay. To do this, I recommend you create a new receive connector that's configured to allow relay and restrict access to the application server to keep anyone else from using it to relay. There are plenty
of articles on the Internet that describe how to configure a relay connector.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."
Similar Messages
-
I am not able to send mails through Yahoo APP. It gives me an error msg :"the sender address has ben rejected by the server ".
I tried adding username and password in the SMTP server settings,But those optiopns are greyed out.
So, i am not able to enter anything in fields under SMTP server settingsYou probably have changing settings disabled in Restrictions.
-
Notification mailer is not able to send mails to Outside domain i.e gmail
Hi All,
We are in 12.1.3 EBS application with 11.1.0.7 DB on Aix 64 bit platform:
resently we configured notification mailer with out any issues
But the issue is notifications are delivered to with in the domain itself but not to outside the domain i.e gmail and yahoo
SMTP server host name is owa.craftsmanautomation.com the same we used to configure the Notification mailer
Even we verified from os level using telnet utility as follows:
$ telnet owa.craftsmanautomation.com 25
Trying...
Connected to 192.168.5.8.
Escape character is '^]'.
220 Capl-cas01.CRAFTSMAN.LOCAL Microsoft ESMTP MAIL Service ready at Thu, 12 Jul 2012 14:03:47 +0530
EHLO CAPL-PROD
250-Capl-cas01.CRAFTSMAN.LOCAL Hello [192.168.5.12]
250-SIZE
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-X-ANONYMOUSTLS
250-AUTH NTLM
250-X-EXPS GSSAPI NTLM
250-8BITMIME
250-BINARYMIME
250-CHUNKING
250-XEXCH50
250-XRDST
250 XSHADOW
MAIL FROM: [email protected]
250 2.1.0 Sender OK
RCPT TO: [email protected]
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Subject: Test message
Test message body
250 2.6.0 <[email protected]> [InternalId=85753] Queued mail for delivery
quit
221 2.0.0 Service closing transmission channel
Connection closed.
In the above command in place of FROM and TO mail-id's if we use any personal mail-id's getting error message as "Unable to Relay".Please suggest is there any changes we need to done at SMTP server Level or OS level or Application Level.
Thanks in Advance925263 wrote:
Hi Hussein,
Thanks Alot for your reply.
Currently we changed the SMTP Server(mail.craftsmanautomation.com).we used anoth SMTP server to configure Notification Mailer.Because previous one(owa.craftsmanautomation.com) is not able to send mail's to outside domains.
But in this case we got the below error message while testing.Below error message we captured from the output file of the script Oracle Workflow ATG Support: R12 Java Mailer Setup Diagnostic Test.
ERROR
[Nov 10, 2012 1:32:45 PM GMT+05:30]:1352534565017:-1:-1:capl-prod.craftsmanautomation.com:192.168.5.13:-1:-1:1:20420:SYSADMIN(0):-1:Thread[outboundThreadGroup1,5,outboundThreadGroup]:192.168.5.13:84096:1352529863628:11:ERROR:[SVC-GSM-WFMLRSVC-110812-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProcessor.send(Message)]:Problem encountered when sending to {[[WFTEST <[email protected]>]]} -> javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 554 5.7.1 <[email protected]>: Sender address rejected: Access denied
Please see these docs.
Email Not Received javax.mail.SendFailedException: Invalid Addresses [ID 876835.1]
Workflow Notification Mailer Unable to Send E-Mail Notifications [ID 374804.1]
Unable to Email Proposal Documents to an 'External Address' [ID 1126223.1]
How to address Email Center: Outbox Processor Error: Invalid Addresses [ID 1399427.1]
Thanks,
Hussein -
i am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.
With one mailbox server in the production site and one in the DR site, you do not have high availability. If the main site goes down, the cluster loses quorum and all databases dismount. You must then force quorum or move the file share
witness to restore quorum.
I can't tell you why what you observed happened. At the time of the problem I would have been looking at the transport queues to see what's queued and to where.
I recommend you look at the configuration of your send connectors to ensure that none of them are dependent upon the DR site server.
To send mail outside, you must allow relay. To do this, I recommend you create a new receive connector that's configured to allow relay and restrict access to the application server to keep anyone else from using it to relay. There are plenty
of articles on the Internet that describe how to configure a relay connector.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems." -
I am not able to send mail - my outbox just spins
I am not able to send mail from my ipod touch. the message just keeps spinning and not sending
- Does Safari work?
- Try a reset. Nothing is lost
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Can you receive mail from that account?
- Can you send mail with other accounts?
- Try deleting the account for the iPod and reenter all the settings. -
I have an iphone 4s. able to receive all the incoming mails but not able to send mails through this iphone 4s. please help.
delete and reinstall the email account.
-
Not Able to Send Mail in Oracle Apex
Hello Apex Experts,
I am using Amazon Cloud with details as using Oracle Apex 4.1 and Oracle 11g as database using Glass Fish Server.
Problem am facing is E-Mail are not working. I tried adding our company smtp address but still it is not working.
In Oracle Apex Admin scree Under Manage Instance --> Instance Settings --> Email tryed adding ( localhost and 10.1.1.100 SMT address ) this didnt work
I am using below code to send mail
Begin
-- Send plain text email
APEX_MAIL.SEND(
P_TO => '[email protected]',
P_FROM => '[email protected]',
P_CC => '[email protected]',
P_BCC => '[email protected]',
P_SUBJ => 'test',
P_BODY => 'test');
apex_mail.push_queue('10.1.1.100', 25);
End;
SELECT * FROM APEX_MAIL_QUEUE;
I get ORA-24247: network access denied by access control list (ACL) . I also see last_updated as SYS in the log
Please suggest me how to fix this issue.
Thanks
SudhirHi Mike,
Thanks for your reply, Let me give you a detail on where we are stuck on send mail.
We have a Schema called PORTAL
We are able to send mail from UTL_SMTP as mentioned below in a procedure
create or replace PROCEDURE send_mail (p_to IN VARCHAR2,
p_from IN VARCHAR2,
p_message IN VARCHAR2,
p_smtp_host IN VARCHAR2,
p_smtp_port IN NUMBER DEFAULT 25)
AS
l_mail_conn UTL_SMTP.connection;
BEGIN
l_mail_conn := UTL_SMTP.open_connection(p_smtp_host, p_smtp_port);
UTL_SMTP.helo(l_mail_conn, p_smtp_host);
UTL_SMTP.mail(l_mail_conn, p_from);
UTL_SMTP.rcpt(l_mail_conn, p_to);
UTL_SMTP.data(l_mail_conn, p_message || UTL_TCP.crlf || UTL_TCP.crlf);
UTL_SMTP.quit(l_mail_conn);
END;
Begin
send_mail('[email protected]','[email protected]','test','10.0.0.100','25');
End;
The above code works i am able to send and receive mails.
We also create ACL as mentioned below
begin
dbms_network_acl_admin.create_acl (
acl => 'http_permission.xml', -- or any other name
description => 'HTTP Access',
principal => 'APEX_040100', -- the user name trying to access the network resource
is_grant => TRUE,
privilege => 'connect',
start_date => null,
end_date => null
end;
commit;
SELECT * FROM dba_network_acl_privileges where principal='APEX_040100';
begin
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
principal => 'APEX_040100',
is_grant => true,
privilege => 'connect');
end;
commit;
begin
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl => 'http_permission.xml',
principal => 'APEX_040100',
is_grant => true,
privilege => 'resolve');
end;
commit;
BEGIN
dbms_network_acl_admin.assign_acl (
acl => 'http_permission.xml',
host => '10.1.1.100', /*can be computer name or IP , wildcards are accepted as well for example - '*.us.oracle.com'*/
lower_port => 80,
upper_port => 80
END;
But still we are getting same ACL Error Please suggest US
ORA-24247: network access denied by access control list (ACL)
Thanks
Sudhir -
Others not able to send mail to my account
I have manually entered all the information as my hosting website has provided and I am able to send mail but others are not able to sen mail to me.
The following message occurs every attempt to send to my account:
Delivery to the following recipient failed permanently:
[email protected]
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain microciderco.com.au by aspmx.l.google.com. [2607:f8b0:400d:c00::1a].
The error that the other server returned was:
550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 i68si5152525qgd.15 - gsmtpWell the domain passes most standard checks. http://www.dnsstuff.com/tools#dnsReport|type=domain&&value=microciderco.com.au
Google, whom I assume are your hosts are emphatic when I send mail to that address that the address simply does not exist. So I think you need to revisit that part of your domain setup. perhaps create a couple of other addresses and see if they play nice. -
Not able to send mail after Embarq took over Sprint
After over three hours on the phone with Embarq, I finally am able to receive mail but not send. They claim it is a problem with Apple Mail. I never had this proble untill the change over from Sprint to Emgarq. This is the message I receive when I try to send mail;
"This message could not be delivered and will remain in your Outbox until it can be delivered.
Verify that you have addressed this message correctly. Check your SMTP server settings in Mail Preferences and verify any advanced settings with your system administrator."
I am seriously thinking about dumping Embarq and going with cable.
Any suggestions?
DavidHi Thanks for the tips with the Embarq trouble. Just to pass on a word of success on the proper setting with these guys. The Incoming Mail Server: pop.embarqmail.com The User Name will be your email address, don't drop the @embarqmail.com it won't work without it. Enter your password for the incoming server. The outgoing will be smtp.embarqmail.com:email address. It kind of looks goofy but it just like the incoming, but swap the pop for SMTP. My server port is still set at 25 and you'll need to add the password here as well. I sent a test email yesterday. I could view it on the webmail, but had no success on Mail 2.1, until today. Thanks for the info being posted. This is not a typical setup for an account on Mail. They kept on telling me the user name was everything before the @ when in fact it's your whole email address.
Hope this helps. -
I am currently using the latest Leopard update.
I have a Macbook Pro. 2.2.
Anyway. I recently noticed that I'm unable to send mail using the Mail program. I get an error saying: The connection to the server “smtp.mac.com” on port 25 timed out.
What could be the problem? Any suggestions on how to fix this?
Thanks.
RyanGo to the account settings and change the port for the SMTP-server from 25 to 587. Take care to really change the SMTP-server settings (which means: do only change "25"'s to 587, do not change other ports).
-
File from application server..not able to split
Hi,
I have a file in the apllication server with contents seperated by #.
By using cl_abap_char_utilities=>horizontal_tab I am able to remove the #s and saving into work area.
Now,
I have created file for same purpose, with same kind of data format.
But the problem is while I am using the above method to remove # separaters and save it into workarea, its not doing well except for first field.
So I am missing the remaining data...i.e. not able to save into work area.
Before suggesting the other technique to do this , let me know what might be the reason for this?
Thanks,
Naveen InugantiIts working problem with file format only!
-
SAP NW 7.3 Application Server Java: Not able to open log viewer
Hi Experts,
I am facing this strange error in the NW 7.3 AS Java hence not able to see the logs. I tried to open the logs from nwa/logs and from troubleshooting --> logs and traces as well. Not sure whats wrong.
Error while loading Log Viewer: Overview
Next steps :Create CSS ticket in component BC-JAS-ADM-LOG-LGV
Technical Details :Stack Trace See Logs
com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area
Caused by: java.lang.NullPointerException: while trying to load from an object array loaded from local variable 'content'
Please suggest on this, any pointer will be appreciated.
Regards
JeetendraHi Satish,
I can see the logs from OS level but that is restricted only to administrative use not all the users of server have os level access. I updated the LM CORE and CORE Tools component to NW 7.3 SP03 however, it did not help. I am posting the log as follows
Stack Trace
com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:164)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:258)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:418)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:352)
at com.sap.lm.itsam.ui.floorplan.FloorPlan.loadEmbeddedApplicationInternal(FloorPlan.java:2051)
at com.sap.lm.itsam.ui.floorplan.FloorPlan.loadEmbeddedApplication(FloorPlan.java:442)
at com.sap.lm.itsam.ui.floorplan.FloorPlan.init(FloorPlan.java:645)
at com.sap.lm.itsam.ui.floorplan.FloorPlan.loadProfessionalApplication(FloorPlan.java:1174)
at com.sap.lm.itsam.ui.floorplan.FloorPlan.navigateNFtoEmbeddedApplication(FloorPlan.java:1745)
at com.sap.lm.itsam.ui.floorplan.wdp.InternalFloorPlan.wdInvokeEventHandler(InternalFloorPlan.java:966)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.invokeEventHandler(DelegatingComponent.java:248)
at com.sap.tc.webdynpro.progmodel.components.Component.fireEvent(Component.java:492)
at com.sap.tc.lm.co.ui.nwa.workcenter.overview.wdp.InternalWorkCenterOverview.wdFireEventNavigateToEmbeddedApplication(InternalWorkCenterOverview.java:315)
at com.sap.tc.lm.co.ui.nwa.workcenter.overview.WorkCenterOverview.fireEventNavigateToEA(WorkCenterOverview.java:381)
at com.sap.tc.lm.co.ui.nwa.workcenter.overview.wdp.InternalWorkCenterOverview.fireEventNavigateToEA(InternalWorkCenterOverview.java:222)
at com.sap.tc.lm.co.ui.nwa.workcenter.overview.WorkCenterOverviewView.onActionNavigate(WorkCenterOverviewView.java:440)
at com.sap.tc.lm.co.ui.nwa.workcenter.overview.wdp.InternalWorkCenterOverviewView.wdInvokeEventHandler(InternalWorkCenterOverviewView.java:221)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:142)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:75)
at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:159)
at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:94)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:515)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:55)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1667)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1481)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:899)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:871)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:355)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:325)
at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)
at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:453)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:462)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:270)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: java.lang.NullPointerException: while trying to load from an object array loaded from local variable 'content'
at com.sap.lm.itsam.ui.lv.wd.comp.LV.isExternalLocation(LV.java:488)
at com.sap.lm.itsam.ui.lv.wd.comp.LV.wdDoInit(LV.java:151)
at com.sap.lm.itsam.ui.lv.wd.comp.wdp.InternalLV.wdDoInit(InternalLV.java:231)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:161)
... 77 more
Please let me know if there is any other work-around for this. Thanks a-lot for your help.
Regards
Jeetendra -
Not able to send mail thru Oracle
Hi all,
I am using Oracle 9.2.0.6 on RHEL platform.....
I am using the below procedure to send mail from oracle
CREATE or REPLACE PROCEDURE SimpleTextMessage IS
mailHOST VARCHAR2(64) := '10.0.1.2';
mailFROM VARCHAR2(64);
mailTO VARCHAR2(64);
mailCONN utl_smtp.connection;
mailDATE VARCHAR2(20);
vreply utl_smtp.reply;
vreplies utl_smtp.replies;
i number;
BEGIN
mailFROM := '[email protected]';
mailTO := '[email protected]';
SELECT TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS') INTO mailDATE FROM dual;
dbms_output.put_line('open_connection');
dbms_output.put_line('---------------');
vreply := utl_smtp.open_connection(mailHOST, 25, mailCONN);
dbms_output.put_line( 'code = ' || vreply.code );
dbms_output.put_line( 'text = ' || vreply.text );
dbms_output.put_line('help');
dbms_output.put_line('----');
vreplies := utl_smtp.help(mailCONN, 'HELP');
for i in 1..vreplies.count loop
dbms_output.put_line( 'code = ' || vreplies(i).code );
dbms_output.put_line( 'text = ' || vreplies(i).text );
end loop;
vreply := utl_smtp.open_data(mailCONN);
utl_smtp.write_data(mailCONN, 'Subject: '|| 'A subject' || chr(13));
utl_smtp.write_data(mailCONN, 'From: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, 'Date: '||mailDATE || chr(13));
utl_smtp.write_data(mailCONN, 'To: '||mailTO || chr(13));
utl_smtp.write_data(mailCONN, 'CC: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, 'BCC: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, chr(13));
utl_smtp.write_data(mailCONN, 'Hello Friend.' || chr(13));
utl_smtp.write_data(mailCONN, 'Drop me an e-mail.' || chr(13));
dbms_output.put_line('close_data');
dbms_output.put_line('----------');
vreply := utl_smtp.close_data(mailCONN);
dbms_output.put_line( 'code = ' || vreply.code );
dbms_output.put_line( 'text = ' || vreply.text );
dbms_output.put_line('quit');
dbms_output.put_line('----');
vreply := utl_smtp.quit(mailCONN);
dbms_output.put_line( 'code = ' || vreply.code );
dbms_output.put_line( 'text = ' || vreply.text );
END;
/At the time of compilation i am not getting any error but when i call that proc i am getting the below error:
SQL> exec cadata3.simpletextmessage();
BEGIN cadata3.simpletextmessage(); END;
ERROR at line 1:
ORA-29277: invalid SMTP operation
ORA-06512: at "SYS.UTL_SMTP", line 43
ORA-06512: at "SYS.UTL_SMTP", line 279
ORA-06512: at "CADATA3.SIMPLETEXTMESSAGE", line 29
ORA-06512: at line 1can asomebody throw some light on the same....Still getting the same problem
CREATE or REPLACE PROCEDURE SimpleTextMessage IS
mailHOST VARCHAR2(64) := '10.0.1.2:8443';
mailFROM VARCHAR2(64);
mailTO VARCHAR2(64);
mailCONN utl_smtp.connection;
mailDATE VARCHAR2(20);
vreply utl_smtp.reply;
vreplies utl_smtp.replies;
i number;
BEGIN
mailFROM := '[email protected]';
mailTO := '[email protected]';
SELECT TO_CHAR(SYSDATE,'MM/DD/YYYY HH24:MI:SS') INTO mailDATE FROM dual;
dbms_output.put_line('open_connection');
dbms_output.put_line('---------------');
vreply := utl_smtp.open_connection(mailHOST, 25, mailCONN);
dbms_output.put_line( 'code = ' || vreply.code );
dbms_output.put_line( 'text = ' || vreply.text );
dbms_output.put_line('help');
dbms_output.put_line('----');
vreplies := utl_smtp.help(mailCONN, 'HELP');
for i in 1..vreplies.count loop
dbms_output.put_line( 'code = ' || vreplies(i).code );
dbms_output.put_line( 'text = ' || vreplies(i).text );
end loop;
vreply := utl_smtp.close_data(mailCONN);
utl_smtp.write_data(mailCONN, 'Subject: '|| 'A subject' || chr(13));
utl_smtp.write_data(mailCONN, 'From: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, 'Date: '||mailDATE || chr(13));
utl_smtp.write_data(mailCONN, 'To: '||mailTO || chr(13));
utl_smtp.write_data(mailCONN, 'CC: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, 'BCC: '||mailFROM || chr(13));
utl_smtp.write_data(mailCONN, chr(13));
utl_smtp.write_data(mailCONN, 'Hello Friend.' || chr(13));
utl_smtp.write_data(mailCONN, 'Drop me an e-mail.' || chr(13));
dbms_output.put_line('close_data');
dbms_output.put_line('----------');
vreply := utl_smtp.close_data(mailCONN);
dbms_output.put_line( 'code = ' || vreply.code );
dbms_output.put_line( 'text = ' || vreply.text );
dbms_output.put_line('quit');
dbms_output.put_line('----');
vreply := utl_smtp.quit(mailCONN);
dbms_output.put_line( 'code = ' || vreply.code );
dbms_output.put_line( 'text = ' || vreply.text );
END;
/error
SQL> exec cadata3.simpletextmessage();
BEGIN cadata3.simpletextmessage(); END;
ERROR at line 1:
ORA-29277: invalid SMTP operation
ORA-06512: at "SYS.UTL_SMTP", line 43
ORA-06512: at "SYS.UTL_SMTP", line 303
ORA-06512: at "CADATA3.SIMPLETEXTMESSAGE", line 28
ORA-06512: at line 1Edited by: user00726 on Jul 31, 2009 4:14 AM -
My gmail account on my iPad air is saying it cannot send mail but it is working on my phone. I haven't changed any settings so I don't know what the problem could be.
It turned out that that the iPad just wouldn't work with the library wireless. I rest that happening with my old outlook account. Any idea why?
-
Not able to send mail. Inbox works.
I can't send email out. I can get mail fine. All day mail sits in Drafts box. Get message that says "This message could not be delivered and will remain in your Outbox until it can be delivered. The connection to the server "smtp.mac.com" on port 25 timed out."
Any ideas why my mail won't send? I am on a wireless network that I am using for free. Could this be why?
Thanks
MacBook Mac OS X (10.4.8)
MacBook Mac OS X (10.4.8)I don't mean any advice to be taken as condoning "boosting" someone signal without their permission.
I don't think surfing "in public" has much risk. However, you would not want to have any Sharing Preferences set to expose your MacBook, while on any unknown network. I don't think anyone would see your keystrokes, but they could try to log onto your MacBook's HD, if seen on their network. Without your Admin Password, they should not be able to do so.
Ernie
Maybe you are looking for
-
I cannot drag my Itunes folder to my external hard drive, despite following the unhelpful help exactly. I get a "no way" sign Circle with a line though it. I have lost a fortune in purchased goods (audio books) because I cant do it. Itunes have said
-
Strength of wireless connection
I am a long-time Windows user that recently converted to the iMac. I still use a Windows based PC (work related). I tried setting up both a Linksys router (didn't work so I returned) and a Belkin router (it worked but the connection strength from to
-
Checkbox on table is not working.
I have a declarative component. In it it has a table. One of the columns is a selectOneCheckbox. It is mapped, in a jsff binding page, to a BC VO. It is giving this error. :( Error: pt1:pt_region1:2:pt1:CDDC:dist_dc_pc1:CDtable:1:j_id__ctru19pc28: 'f
-
What is wrong with my simple class program?
Ok, I'm writing a simple class called 'Frog', which will keep track of the position enter by a user. The program will ask for the initial position for the frog. It will then ask for how many steps it want the frog to jump. Then it will output the new
-
Once again, Apple assumes majority == everyone. NO. Unlike everyone else on earth, I HAVE NOT moved my junk from mobileme yet. So now, when I log in for the first time in ages and go to set up iCloud, the mechanism always redirects me to move my junk