Suppose i want to send an email to different user like firstname.lastname@example.org, b@rediffmail how can I configure the host and its user name and password.
Whether i need to install any personal mail server in my local machine and I have to use my local machine host for this purpose. If it is, what personal open source mail server is available and how to configure it.
If it is not required to install any mail server in my local machine, how can I configure the host and username and password. Since I can't able to get the Yahoo Mail Server Host and it's username and password. Please through some light on it.
But I have configured my outlook express with POP3 Yahoo mail Server. So whatever, mail I am getting in yahoo mail server will be accessed through my outlokk express.
For sending the email we have to use SMTP. For example If I want to send an email to the user like email@example.com, then I have to use the SMTP Server/Host name of the yahoo mail server. Even If I am using the Yahoo Host name, it has to accept it. Since it may consider the incoming mail can be a spam.
Though, If I am having a free account with Yahoo, I have heard that it won't allow to talk with their(Yahoo) SMTP server. For this purpose we need to have a paid in yahoo account.
1. I don't have a paid in yahoo mail account.
2. I want to send a mail to the user which can be a different mail account like gmail,hotmail (ex: firstname.lastname@example.org. email@example.com).
In this case how can i use the host name? which host name I have to give yahoo,gmail..?
I have used the below program for sending the mail, but I am getting the error:
Why I am getting the AuthenticationFailedException? How to resolve it? Whether I can abvle to send to only one type of host like either yahoo or gmail or rediff?
Why I am getting the FileNotFoundException?
What these files will contains? Whether I have to place this files in the required locations?
[ November 28, 2007: Message edited by: Micheal John ]
[ November 28, 2007: Message edited by: Ulf Dittmer ]
But it still isn't going to work, because -as you correctly mention- Yahoo doesn't allow SMTP access for its free acounts.
I just want to test my java program to send a mail to the user. I am developing a product, which later don't have this issue. Since the company which is going to use this product will have their own mail srver and mail wil be send to the user in that company only. So it don't have a problem.
Suppose I am doing this product for ABC copmany, they will have the domain and all thy user belongs to the company will have the mail id like firstname.lastname@example.org,email@example.com. so their mail server will send the mail.
Right now I don't have any set up and how can I test it.please throw some light on it. Please give some work around for this.
I will create the user like firstname.lastname@example.org, email@example.com..... using the Apache james. Then I am trying to configure outlook express and while configuring, it asking for POP3 and SMTP setting. What i have to give in this case? If it configured I will send the mail from my program so that I can able to get the mail in the outlook express in the offline. Am I right or it need to have a internet connection. I know in case of yahoo.com, gmail.com we need internet..
No Problem.. I somewhere misunderstood. so do you mean to say that I can configure the James xml file to give Yahoo domain. I have a free yahoo email account and can I use that?
so do you mean to say that I can configure the James xml file to give Yahoo domain.
No. Yahoo accounts are serviced by Yahoo's email servers. In any case it's not a good idea to configure a mail server on a machine that (in all likelihood) is not reachable from the net via SMTP because of firewall restrictions, and which is not always running.
What I want is just to send an email from a java program and I should able to see the mail which I had sent thru java pgm in the outlook express using apache james or by others. How can I do it? How to configure the outlook express for it. Since you are advising that it not possible to send it to yahoo/gmail free email user accounts
so I cannot send mail to yahoo/gmail using james server.
Not if the objective is to do this without a network connection.
What I want is just to send an email from a java program and I should able to see the mail which I had sent thru java pgm in the outlook express using apache james or by others.
In that case, add a new account in Outlook that uses "localhost" as its server for both SMTP and POP3. This account needs to corresond to a James account that you need to set up first. Then you can use Outlook to send and receive mail through James.
In domain I have given yahoo.com and rest of the things I have the confusion. If my machine is connected to internet and I am getting the DNS Server name and given that too in config xml file. That's enough or we need to do any other configurations
How to configure the config.xml in James server for yahoo mail server.
In domain I have given yahoo.com and rest of the things I have the confusion.
I think you're a bit confused about how email works. There is nothing to configure for sending email to any domain. Just use the @yahoo.com email address in the JavaMail client code, have it connect to James, and it will deliver the email to your Yahoo account. Since Yahoo is not part of your local network, you will need an internet connection for that, though (which you said before you wanted to avoid). As mentioned above, Yahoo mail can't be handled locally in the sense that it can be delivered to or received from a local mail server; all you can can do is send it locally.