Saturday, March 24, 2012
This message has been blocked for your safety
attached the print screen and here is the complete code:
NetworkCredential network_credential = new
NetworkCredential("info@dotnet.itags.org.zatoor.com", "xxxxxx");
MailMessage mail_message = new MailMessage();
// SmtpClient smtp_client = new SmtpClient("localhost");
SmtpClient smtp_client = new SmtpClient("smtp.zatoor.com");
smtp_client.UseDefaultCredentials = false;
smtp_client.Port = 25;
smtp_client.Credentials = network_credential;
string html_message = null;
html_message = "<html>";
html_message += "<head>";
html_message += "<meta http-equiv=Content-Type
content='text/html; charset=windows-1252'>";
html_message += "</head>";
html_message += "<body>";
html_message += "Thank you for registering with zatoor.com
and welcome to the world of free classifieds. We hope you will enjoy using
our website.";
html_message += "<br>";
html_message += "<br><br>";
html_message += "zatoor.com Team";
html_message += "</body>";
html_message += "</html>";
mail_message.From = new MailAddress("info@dotnet.itags.org.zatoor.com",
"zatoor.com");
mail_message.To.Add(txtEmailAddress.Text);
mail_message.CC.Add("jrahma@dotnet.itags.org.yahoo.com");
// mail_message.Priority = MailPriority.High;
mail_message.IsBodyHtml = true;
mail_message.Subject = "welcome to zatoor.com";
mail_message.Body = html_message;
mail_message.DeliveryNotificationOptions =
DeliveryNotificationOptions.OnFailure;
smtp_client.Send(mail_message);Have you tried to click on "Learn more" ?!!!
It looks like you are using a software (not sure if this is a server side
firewall software or if you try to read the message in a client) that
consider this as a potential threat. IMO your best is to look for support at
this third party product site as it looks like this issue is not related to
.NET...
Patrice
"Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
F12C8C18-20DE-4A06-A415-2FC181265544@.microsoft.com...
>I am getting this message when sending using System.Net.Mail... I have
> attached the print screen and here is the complete code:
> NetworkCredential network_credential = new
> NetworkCredential("info@.zatoor.com", "xxxxxx");
> MailMessage mail_message = new MailMessage();
> // SmtpClient smtp_client = new SmtpClient("localhost");
> SmtpClient smtp_client = new SmtpClient("smtp.zatoor.com");
> smtp_client.UseDefaultCredentials = false;
> smtp_client.Port = 25;
> smtp_client.Credentials = network_credential;
> string html_message = null;
> html_message = "<html>";
> html_message += "<head>";
> html_message += "<meta http-equiv=Content-Type
> content='text/html; charset=windows-1252'>";
> html_message += "</head>";
> html_message += "<body>";
> html_message += "Thank you for registering with zatoor.com
> and welcome to the world of free classifieds. We hope you will enjoy using
> our website.";
> html_message += "<br>";
> html_message += "<br><br>";
> html_message += "zatoor.com Team";
> html_message += "</body>";
> html_message += "</html>";
> mail_message.From = new MailAddress("info@.zatoor.com",
> "zatoor.com");
> mail_message.To.Add(txtEmailAddress.Text);
> mail_message.CC.Add("jrahma@.yahoo.com");
> // mail_message.Priority = MailPriority.High;
> mail_message.IsBodyHtml = true;
> mail_message.Subject = "welcome to zatoor.com";
> mail_message.Body = html_message;
> mail_message.DeliveryNotificationOptions =
> DeliveryNotificationOptions.OnFailure;
> smtp_client.Send(mail_message);
>
can you please expian what do you mean?
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:uKsNceTyHHA.4712@.TK2MSFTNGP04.phx.gbl...
> Have you tried to click on "Learn more" ?!!!
> It looks like you are using a software (not sure if this is a server side
> firewall software or if you try to read the message in a client) that
> consider this as a potential threat. IMO your best is to look for support
> at this third party product site as it looks like this issue is not
> related to .NET...
> --
> Patrice
> "Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
> F12C8C18-20DE-4A06-A415-2FC181265544@.microsoft.com...
>
AFAIK this message is not produced by the DOTNET framework but by a third
party product that blocks the message you try to send for some reason.. In
this message you have a "Learn more" link that you could click to see why
this third party software choosed to block this transmission.
So for now it looks like to me this is not at all related to a programming
issue but to a third party software (firewall, antivirus ?)
Or is this that your mail provider replaced the screenshot by a message of
its own ;-) - Generally just reproducing the text should be enough. The
message I see is the "This message has been blocked for your safety"" whih
is not a DOTNET message...
Patrice
"Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
uOjWFueyHHA.5380@.TK2MSFTNGP04.phx.gbl...
> can you please expian what do you mean?
>
> "Patrice" <http://www.chez.com/scribe/> wrote in message
> news:uKsNceTyHHA.4712@.TK2MSFTNGP04.phx.gbl...
>
but I am not getting this problem when sending to yahoo address?!! it only
shows when sending to hotmail? any parameters I should set in order to make
the email trusted?
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:ey3I1qfyHHA.1176@.TK2MSFTNGP05.phx.gbl...
> AFAIK this message is not produced by the DOTNET framework but by a third
> party product that blocks the message you try to send for some reason.. In
> this message you have a "Learn more" link that you could click to see why
> this third party software choosed to block this transmission.
> So for now it looks like to me this is not at all related to a programming
> issue but to a third party software (firewall, antivirus ?)
> Or is this that your mail provider replaced the screenshot by a message of
> its own ;-) - Generally just reproducing the text should be enough. The
> message I see is the "This message has been blocked for your safety"" whih
> is not a DOTNET message...
> --
> Patrice
> "Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
> uOjWFueyHHA.5380@.TK2MSFTNGP04.phx.gbl...
>
Don't know. Once again for now it doesn't look to me this is a problem at
the DOTNET framework level.
Don't you have a window title or something that could tell you what is the
product that display this message ? Don't you know if this looks like
screens displayed by your antivirus, firewall software etc... Don't you see
a productname somewhere ?
"Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
35430664-840E-460A-ACEC-545E37C8A0A0@.microsoft.com...
> but I am not getting this problem when sending to yahoo address?!! it only
> shows when sending to hotmail? any parameters I should set in order to
> make the email trusted?
>
> "Patrice" <http://www.chez.com/scribe/> wrote in message
> news:ey3I1qfyHHA.1176@.TK2MSFTNGP05.phx.gbl...
>
no, it dosn't show any name
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:OrUdNUsyHHA.1184@.TK2MSFTNGP04.phx.gbl...
> Don't know. Once again for now it doesn't look to me this is a problem at
> the DOTNET framework level.
> Don't you have a window title or something that could tell you what is the
> product that display this message ? Don't you know if this looks like
> screens displayed by your antivirus, firewall software etc... Don't you
> see a productname somewhere ?
> "Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
> 35430664-840E-460A-ACEC-545E37C8A0A0@.microsoft.com...
>
I gave this a look. It looks like you might as well have this when you read
this mail in hotmail ? What didn't you said that ?!
Click on Open Message to read the mail. Click On "Learn more" or the FAQ to
find out why Hotmail classified this message as potentially dangerous. For
example an option could simply black HTML mails (that could contains
JavaScript exploits) ?
So it looks like an hotmail issue. Nothing to do with DOTNET IMO.
Patrice
"Jassim Rahma" <jrahma@.hotmail.com> a crit dans le message de news:
FF331512-9F1A-49F6-AC24-6D2BBB39314B@.microsoft.com...
> no, it dosn't show any name
>
> "Patrice" <http://www.chez.com/scribe/> wrote in message
> news:OrUdNUsyHHA.1184@.TK2MSFTNGP04.phx.gbl...
>
Tuesday, March 13, 2012
Thread was being aborted
I am getting an exception
when i print e.message it is::'Thread was being aborted.'
e.stacktrace is:: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at System.Web.HttpResponse.Redirect(String url) at EmailMessage.BtnSendMail_Click(Object sender, EventArgs e)'
what should i do?
Hey,
With your Response.Redirect statement, make it Response.Redirect("url destination", false);
Hi sujithukvl,
"thread was being aborted" is an known issue. you can find more detailed information by clicking the following links.
http://communityserver.org/forums/p/475527/556989.aspx
http://www.msdner.com/forum/thread261068.html
http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.adonet/topic3899.aspx
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.