Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

Using BPOS smtp relay in order to send mails using C# 
Friday, October 16, 2009, 15:44 - BPOS
Posted by Administrator

string const string SMTPADDRESS= "stp.mail.emea.microsoftonline.com";

try
{
  MailMessage mail = new MailMessage();
  mail.from = new MailAddress("from@company.be");
  mail.To.Add("customer1@company.be");
  mail.To.Add("customer2@company.be");
  mail.Subject = "Mail sent using BPOS SMTP relay";
  mail.Body= "This mail has been sent using ssl";

  SmtpClient smtpServer = new SmtpClient(SMTPADDRESS)
  smtpServer.Port = 587;
  //TODO: put these configurations in config files.
  smtpServer.Credentials = new System.Net.NetworkCredentials("from@company.be","password");
  smtpServer.EnableSsl = true;
  smtpServer.Send(mail);
  return true;
}
catch(Exception ex)
{
  return ex.ToString();
}




http://msdn.microsoft.com/en-us/library ... ssage.aspx
http://msdn.microsoft.com/en-us/library ... lient.aspx
add comment ( 6 views )   |  permalink   |   ( 3 / 800 )
Restore personal outlook in new BPOS exchange server 
Saturday, April 18, 2009, 11:37 - BPOS
Posted by Administrator

1) Create a back-up of your Outlook (pst file)
2) Connect your outlook to your new BPOS exchange service
3) Restore your previous outlook from the pst file
4) Click send/receive to update the exchange server (this can take a while)


Here you go!
add comment ( 2 views )   |  permalink   |   ( 3 / 669 )
BPOS and the single sign in tool - username or password are not correct 
Saturday, April 11, 2009, 14:49 - BPOS
Posted by Administrator
If you want to use the Microsoft Online Services Single Sign in tool. Check the C:\Program Files\Microsoft Online Services\Sign In\SignIn.exe.config file first!


The tool wouldn't want to authenticate me although my username & password were correct.


Why check the config file?
First of all you need to know where exactly your online service is located.





Do you contact the service using:
https://home.emea.microsoftonline.com/ or https://home.microsoftonline.com/


if you use emea (Europe, the Middle East and Africa) like I do, check the C:\Program Files\Microsoft Online Services\Sign In\SignIn.exe.config. At the bottom of this file there is an endpoint element.


make sure this elements address is referring to the correct url


EMEA users --> https://signinservice.emea.microsoftonline.com/ssoservice and not https://signinservice.microsoftonline.com/ssoservice like in my case.


this small change enabled me to use this tool without any other problem.

Do not try to connect your outlook with the BPOS Exchange server. Outlook supports only 1 exchange account at a time so the other one will be removed. Make sure you export a backup (*.PST) first!




add comment ( 2 views )   |  permalink   |   ( 3.1 / 191 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |