473,396 Members | 2,002 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,396 software developers and data experts.

Emailing using SMTP

Hi All,

Right now I am bogged down by an error message which I am not able to fix as
there are no straight forward solutions to be found in the Internet. I thank
you all in advance for your precious time.

I apologize if this is not the correct place to put my query.

I have an ASP.Net (C#) application. I have a forgot password page where I
need to send the user authentication details through email. I use the
following code snippet. It works from the development environment (Windows
XP/2000, IIS 5.1, .Net Framework 1.1) both from ASPX and code behind pages.

System.Web.Mail.SmtpMail.SmtpServer = client.smtpserver.net;

System.Web.Mail.SmtpMail.Send("Fr****@email.com", "To**@email.com", "Email
Subject", "Test Email Content");

But the above code has the following results in the production machine at
the client place (Windows 2003 Server, IIS 6.0, .Net Framework 1.1). I use
Valid SMTP address, From and To email addresses.

1. Works properly from ASPX page.
2. Throws error "Could not access 'CDO.Message' object." when used from code
behind page.

The production server has cdosys.dll and cdonts.dll registered.

Please let me know what is the root cause of the problem and how to solve
this issue. Also let me know whether the above code is the best way to send
emails.

Thanks for your time.
Ganesh K
Nov 17 '05 #1
2 1186
Ganesh,

Do you know this most complete resource for SMTP in Net

http://www.systemwebmail.net/

I hope this helps a little bit?

Cor
Nov 17 '05 #2
Hi,

It works. It was a silly "\n" in my email that I used for line break.

Anyway many thanks for your inputs Cor Ligthert

Ganesh

"Cor Ligthert" wrote:
Ganesh,

Do you know this most complete resource for SMTP in Net

http://www.systemwebmail.net/

I hope this helps a little bit?

Cor

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bill | last post by:
I am trying to have the capability to email attachments. Specifically I want to be able to email a specific attachment that I name that may be a PDF document, text doc, etc. I already have a...
2
by: Paul Hudson | last post by:
Ive developed a web based system where somebody can add a news record using ASP and MS Access database connectivity. The new record is inserted into the database and then a formatted email gets...
1
by: Andrew Wrigley | last post by:
Hi I am setting up emailing for an all Access contact management app and DO NOT want to use Outlook. Aspemail.dll (aspemail.com) works fine, but... Unless you pay the licence fee for the...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
4
by: Mike Moore | last post by:
What is the best way to launch outlook from an asp.net web page? Can you do this using MAPI or is there a control that you can purchase? We are unable to use SMTP. We use MS Exhange and MAPI...
1
by: John Smith | last post by:
Server: Windows 2000 ..Net Framework: v1.1.4322.573 I have created a class in asp.net that sends out an email message. It used to work on the live server but now it doesn't? I never made any...
3
by: Sandy | last post by:
Hello - I am attempting to email error messages to myself in the event of an error. I am using the following code: Dim mail as New MailMessage() Dim ErrorMessage = "The error description is...
5
by: Shaan | last post by:
Hi Everybody, I am incorporating emailing feature in my VB.Net application. The code is as below. When I send email to some XYZ@buffalo.edu, it sends the email successfully, but when I send it...
5
by: =?Utf-8?B?Q2hhcmxlc0E=?= | last post by:
Hi folks, I'm using WinXP Pro svc pack 2, I'm the admin, I have VS2005 and .net framework 2.0 and I'm using ASP.net 2.0 I've never ever ever over the years had any luck (over the years) in...
4
by: Ron | last post by:
I have this code on one of my forms, the code takes whatever is in textboxes and adds it to a MS Access Database. It then shows a message that the operation was completed. Is there a universal...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.