Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2004, 06:26 PM
Registered User
 
Join Date: Dec 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help... Smtp.Mail.Send stopped working

It worked. Then it didn't.

In between those points the network admin did something to our Policy, which my localhost machine (XP Pro) falls under. We at first thought it was the firewall, so we disabled the firewall... didn't help. He's clueless. What's new.

Here's the code, in case it helps

Code:
try
{
    MailMessage m = new MailMessage();
    m.BodyFormat = MailFormat.Text;
    m.Priority = MailPriority.High;
    m.To = strTo;
    m.From = strFrom;
    m.Subject = strSubject;
    m.Body = strBody;

    SmtpMail.SmtpServer = "localhost";
    SmtpMail.Send(m);
}
catch
{
}
Any ideas what the net admin could have done to make my machine halt SMTP?

Thanks in advance.



 
Old October 27th, 2004, 07:26 AM
Authorized User
 
Join Date: Jul 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aravwind Send a message via Yahoo to aravwind
Default

chk ur SmtpMail.SmtpServer of outgoing messages

Instead of "localhost" use

ur mailserver name itself

for example, say, "mail.yahoo.com"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Intellisence stopped working beddowsm Visual Studio 2008 3 September 5th, 2008 12:32 PM
Send Mail without SMTP angshujit ASP.NET 2.0 Basics 2 February 19th, 2007 10:04 AM
date function stopped working in report Loralee Access 6 December 8th, 2005 07:11 PM
Send e-mail in smtp Samikaraeen Pro VB.NET 2002/2003 1 February 14th, 2005 12:01 PM
Intellisense stopped working in InterDev 6 riga1966 Classic ASP Professional 3 June 1st, 2004 05:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.