Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2005

Tip: Looking for answers? Try searching our database.

Mail Send Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
barry - 20 Oct 2005 14:44 GMT
Hi

   I a developing on a Windows 2003 Server environment with MS Exchange
2003 installed, using the following code i am able to send e-mail message to
Administrator@myserver.com but not to any internet address eg
barry@gmail.com

   try
   {
      MailMessage Message = new MailMessage();
      Message.To = "barry@gmail.com";
      Message.From = "administrator@myserver.com";
      Message.Subject = "Testing";
      Message.Body = "Some message";

      try
      {
          SmtpMail.SmtpServer = "MYSERVER";
          SmtpMail.Send(Message);
      }
      catch(System.Web.HttpException ehttp)
      {
      }

TIA
Barry
Jack - 20 Oct 2005 15:36 GMT
Is that a fake email address in the "From" field?

> Hi
>
[quoted text clipped - 22 lines]
> TIA
> Barry
barry - 21 Oct 2005 05:54 GMT
Hi Jack

    do you expect everything real, including user name and password???

Barry

> Is that a fake email address in the "From" field?
>
[quoted text clipped - 24 lines]
> > TIA
> > Barry
Jack - 21 Oct 2005 14:48 GMT
No! I meant do you use a fake email in the real code, not the post.

My experience is non-existing email account can send within your
domain/network, but they will have trouble when trying to send outside into
the wild. Exchange server will check that. Not sure what server you are using.

> Hi Jack
>
[quoted text clipped - 31 lines]
> > > TIA
> > > Barry
barry - 23 Oct 2005 07:56 GMT
Hi Jack

       No ill feeling meant by the remark, i am using a unregistered
domain, only for development purposes that may be a problem in sending
messages in the wild (as you call it).

Barry

> No! I meant do you use a fake email in the real code, not the post.
>
[quoted text clipped - 37 lines]
> > > > TIA
> > > > Barry

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.