473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to connect to smtp server?

hi,
I am new to java networking, i tried to send a mail from my java program,in the code i set debug to true

i get the following error

DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false

i have no idea why this is coming even after i set the proper server name and the port.

any suggestion is most welcome, Eagerly looking for a reply.

Thanks a lot in advance
Nov 19 '10 #1
2 6994
can any one give some idea on this, I also tried by setting the auth as true and setting up the authentication details
Nov 22 '10 #2
i fixed the issue, it was due to the firewall in my network
Nov 22 '10 #3

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

Similar topics

4
by: Alex Hunsley | last post by:
I am using the smtp module to send emails via a local SMTP server on our network. I am failing with "connection refused" error, even though we definitely have an smtp server running on port 25! ...
7
by: Razzie | last post by:
Hey all, I need to connect to an SMTP server and get a notification when it gets a new mail to send. I want to be able to 'read' that email (retrieve recipient information for example). Is that...
1
by: Comconix | last post by:
I have some ideas that I would like to try in eliminating DoS, unwanted SMTP connections/sessions, etc. to my Exchange server. To do this I need to write code that examines each SMTP attempt to...
2
by: Ben Fidge | last post by:
Hi I'm working on a project where some business process rely on several external servers to perform processing. These are Sql Server x 2, Credit Card processing and Mail Server. Before...
2
by: Dino M. Buljubasic | last post by:
I'd like to be able to send email notificatons to users when certain acction is done. I used Herfried's code for this and it works fine but the problem is that I have to connect to a remote SMTP...
5
by: Dino M. Buljubasic | last post by:
I need to check if an SMTP server exist (not a local one). How can I check if an SMTP server exists from my application? Regards, -- Dino Buljubasic Software Developer...
34
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...
5
by: Chris | last post by:
I am trying to send email in C#. I wrote 2 pieces of code: 1. MailMessage mail = new MailMessage(); mail.From = "from_address"; mail.To = "to_address"; mail.Subject = "subject"; mail.BodyFormat...
17
by: William Gill | last post by:
My development machine (WinXP, Apache 2.2.4) does not have an smtp server, and I don't really want to install one if I can help it. Does anyone know of a simple method of testing php scripts that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.