Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Asp.net 1.1 Email Issue

Reply
Thread Tools

Asp.net 1.1 Email Issue

 
 
Saad Saad is offline
Junior Member
Join Date: Oct 2007
Location: Karachi
Posts: 2
 
      12-11-2007
Hi,

I want to send email using asp.net 1.1 with C# , my code is

MailMessage msg=new MailMessage();
msg.To=toaddress;
msg.From=fromaddress;
msg.Subject="Test";
msg.Body="Test body";
SmtpMail.SmtpServer=mySmtpServer;
SmtpMail.Send(msg);

The same code works in asp.net 2.0 and even in c# 1.1 windows application. But when I try to use this code in asp.net 1.1 I get this error:

System.Runtime.InteropServices.COMException: The transport failed to connect to the server

Please help,
Thank You
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it a hardware issue or a config issue or something else Scooty Cisco 0 06-14-2008 04:02 PM
Data Storage Issue (Basic Issue) Srini Java 11 06-01-2008 01:17 AM
Service Pack 2: login issue's and power management issue's ?!? Skybuck Flying Windows 64bit 0 04-07-2007 03:12 PM
inspiron 8200 video issue and hd issue the pez lover Computer Support 1 02-05-2007 02:44 AM
Major ActiveX Domain issue. NOT LOCAL PC ISSUE joe.valentine@gmail.com Computer Support 8 02-06-2006 09:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57