473,585 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JAVA Mail and SMTP

dmjpro
2,476 Top Contributor
i have been trying to do mail programming in java.... al in vain

one thing still irritating that SMTP ..... the server must have the SMTP service provider.

how can i know that the server is SMTP supported?????

is it the extra job i have to do .... if i have JAVA MAIL package????

total thing is now mess up to me.

plz help!
Apr 17 '07 #1
3 2199
JosAH
11,448 Recognized Expert MVP
I don't understand your problem; it's like an ordinary letter: you can't just throw
it up in the air and hope for the best. You have to get your letter to a post office
one way or another. Think of that post office as an SMTP server.

Most (if not all) SMTP servers only accept incoming mail from senders in
the same domain (a feeble attempt to avoid spam etc. because you can forge
sender addresses quite easily).

kind regards,

Jos
Apr 17 '07 #2
dmjpro
2,476 Top Contributor
thanx for ur help.

i ll be very grateful if u explain me with sample code line by line.

regards.
Apr 17 '07 #3
JosAH
11,448 Recognized Expert MVP
I wrote a little example in this thread.

kind regards,

Jos
Apr 17 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
9864
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
2
1640
by: JohnK | last post by:
Hi all, This is my first time visiting this group. I already tried two other java groups, but those aren't very populated. I don't know if it is the right one, otherwise please tell me in which group I have to put me question. And yes I know that I'm multiposting, crossposting or whatever. Reason is that I saw this group...
34
18203
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
0
1093
ashsa
by: ashsa | last post by:
Hi all, I was jus working around with the JavaMail API and was stuck at the end with an error from the smtp server saying that Your email message was unable to be sent because your mail server rejected the message: 550 Invalid recipient : b@b.com Googled for almost the entire day for a solution but in no avail.
1
2898
rsrinivasan
by: rsrinivasan | last post by:
Hi, I am Sending mail from java. When I run the program I hava Following error.. DEBUG: setDebug: JavaMail version 1.4ea DEBUG: getProvider() returning javax.mail.Provider DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "smtp.hotpop.com", port 25, isSSL false 220...
3
3112
by: crossroadsk | last post by:
<pre> Hi all, I'm new to Javamail concept and i got the following exceptions when i tried to send a simple mail. First exception is : using java Could not connect to SMTP host: smtp.gmail.com, port: 25; Second Exception is : java.net.SocketException: Software caused connection abort: connect
7
10936
by: lilbit02 | last post by:
I'm trying to figure this out with out any Java experience. I'm trying to write a program that will send a SMTP email. I was given a shell and I do know how to establish a connection. My next question is how do I Send MAIL FROM command, Send RCPT TO command, Send DATA command, Send message data and End with line with a single period. Will this be...
1
6982
dmjpro
by: dmjpro | last post by:
I am using SMTP mail server. I am sending a mail from SMTP client using Java Mail. But now i am getting this exception... Relaying denied. IP name possibly forged The debug informations given below .... "DEBUG: setDebug: JavaMail version 1.4.1 DEBUG: getProvider() returning javax.mail.Provider DEBUG SMTP: useEhlo true, useAuth false
2
5200
by: tiijnar | last post by:
Hi Friends, I Have written a java code to send mails to some receipients.It sends to internal mail ID's in the office. An SMTP server has been provided to me. But the problem is that the mails are being sent to Junk folder of the recepients. 1) The mail contains only plain text, it doen't have things like images or something which is treated...
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.