473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

SMTP Mail issue

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
Dec 11 '07 #1
5 1164
Plater
7,872 Expert 4TB
is there a firewall in the way?
Dec 11 '07 #2
I dont think its firewall issue.If it was a firewall issue than it would not have worked in asp.net 2.0 and 1.1 windows application. I think its some rights issue but i dont know where to give rights.

Plz help.
Thanks
Dec 11 '07 #3
Plater
7,872 Expert 4TB
So the website is running on the same server that windows application was?
Does the ASPNET user have privledges to send mail?
Dec 11 '07 #4
Yes the server is same.Please tell me where to give ASPNET user rights to send mail.
Thank for quick reply,
Dec 11 '07 #5
Plater
7,872 Expert 4TB
I have no idea, maybe you can specify it on the smtp client?
Dec 11 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
0
by: David | last post by:
I need to send e-mail from within an ASP.NET web page. Having problem. Need assistance Have two installation scenarios: 1) local machine (development machine connected to network); 2) network...
2
by: scorpion53061 | last post by:
I would like to know how you guys are handling this issue...... Some ISP's are now requiring authentication when using SMTP (such as orcsweb) while others are refusing to accept plain text...
2
by: desais | last post by:
I am using the cdo.dll to send out emails in C#. But instead of connecting to my local smtp to forward the email I am changing the smtp server to the recipients server for each email. This works...
1
by: ashim.chowdhury | last post by:
While using mail() function in PHP I am getting thjis error Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first I have used...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
5
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi, I'm using this code for sending emails and its working fine because I had configured SMTP in my machine in IIS. now I'm using machine as a server for this application. but when running the...
16
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text...
1
by: the_ricka | last post by:
Hi all, I'm fairly new to python, but very excited about it's potential. I'm trying to write a simple program that will accept input from a command line and send email. The parameters I used on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.