Solaris 11 SMTP Host Confirmation
Trying to find where in solaris an smtp host is configured. we are changing some relays and need to reconfigure where it sends mail through.
Hi,
if you mean how to tell a system to deliver locally received mail messages to a central
mail server for processing then this is done by making sure the mail server is known
as "mailhost.your.domain.name":
For the client system:
https://docs.oracle.com/cd/E36784_01/html/E36828/mailadmin-20.html#scrolltoc
For the actual mail server:
https://docs.oracle.com/cd/E36784_01/html/E36828/mailadmin-29.html
Regards,
Ronald
Similar Messages
-
Can't send command to SMTP host
Hi,
I am using Jdev11.1.1.2.0 and web logic servere10.3.I am using mail scheduling in weblogic.Actually in window server 2003 I am getting exception is
get message method--->Can't send command to SMTP host
javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
But same application windows7 Its working.
So can u give me the idea ? or any configuration webloigc in windows server 2003 ?
Plz help me.
Thanks
AnupI put environment variable (path) weblogic.jar but still same issue
get message method--->Can't send command to SMTP host
javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1564)
Plz give me the solution..
Thanks
Anup -
Javax.mail.MessagingException: Could not connect to SMTP host:
here is a part of my code
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public class Mail {
/** Creates a new instance of PostMail */
public Mail() {
public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException
boolean debug = false;
//Set the host smtp address
Properties props = new Properties();
props.put("mail.smtp.host", "smtp."_____".com");
// create some properties and get the default Session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
// create a message
Message msg = new MimeMessage(session);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
addressTo[i] = new InternetAddress(recipients);
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Optional : You can also set your custom headers in the Email if you Want
msg.addHeader("MyHeaderName", "myHeaderValue");
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/plain");
Transport.send(msg);
Here is the exception i rec'vd
javax.mail.MessagingException: Could not connect to SMTP host: smtp.google.com, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at Mail.postMail(Mail.java:45)
at ArchMain.<init>(ArchMain.java:30)
at ArchMain$6.run(ArchMain.java:360)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 17 morepackage MailDao;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
import java.text.*;
import java.text.DateFormat.* ;
import java.io.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.activation.*;
import javax.mail.search.*;
import java.util.Vector.*;
import java.sql.*;
public class SendMail {
String SMTP_HOST_NAME = "smtp.techpepstechnology.com";//smtp.genuinepagesonline.com"; //techpepstechnology.com";
String SMTP_AUTH_USER = "[email protected]"; //[email protected]"; //techpeps";
String SMTP_AUTH_PWD = "demo"; //techpeps2007";
public void postMail( String recipients[ ], String subject,
String message , String from,String msgType) throws MessagingException {
boolean debug = false;
Properties props = System.getProperties();
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.host", SMTP_HOST_NAME);
props.put("mail.smtp.auth", "true");
Authenticator auth = new SMTPAuthenticator();
Session session = Session.getInstance(props, auth);
session.setDebug(debug);
// create a message
MimeMessage msg = new MimeMessage(session);
// MimeMessage mimemessage = new MimeMessage(simplemailuser.getSession());
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++) {
addressTo[i] = new InternetAddress(recipients);
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Setting the Subject and Content Type
msg.setSubject(subject);
if(msgType.equalsIgnoreCase("")) {
//mimemessage.setText(s4);
msg.setContent(message, "text/plain");
else {
MimeBodyPart textBodyPart = new MimeBodyPart();
textBodyPart.setText(message);
MimeBodyPart fileBodyPart = new MimeBodyPart();
FileDataSource fds = new FileDataSource(msgType);
fileBodyPart.setDataHandler(new DataHandler(fds));
fileBodyPart.setFileName(fds.getName());
//step:5 create the multipart/container to hold the part
Multipart container = new MimeMultipart();
container.addBodyPart(textBodyPart);
container.addBodyPart(fileBodyPart);
//step:6 add the multipart to the actual message
msg.setContent(container);
try{
Transport transport=session.getTransport("smtp");
transport.connect();
transport.send(msg);
transport.close();
}catch(Exception e) {
e.printStackTrace();
private class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
String username = SMTP_AUTH_USER;
String password = SMTP_AUTH_PWD;
return new PasswordAuthentication(username, password);
public static void main(String arg[]) {
SendMail sm = new SendMail();
String[] s ={"[email protected]"};
try{
sm.postMail(s,"hello","This is testing of mail","[email protected]","");
catch(Exception e)
e.printStackTrace();
//sm.sendMsg("demo", "demo");
System.out.println("Mail Sent");
i also got the follwing error this code work fine in jcreator but i used this in netbeans it throws a exception
plz.....help
javax.mail.MessagingException: Could not connect to SMTP host: smtp.techpepstechnology.com, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:867)
Mail Sent
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:156)
at javax.mail.Service.connect(Service.java:256)
at javax.mail.Service.connect(Service.java:135)
at javax.mail.Service.connect(Service.java:87)
at com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:93)
at MailDao.SendMail.postMail(SendMail.java:86)
at MailDao.SendMail.main(SendMail.java:110) -
When will come this error Could not connect to SMTP host: son1175, port: 25
Hi all
we configure SMTP server on Linux ES,my java application run on same server
from my application trying to send a mail i got this error
[0] EmailConnection.getConnection: Attempting connection...
DEBUG: setDebug: JavaMail version 1.3.1
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "son1175", port 25
[0] EmailConnection.getConnection: Cannot connect to server with configuration
smtp://padmanab:*@son1175/. Port = 25. Security: none.
Properties: {mail.port=25, mail.smtp.timeout=30000, mail.smtp.connectiontimeout=30000}
Could not connect to SMTP host: son1175, port: 25;
nested exception is:
java.net.ConnectException: Connection refused
2005-03-30 10:03:03,751 INFO [plt.userManagement] [PoolThread-9] "Password Reset" email could not be sent to vallish at the email address, "[email protected]".
but mail server is configured currectly
please tell cause of this error out java application or my SMTP server
regards
satyaCould not connect to SMTP host: son1175, port: 25;
nested exception is:
java.net.ConnectException: Connection refusedYou didn't notice that this question is asked every day here?
Your computer can't connect to a computer named "son1175", or if it can then that computer isn't running a server listening at port 25. Talk to your network people if your computer name is the right one and ask them why not. It is nothing to do with programming. -
Hi Gurus,
is there any table which stores the SMTP Host Name in the Database? Appreciate your responses.
Thanks!Hi;
Please check below note which could be helpful:
Unable To Email Dunning Letters - Could not connect to SMTP host [ID 460664.1]
How to Perform a Meaningful SMTP Telnet Test to Troubleshoot Java Mailer For Sending Email Notifications [ID 753845.1]
XML Gateway Fails To Send Workflow Message -- javax.mail.MessagingException: Could Not Connect To SMTP Host [ID 863314.1]
Regard
Helios -
can anybody tell me if i set the SMTP server host name from .lh setup after loading all the users and objects into the repository ?
will this have any affect on the data or any other unforseen problems?
Thanks for your help.
Gthe prod system is built and now i have to set the SMTP host before roll-out.
Will there be any problems if i execute init.xml after configuring SMTP host?? -
10gR1 OEM can not verify Solaris 10 host. 10gR2 agent can upload though
Got following error when tried to verify Solaris 10 host.
I have 10gR1 (1.0.3) fresh installation without patch on server 1. Recently I installed 10g R2 agent on a Solaris 10 server 2. The agent can upload data back to the OMS without problem. But after I enter server 2 host credential to verify host connection I got the following error in emoms.log on Sever 1.
"2006-05-31 17:16:49,704 [EMUI_17_05_35_/console/pref/setCredentials$targetType=host] ERROR creds.SetPrefCreds testCreds.1281 - SetPrefCreds.testCreds(): CredsException: Connection to host bcrcxfwwd7p.something.com as user xxxx failed: IOException in sending Request :: Connection timed out"
I can use Secure shell in Solaris to connect to server2 as xxxx directly & do my work.
But somehow I can not verify the host connection from within OEM.
I don't have any problem to use OEM to manage 9 other Solaris 9 hosts and 10g databases. Is Solaris 10 specific problem?
Any suggestions are welcome
MikeHang on, are you using a 10.1 oms with a 10.2 agent reporting to it?
If so, thats an unsupported configuration.
Bazza -
Javax.servlet.ServletException: Unknown SMTP host
Hi
I am using tomcat and trying to send emails. I keep getting a javax.servlet.ServletException: Unknown SMTP host error.
I initially thought the problem was with the line: props.put("mail.smtp.host", "makethegrade.co.za"); But i checked the smtp info with the guys i'm hosing with and they said its right
I am currently setting the fields manually, so it can't be a problem with passing data around in the webpage
In my WEB-INF/lib i have jaf-1.0.2 and javamail-1.4.1 (i.e. mail.jar and activation.jar)
The code for my mailer bean is:
package mailer;
import java.io.*;
import java.util.*;
import javax.mail.*;
import javax.mail.event.*;
import javax.mail.internet.*;
public final class MailerBean extends Object implements Serializable {
/* Bean Properties */
private String to = null;
private String from = null;
private String subject = null;
private String message = null;
public static Properties props = null;
public static Session session = null;
static {
/* Setting Properties for STMP host */
props = System.getProperties();
props.put("mail.smtp.host", "makethegrade.co.za");
session = Session.getDefaultInstance(props, null);
/* Setter Methods */
public void setTo(String to) {
this.to = to;
public void setFrom(String from) {
this.from = from;
public void setSubject(String subject) {
this.subject = subject;
public void setMessage(String message) {
this.message = message;
/* Sends Email */
public void sendMail() throws Exception {
if(!this.everythingIsSet())
throw new Exception("Could not send email.");
try {
MimeMessage message = new MimeMessage(session);
message.setRecipient(Message.RecipientType.TO,
new InternetAddress(this.to));
message.setFrom(new InternetAddress(this.from));
message.setSubject(this.subject);
message.setText(this.message);
Transport.send(message);
} catch (MessagingException e) {
throw new Exception("Caught in sendMail" + e.getMessage());
/* Checks whether all properties have been set or not */
private boolean everythingIsSet() {
if((this.to == null) || (this.from == null) ||
(this.subject == null) || (this.message == null))
return false;
if((this.to.indexOf("@") == -1) ||
(this.to.indexOf(".") == -1))
return false;
if((this.from.indexOf("@") == -1) ||
(this.from.indexOf(".") == -1))
return false;
return true;
}and the error i get is:
org.apache.jasper.JasperException: Exception in JSP: /processingPages/mailer.jsp:17
14: mailer.setFrom("[email protected]");
15: mailer.setSubject("mailer test");
16: mailer.setMessage("TEst test test");
17: mailer.sendMail();
18:
19: %>
20: </jsp:useBean>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
javax.servlet.ServletException: Unknown SMTP host: mail.yourisp.com
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.processingPages.mailer_jsp._jspService(mailer_jsp.java:89)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
java.lang.Exception: Unknown SMTP host: mail.yourisp.com
mailer.MailerBean.sendMail(MailerBean.java:54)
org.apache.jsp.processingPages.mailer_jsp._jspService(mailer_jsp.java:67)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Tomcat logs give:
Jul 15, 2009 10:50:35 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.Exception: Unknown SMTP host: mail.yourisp.com
at mailer.MailerBean.sendMail(MailerBean.java:54)
at org.apache.jsp.processingPages.mailer_jsp._jspService(mailer_jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
If anyone needs any other details feel free to ask.
Any help or any pointers to a place to find a solution would be deeply appreciated
ThanksAll I can see is that you are running this in a web application. In most web application containers there's a place where you configure your mail providers and mail sessions. You seem to be ignoring that (you aren't using JNDI to get a session for example) but you are getting the default instance, so perhaps that uses that configuration anyway.
-
MessagingException "Unknown SMTP host"
Hi
I am using JavaMail to send out emails from an ecommerce application. We are now deploying the application and are getting the following message....
nested exception is:
class javax.mail.MessagingException: Unknown SMTP host: smtp.thehost.com ;
nested exception is:
java.net.UnknownHostException: smtp.thehost.com
(note the server name is not actually smtp.thehost.com) - ive used that one here for confidentality.
If i try to telnet to smtp.thehost.com on port 25 i get the expected 220 and everything seems fine. Its like JavaMail cant see the mailhost when everything else can.
I am using :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
on Redhat.
Any suggestions?
Regards
LawrenceIf i try to telnet to smtp.thehost.com on port 25 i get the expected 220 and everything seems fine. Its like JavaMail cant see the mailhost when everything else can.This suggests that you aren't telling JavaMail the right host name. It looks to me as if it has an unnecessary space at the end, but at any rate check your code.
-
Unknown SMTP host exception...
Hi all...
am a newbie in j2ee...i have to send mails from my application...
have written the code...but it gives an error like the smtp host specified, is
unknown...
can anyone pleaz tell me what r the things to be set up or what r the configurations to be done to send a mail using program...am using Transport.send(message) function to do it...plz help me...
thanx and regards,
sand...Hi,
As mentioned in the debugging steps, I turned the debugging session on by "session.setDebug(true);".I got the following printed on my console:
DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 25, isSSL false
MessagingException
javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com;
nested exception is:
java.net.UnknownHostException: smtp.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1280)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at sendMail.main(sendMail.java:28)
Caused by: java.net.UnknownHostException: smtp.gmail.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
... 7 more
I also tried to use telnet to connect as
telnet smtp.gmail.com 25
Here I got an output like
Connecting To smtp.gmsil.com...Could not open connection to the host, on port 25
: Connect failed
so now I donot understand wher the problem lies actually.
Can you please suggest anything?
Thanks -
Hello, javax.mail.MessagingException: Unknown SMTP host:
Hello,
I am trying to send a mail and use a smtp Server which is located on the internet. I am however behind a firewall and am getting the following exception being thrown:
javax.mail.MessagingException: Unknown SMTP host:
This implies that I need to provide some settings for my proxy server. I though to solve this problem I could do the following:
System.getProperties().put("proxySet", "true");
System.getProperties().put("http.proxyHost", proxyHost);
System.getProperties().put("http.proxyPort", proxyport);
This however does not solve me problem as I still get the above exception. Could someone please give help me. Any suggestions,solutions or ideas as to what the problem might be would be appreciated.
Thanks much,
Alex.HTTP is not SMTP.
Your proxy server no doubt allows your system to send
HTTP traffic to and from the outside world, and using
that code you posted would allow Java classes to do
that as well. But HTTP is not SMTP. Ask the network
people who configured your proxy server if it can act
as an SMTP proxy, and if so what you have to do to
use it in that way.Thanks much for your reply. I am however a little confused. Could you explain to me exactly what an SMTP proxy is/does.
Thanks much,
Alex. -
Sending with different SMTP host....
A friend of mine subscribes to .Mac, and sends out a newsletter to more than 400 recipients a day (which exceeds the .Mac daily quota).
I saw in the .Mac forum someone with a similar problem, and a solution someone suggested was to use a different SMTP host (such as the one that comes with their provider).
The details they gave were kind of vague with the suggestion, and what I want to do is clarify a little....
She just got a new MBP, so I was going to help set it up and configure it (upgrading from her Cube), and was just wondering if I should just set the default SMTP host as her cable provider's SMTP. Simplicity is key here.
So, here's the question:
If I set up her .Mac account so that the default SMTP account is her provider's SMTP setting, will it show as that other account for the "From" and "Reply To" when other people see it? (I don't care when people see long header/raw source-just to the average Joe/Joan).
I just want to make sure it's seamless.
Thanks.I am having a problem with multiple accounts - we use 4 ISP / SMTP accounts and when we set the outgoing SMTP server in Mail preferences for each account they seem to change without notice. Our web/business mail host mailbox will switch and try sending mail on att.net SMTP and the mail just won't go. At other times this causes the replys to come back to the wrong mail box. I could delete all but one but this causes additional problems with servers not accepting other IP mail. Anyone elso have this problem or an answer? We have a wired LAN thru a managed router but this doesn't seem to be the cause.
-
Getting nested exception(Unknown SMTP host)
hello
i have written a simple mailclient.i am running the following programme from my local machine which is under proxy server.
public class MailExample {
public static void main (String args[]) throws Exception {
String host = "mail.ab";
String from = "[email protected]";
String to = "[email protected]";
Properties props = System.getProperties();
props.put("mail.smtp.host", host);
Session session = Session.getDefaultInstance(props, null);
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO,
new InternetAddress(to));
message.setSubject("Hello JavaMail");
message.setText("Welcome");
Transport.send(message);
This host is some other machine.
i am getting nested exception as unknown SMTP host.
please help.
thanks in advanceUnknown host: it is telling you that it can't find the host you told it to look for. Either you gave it the name of a system that does not exist, or that system does not have an SMTP host running on it. I would guess the first reason, as "mail.ab" does not look right to me. (What country is "ab" and why is there only one mail server in the entire country?)
-
i got some error msg
error - javax.mail.MessagingException: Unknown SMTP host: smtp.gmail.com; nested exception is: java.net.UnknownHostException: smtp.gmail.com
code Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.port", "465");
props.put("mail.user","dineshjweerakkody");
Session mailSession = Session.getDefaultInstance(props, null);
MimeMessage msg = new MimeMessage(mailSession);
msg.setFrom(new InternetAddress(request.getParameter("mymail"),request.getParameter("myname")));
msg.addRecipient(Message.RecipientType.TO,new InternetAddress(request.getParameter("resmail"),request.getParameter("resname")));
msg.setSubject(request.getParameter("subject"));
msg.setText(request.getParameter("message"));
Transport.send(msg);
response.sendRedirect("success.jsp");
Please help me...............See the JavaMail FAQ for tips on debugging connection problems.
-
SMTP host for the e-mails in Oracle Application Server 10g
Hi,
I would like to ask in which file from the Oracle Application Server 10g is the configuration for SMTP Host for the e-mails.
Thank you,
MihaelaHi Ibrahim,
You can do an easier installation by only using base release of 10.1.2.0.2. What I stated would be good practice:
By * DB 10.2.0.3 ---- > u mean (Database Version) => Yes, use Database version 10.2.0.3
By * Identity Management 10.1.4.0.1 (OID/SSO) -----> u mean (Application Server infrastructure) => Yes, use Identity Management 10.1.4.0.1 instead of the infrastructure on Application Server 10.1.2.0.2
By * Application Server 10.1.2.0.2 -----> u mean (Middle Tire Forms&Report Services) => Yes, use Application Server 10.1.2.0.2 as middle-tier. When installed, upgrade it to 10.1.2.2 (with the latest patchset)
By * Patch Application Server DB client to 10.1.0.5 ----> u mean what? => Before you upgrade AS to 10.1.2.2 it's mandatory to upgrade the Database client software in the Application Server 10.1.2.0.2 home to 10.1.0.5. Default is 10.1.4. You'll see database client version by for instance starting SQL*Plus.
For your Developer (Forms) upgrade: Forms 4.0/4.5 - 6i -> 10g. See: http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html. If you have tons of Forms, then I recommend using a tool like the great PITTS.CON (http://www.pitss.com/en/pcon/index.htm).
Regards,
Martin
Maybe you are looking for
-
Converting video cam tape file to digital?
Before I go buy or borrow someone's digital video camera to record a digital video file, I thought I'd ask if my iMac has some ability to translate a video tape file to a digital file? IOW, is there a way to input video from my older camera and then
-
I am trying to archive old mail messages so they do not cram up my inbox. In the past I have successfully created a new mailbox for old messages, given it a month and year, and dragged messages across – but I can no longer do this. When I try to drag
-
Hola!I want to deploy my aplication in teh way that every user will have a unique licence number so I can cater updates and stuffs being sure that teh user is trusted. I have not a clue how to handle licences and how to generate them. Thanks/Violeta
-
Replaced Internal HD - Can TM Backup Continue to BU New HD?
Replaced 500 GB internal boot HD with larger 750 GB internal -- cloned 500 onto 750, and 750 now resides internally as primary boot drive (SL 10.6). Was backing up via TM to USB 1 TB volume. Since the data on my new 750 GB drive is identical to old 5
-
My IMac have no sound, light,nothing... when I turn on... What can I do?