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

SMTPClient.EnableSsl using TLS?

Hello,

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");
client.Send(message);

Regards,
Fredrik
Jul 2 '07 #1
0 19090

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

Similar topics

1
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. ...
1
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...
1
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...
6
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...
7
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...
7
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
3
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 74.125.77.109:587" I'm currently on...
1
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.