Sending mail problem (please help)
I have downloaded all necessary components javamail-1_2.zip and jaf1_0_1.zip. I included them in my classpath too (activation.jar and mail.jar). I used Exchange Server 2000 as smtp server. But when i try sending an email the message appears like this:
sending error cannot relay for sending [email protected]
When i tried the same code in my ISP (www.mycgiserver.com) it work very fine. Here is the code. Where is the problem? Please help me...
<%
// Take massege properties
String mBody = request.getParameter("mBody");
String from1 = request.getParameter("from");
String to1 = request.getParameter("to");
String subject = request.getParameter("subject");
Properties props = new Properties();
props.put("ipNo.........:25", "smtp.mail.blah.com");
Session s = Session.getInstance(props,null);
Message message = new MimeMessage(s);
InternetAddress from = new InternetAddress(from1);
message.setFrom(from);
InternetAddress to = new InternetAddress(to1);
message.setRecipient(Message.RecipientType.TO, to);
message.setText(mBody);
message.setSubject(subject);
Transport.send(message);
%>
the problem i feel is in your smtp relay and probably not in ur code . some smtp relay servers are configured such that they relay only on authentication or from a specific IP or from a specific subnet mask only to prevent spammers . check out the info on ur local relay server and also see other postings specific on relay ....that shud be of help i guess
Similar Messages
-
Hi I have this problem that when I send a mail to someone mails that I have already sent out end up on this email sometimes two or even twenty different mails end up going to the person I'm send ding a mail too please help
I have been doing some test now and have found out that my mails are being merged according to subject eg, so if I use cleaning goods as a subject and send out a new mail all mails with this subject are sent to the one person
-
Hi, Please tell me how can I send the Music Videos to the I Pod From the Computer, I'm so upset about this problem, Please help me ASAP.
Here:
iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
or
iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad -
Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
Server Error in '/' Application.
Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Problem with SAP/BAPI.
SAP.Connector.RfcCommunicationException: Connect to message server failed
Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
LOCATION CPIC (TCP/IP) on local host
ERROR service 'sapmsPRD' unknown
TIME Wed May 04 08:59:06 2005
RELEASE 620
COMPONENT NI (network interface)
VERSION 36
RC -3
MODULE ninti.c
LINE 428
DETAIL NiPServToNo
SYSTEM CALL getservbyname
COUNTER 1
at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
at SAP.Connector.SAPConnection.Open()
at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type)
at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
SoftwareKeyUI.search.LoadRegionDetails()
SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
System.Web.UI.Page.RaiseChangedEvents() +115
System.Web.UI.Page.ProcessRequestMain() +1099The error is a very basic one - the sapmsPRD service is not known. You will have to go to <NT_ROOT>\system32\drivers\etc and add the entry sapmsPRD 3600 to this file.
This is basically telling the requester at what port to look for the message server.
C -
Problem Please help me.....Let me know the area to look for it
Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it...
Server Error in '/' Application.
Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapException: Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException: Connect to message server failed Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD LOCATION CPIC (TCP/IP) on local host ERROR service 'sapmsPRD' unknown TIME Wed May 04 08:59:06 2005 RELEASE 620 COMPONENT NI (network interface) VERSION 36 RC -3 MODULE ninti.c LINE 428 DETAIL NiPServToNo SYSTEM CALL getservbyname COUNTER 1 at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode) at SAP.Connector.SAPConnection.Open() at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn) at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn) at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type) at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SoapException: Problem with SAP/BAPI.
SAP.Connector.RfcCommunicationException: Connect to message server failed
Connect_PM MSHOST=prddb01.lamrc.com, R3NAME=PRD, GROUP=Prod HR PRD
LOCATION CPIC (TCP/IP) on local host
ERROR service 'sapmsPRD' unknown
TIME Wed May 04 08:59:06 2005
RELEASE 620
COMPONENT NI (network interface)
VERSION 36
RC -3
MODULE ninti.c
LINE 428
DETAIL NiPServToNo
SYSTEM CALL getservbyname
COUNTER 1
at SAP.Connector.SAPConnection.ThrowRfcException(RFC_ERROR_INFO_EX rfcerrInfo, Encoding encoding, String languangeCode)
at SAP.Connector.SAPConnection.Open()
at SAP.Connector.SAPClient.RfcInvoke(String method, Object[] methodParamsIn)
at SAP.Connector.SAPClient.SAPInvoke(String method, Object[] methodParamsIn)
at SoftwareKeySAPG.SAPProxy1.Z_Bapi_Load_Kpi_Region(ZSOFT_KPI_REGIONS_MTable& Kpi_Regions, ZSOFT_PROD_TYPETable& Prod_Type)
at SoftwareKeySAPG.SAPGSK.LoadKPIRegion(DataSet dsProduct)]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1503
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +218
SoftwareKeyUI.InstalledBaseDataWS.InstalledBaseData.LoadKPIRegionMulti(DataSet products)
SoftwareKeyUI.InstalledBaseDataAccess.LoadKPIRegionMulti(DataSet products)
SoftwareKeyUI.InstalledBase.GetRegionDetails(Int32 userId, String product, String regionType)
SoftwareKeyUI.FilteredAccess.GetRegionDetails(Int32 userId, String product, String regionType)
SoftwareKeyUI.search.LoadRegionDetails()
SoftwareKeyUI.search.regionType_SelectedIndexChanged(Object sender, EventArgs e)
System.Web.UI.WebControls.ListControl.OnSelectedIndexChanged(EventArgs e) +108
System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent() +26
System.Web.UI.Page.RaiseChangedEvents() +115
System.Web.UI.Page.ProcessRequestMain() +1099Hi
You should make a mapping for the service sapmsPRD in your /etc/services file (On Windows: C:WINDOWSSYSTEM32DRIVERSETCservices). If your instance number is 00 you will have to add the following entry:
sapmsPRD 3600/tcp
Good luck!
René van Es -
Protocol layer was unable to send a message - PLEASE HELP !!!!
I have the Z10 and I am unale to reply to, or forward any e-mails that I receive on my corporate e-mail address.
I can create and send new e-mails and I am receiving all my e-mails, but I can not forward or reply which is a basic requirement.
Every time I try I get a message advising that
"Protocol layer was unable to send a message"
Please HELP!!!!!
Antony.....Hi and Welcome to the Community!
There are several public KB articles that deal with that error, depending on your exact circumstances. I suggest you go here:
http://btsc.webapps.blackberry.com/btsc/microsites/microsite.do
Search on your exact error message, then inspect the articles that result from the search to see which apply to your specific situation.
Good luck!
Occam's Razor nearly always applies when troubleshooting technology issues!
If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
Join our BBM Channels
BSCF General Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
my iphone is on recovery mode and i can´t turn on it, when i try to recover it from itunes i get: unknown error (36), i´ve tried to do lot of things but i can´t solve my problem. please help!!
Hi, i had the same problem. Try to find the file "apple" or "itunes" don't know it anymore exactly. Ahm well you need to delet any information or just plug in your iphone into an other computer. important is that your iphone never has been pluged in this computer before. This was what i did, and it worked!
-
[TV@Master] Problem please help
I have Msi.mother board PT8-Neo -LSR , Model No.Ms-6799 , main board bios -Phonenix ,maind board version i updat it to 2.2 , cpu size 2.4 G celleron D/256/533 , memory size 256DDram (400),display card Nvidia Riva TNT2 model 64
the problem that i face it when i put my TV@nywhere -master card ,the pc stop at the main page that show the biso version and name of bios company and the letters do not bost well it look like a virus work , and when i take tha card off the pc go normally , i tried put it to other PCI the same problem
please helpi meany by fix the problem of getting the pc go on to windows with card on PCI salot but i still have the broblem of the driver
please read my reply again
my operating system is win me and i have also another pc have XP
when i log in to windows the system show that found my TV@nywhere card but it didnt took the installatin driver for it i tried to install the driver directly
but it give me this 2 mesages when i try to install the driver
MSI TV card is not found ,stop the installation
the other message is
MSI pvs driver installatin failed
i download the driver from msi page also give me the same messages
for known on Device Manager it show me that the driver there but do not have the driver and the ? mark beside them
what to do now -
I want to buy an in-app purchase but i don`t remember my security questions and i cant access my recovery email either, what can i do? i have 100$ on my account and cant use it because of that problem, please help URGENT
If you have a rescue email address on your account then you can use that - follow steps 1 to 5 half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699 -
I'm in trouble, my iPod Touch is giving 4th shock when recharge and the battery does not last any more. who knows or has a similar problem, please help me. Note: all this after I downloaded the new version OS5.
I would make an appointment at the Genius Bar of an Apple store because of the shock issue. I doubt it was caused by the update.
-
my iphone 4 is acting like crap right i can't even restore it everytime i try to reboot it my iphone freezes at the apple logo it is ******* me off to the point where i just want to smash it how do i solve this problem please help?
Don't worry, just follow these steps to fix iPhone stuck on Apple logo
=> First of all Start your Computer and then connect with Internet connection, now Download the latest version of the iTunes application
=> Now install the iTunes application in your System and connect your Device with computer via Data cable
=> Now connect your Device with iTunes application and then Tab on summary option, see in the left side bar of iTunes
=> Now Select restore option from iTunes and then confirm the Restore Message for better results. After this unplug your Device and Restart it
I hope that will surely
Thank you... -
this is,we've encountered the following issues.
installer failed to initialize.this could be due to a missing file.please download adobe support advisor to detected the problem.
please,help me!Hi there Mylenium, is there any way you can help me? My cs6 is doing all kinds weird things lately. The liquifying too stopped working completely, when I try to work with the actions, it starts flickering and changing opacity in color by itself. It starts flickering and is completely out of whack! I tried uninstalling and reinstalling and still no luck. I tried getting in touch with adobe and no luck with that neither! Is there anyway you might be able to help?
-
My iPad stop working suddenly i see black screen only pressing the home and sleep button dose not solve the problem please help ?
Frozen or unresponsive iPad
Resolve these most common issues:
• Display remains black or blank
• Touch screen not responding
• Application unexpectedly closes or freezes
http://www.apple.com/support/ipad/assistant/ipad/
iPad Frozen, not responding, how to fix
http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
Black or Blank Screen on iPad or iPhone
http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
Home button not working or unresponsive, fix
http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
Fixing an iPad Home Button
http://tinyurl.com/om6rd6u
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Cheers, Tom -
i am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you
Did you check your security software (firewall)?
A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
See:
* [[Server not found]]
* [[Firewalls]] -
My Ipad 2 does not turn on when not plugged to electricity. Even when plugged to electricity, it constantly restarts/switches itself off. what is the problem, please help??
i plugged it and pressed the home button for a few seconds. the connect to itunes screen appeared and the moment i disconnect the cable from the electric plug, it switches off. when i connect the cable to the PC, nothing happens, its as if nothing has been done.
Maybe you are looking for
-
Problem in Vendor Open Items through F-44
Dear All, I am facing below problem. Invoice made in 2008 with Foreign Exchange Rate 49.65 and Currently we are clearing that Invoice through F-44 but now Exchange rate is 44.70. So while clearing the system is showing difference in F-44. In FBL1N (O
-
RECN (Process Contract) Error while adding condition type
Hi All I am processing the contract (RECN). While adding a new condition type, it gives me thr error Parameter KWH (area unit) for calculation formula Y3 has errors Moreover when i defined this calculation formula (Y3), units KWH are not coming in ar
-
When I open Host home page I get error message: ===================================== oracle.jbo.TooManyObjectsExeption: JBO-25013: Too many objects match the primary key oracle.jbo.Kye[798 0 UNKNOWN 537003012 UNKNOWN DA018E44DD2B08EEE044005056B03247
-
Dear Colleagues We are relooking at the configuration in our SAP PM module. Am particularly interested in going with the best practice in allocating the correct Plant Maintenance Activity types to the correct Work Order Types for both Preventative an
-
Can't get template to preview in browser with style
Hi, I made a template page ( hurray for the newbie!) I wrote some quick stuff in it just to test it out, but when I preview it has NO style. Only blank boxes where photo's should be, no columns, nada! If I recall I went to file>new> page from templat