Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

E-mail and SSL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 11 Mar 2008 03:10 GMT
Hi folks,

It seems that it is required to authenticate against an exchange server
(relay), if you want to send e-mail using SMTP in ASP.NET 2.0.  But how do
you ensure that the credentials you are sending are not clear text over your
network.  Does this require the installation of a digital certificate on the
web server?  The code below has smtp.EnableSsl = true.  Does this imply that
there is a digital certificate installed in IIS, or is this a feature of
Exchange?  And if this is in exchange does the exchange administrator need to
enable SSL?

Thanks in Advance...Ed.

MailMessage mail = new MailMessage("Joe.Smith@Mymail.com",
"Joe.Smith@Mymail.com"); mail.Subject = TextBox1.Text;
mail.Body = TextBox4.Text;
SmtpClient smtp = new SmtpClient("smtp.MyMail.com", 23);
smtp.Credentials = new NetworkCredential("barbara.prueba@gmail.com", "xxxxx");
smtp.UseDefaultCredentials = false;
smtp.EnableSsl = true;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Send(mail);
bruce barker - 11 Mar 2008 06:02 GMT
you don't need exchange, just an smtp server. exchange has a smtp
gateway that can be used. there are several authentication schemes the
smtp server can use. if ssl is enabled on the smtp server, its a
certificate on the smtp server, not the client.

-- bruce (sqlwork.com)

> Hi folks,
>
[quoted text clipped - 18 lines]
> smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
> smtp.Send(mail);
Ed - 12 Mar 2008 18:19 GMT
Hi Bruce -

Thanks for the reply.  So we would put the digital certificate on the SMTP
server.
Do you know of a document that walks us through how to do that? Would that
impact our existing Outlook clients? How would you configure Exchange/SMTP.

Signature

Ed

> you don't need exchange, just an smtp server. exchange has a smtp
> gateway that can be used. there are several authentication schemes the
[quoted text clipped - 25 lines]
> > smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
> > smtp.Send(mail);

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.