Archive | MS Exchange RSS feed for this section

Exchange 2003 NDR

1 Apr

Ref:http://www.amset.info/exchange/spam-cleanup.asp

Advertisements

Installing MS Exchange Server 2010

16 Mar

Some friend ask me to help on installing MS Exchange 2010 for a 50 recipient company. I’m going to document the references, process, outcome.

I hope this saves other some time, We keep posting 🙂

Getting Started

Ref:http://technet.microsoft.com/en-us/library/bb124558.aspx

Requirements

Ref:http://technet.microsoft.com/en-us/library/aa996719.aspx

Install

Note:This is a step by step article of the process.

Ref:http://www.messagingtalk.org/step-by-step-guide-on-how-to-install-exchange-server-2010-beta-p

Ref:http://blogs.technet.com/scottschnoll/archive/2009/04/15/how-to-install-exchange-server-2010.aspx

Send email to each email address in database

28 Dec

Some time ago I need something that read a email column in the database and send a generic message to the total amount of emails.

After seen this reference blog:http://forums.asp.net/t/1388722.aspx

Everything works great, I’m going to supply the code because some small things was change.

Note: The example was done in C#, I’m assuming that you create a C# web Form that create some default code.

Create this two controls:

<form id=”form1″ runat=”server”>
<div>
<asp:TextBox ID=”BodyTextBox” runat=”server”></asp:TextBox><br />
<asp:Button ID=”btnSendEmail” runat=”server” Text=”Button” OnClick=”btnSendEmail_Click” />
</div>
</form>

Code:

using System.Data.SqlClient;
using System.Net.Mail;

protected void btnSendEmail_Click(object sender, EventArgs e)
{
string strConn = ConfigurationManager.ConnectionStrings[“cs”].ConnectionString ;
using (SqlConnection objConn = new SqlConnection(strConn))
{
SqlCommand comEmailAddresses = new SqlCommand(“SELECT email from ee_email”, objConn);
objConn.Open();
using (SqlDataReader rdrEmailAddresses = comEmailAddresses.ExecuteReader())
{
while (rdrEmailAddresses.Read())
{
string emailAddress = (rdrEmailAddresses[“email”] is DBNull ? null : (string)rdrEmailAddresses[“email”]);
if (emailAddress != null)
{
bool success = false;
success = SendEmail(emailAddress);
if (!success)
{
//Handle this scenario if necessary
}
}
else
{
//Handle this scenario if necessary
continue;
}
}
}
}
}

private bool SendEmail(string emailAddress)
{

MailAddress SendFrom = new MailAddress(“username@domain.com“, “User Name“);
MailAddress SendTo = new MailAddress(emailAddress);
MailMessage Message = new MailMessage(SendFrom, SendTo);
Message.Subject = “Test email”;
Message.IsBodyHtml = true;
Message.Body = BodyTextBox.Text;
SmtpClient MessageSMTP = new SmtpClient(“yourexchangeserver”);
try
{
MessageSMTP.Send(Message);
return true;
}
catch (Exception ex)
{
//Exception handling code
return false;
}
}

Update:02-03-2010

This site one of the best on ASP.NET tutorials has a tutorial that covers mass email from database

Ref:http://aspnet101.com/tutorials.aspx?id=41

I hope this help

–evick

System.Net.Mail Reference

9 Dec

Right now I’m working with a program that opens a CSV file and upload his content to the database, after I would like to send a updated content email to all the emails that exist on a table of the database.

Ref: http://www.systemnetmail.com/default.aspx

–evick

Restringir enviar o recibir correos fuera del dominio

2 Jun

Hubo una solicitud de evitar que usuarios de un grupo (Active Directory-Group) envíe o reciba correos (emails) afuera de unos dominios específicos, encontré este recurso que habla de una manera de lograrlo.

Cuando haga las pruebas les comento sobre los resulatdos

http://www.msexchange.org/tutorials/MF009.html