Hi, We're trying to send mail via Hotmail and can get it to work fine using the standard .Net SmtpClient as below but cannot find the corresponding properties to do the same using the Rebex Mail components.

All is fine apart from the EnableSsl line which we're unable to find any way of setting. Is it possible with the Rebex components?

SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.live.com", 587);

smtp.EnableSsl = true;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new NetworkCredential("{my hotmail email}",
                                         "{my hotmail password}");

msg.From = new MailAddress("mymail@hotmail.com");
msg.To.Add("me@mydomain.com");

smtp.Send(msg);

Thanks, Ian

asked 21 Jul '10, 22:59

Ian_'s gravatar image

Ian_
16
accept rate: 0%


This is a corresponding code with Rebex Secure Mail:

Smtp smtp = new Smtp();
smtp.Connect("smtp.live.com", 587, null, SmtpSecurity.Explicit);
smtp.Login("{my hotmail email}", "{my hotmail password}");

MailMessage msg = new MailMessage();
msg.From = new MailAddress("mymail@hotmail.com");
msg.To.Add("me@mydomain.com");

smtp.Send(msg);

You have to specify SmtpSecurity.Explicit to enable SSL. Please not that this only works with Rebex Secure Mail - Rebex Mail doesn't support SSL.

link

answered 22 Jul '10, 11:36

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.2k18
accept rate: 32%

Thanks Lukas, that would explain it as we are only using Rebex Mail

(23 Jul '10, 13:18) Ian
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×46
×17
×12
×3
×2

Asked: 21 Jul '10, 22:59

Seen: 850 times

Last updated: 31 Mar '11, 22:23