authenticating, and my network admin swears their is nothing wrong with the
smtp server. Any ideas?
public void Mail_update()
{
try
{
System.Web.Mail.MailMessage TME = new MailMessage();
TME.To = "ad**********@hotmail.com";
TME.From = "Da*********@QedData.com";
TME.Body ="<HTML><HEAD><TITLE>Scholastic Needs Your
Help</TITLE></HEAD><BODY lang=EN-US vLink=blue link=blue><DIV lang=en-us
dir=ltr align=left><FONT face=\"Times New Roman\"size=3><SPAN style=\"FONT-
SIZE: 12pt\"><o:p> </o:p></SPAN></FONT></DIV>";
TME.Body += "<DIV><P style=\"TEXT-ALIGN: center\" align=center><FONT
face=\"Times New Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"><IMG
id=_x0000_i1025 height=21 src=\"http://www.hellerreports.com/RedBar.jpg\"
width=154 border=0 NOSEND=\"1\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><B><FONT face=Arial size=3><SPAN style=\"FONT-WEIGHT: bold; FONT-
SIZE: 12pt; FONT-FAMILY: Arial\">Scholastic Needs Your Help!
</SPAN></FONT></B><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><B><FONT face=Arial size=3><SPAN style=\"FONT-WEIGHT: bold; FONT-
SIZE: 12pt; FONT-FAMILY: Arial\">Make sure your school's information is up-to-
date.</SPAN></FONT></B><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"> <SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"><SPAN </SPAN><SPAN style=\"FONT-SIZE: 10pt\
"><o:p></o:p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=Arial
size=2><SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\">Dear School
Secretary,</SPAN></FONT><o:p></o:p></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">Scholastic and QED want to make sure our records
are current and need your help! Our records indicate that over the
last week the following teachers have joined your staff</SPAN>:
<SPAN style=\"FONT-SIZE: 10pt\"><o:p></o:p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=2><SPAN style=\"FONT-SIZE: 10pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"></SPAN></SPAN> </P>";
for(int x = 0; x < sendFirstName.Length; x++)
{
TME.Body += "<SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\">" +
sendFirstName[x] + " " + "<SPAN style=\"FONT-SIZE: 10pt; FONT-FAMILY: Arial\
">" + sendLastName[x]+"<br>";
}
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"> <SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"><SPAN </SPAN><SPAN style=\"FONT-SIZE: 10pt\
"><o:p></o:p></SPAN></P>";
TME.Body += "<![if !supportLists]><![endif]><![if !supportLists]><![endif]
<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New Roman\" size=2><SPAN
style=\"FONT-SIZE: 10pt\"> <o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\">Please reply to this message and inform us if the
above teachers are replacing teachers who have since moved on. We
appreciate your help and want to ensure that your school continues to receive
orders and information in the most timely and accurate fashion possible.
</SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"></SPAN> </P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><SPAN style=\"FONT-SIZE:
10pt; FONT-FAMILY: Arial\"> </SPAN>We appreciate your help as we work to
serve you better.</SPAN><SPAN style=\"FONT-SIZE: 10pt\"><o:p></o:
p></SPAN></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=2><SPAN style=\"FONT-SIZE: 10pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt\"><FONT face=\"Times New
Roman\" size=3><SPAN style=\"FONT-SIZE: 12pt\"> <o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=\"Times New Roman\" size=2><SPAN style=\"FONT-SIZE:
10pt\"><IMG id=_x0000_i1026 height=47 src=\"
http://www.hellerreports.com/red.jpg\" width=72 border=0 NOSEND=\"1\
"></SPAN></FONT><FONT size=1><SPAN Style=\"FONT-SIZE: 8pt\"><o:p></o:
p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">Quality Education Data</SPAN></FONT><FONT size=1><SPAN style=\
"FONT-SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">1625 Broadway, Suite 250</SPAN></FONT><FONT size=1><SPAN
style=\"FONT-SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">Denver, CO 80202</SPAN></FONT><FONT size=1><SPAN style=\"FONT-
SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=Arial size=1><SPAN style=\"FONT-SIZE: 8pt; FONT-
FAMILY: Arial\">800.525.5811</SPAN></FONT><FONT size=1><SPAN style=\"FONT-
SIZE: 8pt\"><o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"MARGIN: 0in 0in 0pt; TEXT-ALIGN: center\"
align=center><FONT face=\"Times New Roman\" size=1><SPAN style=\"FONT-SIZE:
8pt\"> <o:p></o:p></SPAN></FONT></P>";
TME.Body += "<P style=\"TEXT-ALIGN: center\" align=center><FONT
face=Arial size=1><SPAN style=\"FONT-SIZE: 7.5pt; FONT-FAMILY: Arial\
">________________________________________________ _________<BR>You are on the
Quality Education Data (QED) Email List. To take your email address off of
the list for future messages from <BR>Quality Education Data (QED), please
reply to this message and place \"Remove\" in the subject line.
</SPAN></FONT>";
TME.Body +="<FONT face=Arial><SPAN style=\"FONT-FAMILY: Arial\"><o:p></o:
p></SPAN></FONT></P></DIV><P align=center> </P></BODY></HTML>";
TME.Subject = "Scholastic Needs Your Help";
TME.BodyFormat = System.Web.Mail.MailFormat.Html;
System.Web.Mail.SmtpMail.SmtpServer = "Bizmail.Scholastic.com";
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendusername", "Data_Update");
TME.Fields.Add("
http://schemas.microsoft.com/cdo/configuration/sendpassword", "Welcome1");
System.Web.Mail.SmtpMail.Send(TME);
}
catch(System.Exception e)
{
System.Console.WriteLine(e.Message);
}
}
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...sharp/200511/1