473,376 Members | 1,086 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,376 software developers and data experts.

SMTPClient.EnableSsl using TLS?


It seems like SmtpClient.EnableSsl = true, results in that the SmtpClient
instance tries to use TLS over SMTP... That is: it commands "STARTTLS" when
the connection has been established. My question is: Does SmtpClient also
support SMTPS (that is: SMTP using SSL) ?

SmtpClient client = new SmtpClient("server", 465);
client.UseDefaultCredentials = false;
client.EnableSsl = true; // TLS ?
client.Credentials = new NetworkCredential("whopper", "cheese");

Jul 2 '07 #1
0 19076

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Nick Z. | last post by:
I am trying to connect to my SMTP server using the SmtpClient class. For some reason its refusing to work. Here is the code and the error I get. ...
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
by: Charles Waudby | last post by:
Cannot get the SMTPClient to work with a Smart Host provided by Cable and Wireless to the NHS in England using SSL and authentication. It works using Outlook 2003 client and our code works with a...
by: =?Utf-8?B?VG9yc3Rlbg==?= | last post by:
Hi, I have a problem sending mails with the SmtpClient class. It's strange - after I boot the pc and start the program I can send mails many times. After I close the program and start it again...
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
by: Afshar | last post by:
Dear Friends, I want to send email but don't wanna use SmtpClient class, because I want more control on generated mail. Is there any good alternative? Thanks In Advance
by: TobyMcGuire | last post by:
Using the code below I get an exception: "Failure sending mail" Inner exception: "No connection could be made because the target machine actively refused it" I'm currently on...
by: Mukesh Tiwari | last post by:
When we run the application on localhost the attachment is upload succesfully and the mail is send. But when we upload the site on webserver, and run the application the attachment was not...
by: Chocolade | last post by:
Hi, Im using System.Net.Mail to send email in my application it was working great without any problems untill this morning after like 20-30 tries it was sending the email ok then suddenly this...
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.