473,324 Members | 1,856 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,324 software developers and data experts.

Send Email From a C# Class

I have a webservice that is used to pull username and password from a SQL 2005 Express Database. In the event the user forgets I want them to be able to enter their email address and submit which will call a method of the webservice that will then query the database for that email address and then send and email to the address with a new password. I can do everything except get the email to run.

I am doing this on my local machine and will eventually be moving it to a production machin.

I have created a class CDOSys and then use all of the normal stuff for CDO but nothing goes. Can anyone help me?

Do you have to use SMTP Server with CDYSYS?
Oct 29 '07 #1
2 1090
jhardman
3,406 Expert 2GB
Hi spartacus,

Your question has been moved to the .NET Forum as it is not an appropriate question for the ASP Forum as per the Posting Guidelines.
The ASP Forum is for classic ASP and VBScript questions and answers, .NET and it's related components/languages are discussed in this forum.

moderator
Oct 30 '07 #2
Frinavale
9,735 Expert Mod 8TB
I have a webservice that is used to pull username and password from a SQL 2005 Express Database. In the event the user forgets I want them to be able to enter their email address and submit which will call a method of the webservice that will then query the database for that email address and then send and email to the address with a new password. I can do everything except get the email to run.

I am doing this on my local machine and will eventually be moving it to a production machin.

I have created a class CDOSys and then use all of the normal stuff for CDO but nothing goes. Can anyone help me?

Do you have to use SMTP Server with CDYSYS?
I've never used CDO before.
Have you seen this quick reference on how to send an email using .NET? I know this article's written for VB.NET but it can easily be used for a C# application...

You're going to have to connect to an SMTP server in order to send an email...whether it be a local to the web server your webservice is hosted on or not.

-Frinny
Oct 30 '07 #3

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

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
15
by: Steve Horrillo | last post by:
I can't figure out why this script won't insert the subject in the email and why can't I control the font and size being used? I'm not sure where to post this. Let me know where if this is OT. ...
3
by: chuckdfoster | last post by:
When using this bit of code, it sends two emails most of the time. Sometimes it doesn't send two, but most of the time it does. I put the system time (Now) in the Subject and each email has a...
3
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
2
by: sufian | last post by:
<input type="image" id="imageField" class="btn" src="<?php bloginfo('template_url'); ?>/media/global/btn-go.gif" onclick = "sendRequestPost(document.getElementById('email1').value);" /> The...
1
by: chaitanya02 | last post by:
Hi All, Well- this question might have appeared several times on this forum- but would appreciate your reply on this: I have a asp page, where customers login with some username and the pwd,...
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
0
by: karenkksh | last post by:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="CatHeader"><td>&nbspSourcing Selection<br></td></tr> <tr class="filter"><td><a href="SourcingBroker.asp?tier=tier...
0
by: karenkksh | last post by:
-------------------------------------------------------------------------------- <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr class="CatHeader"><td>&nbspSourcing...
1
by: toretto | last post by:
Hello, I have a script php that I use on my website to permit visitors to send me some email with some data, this is the html table code: <table width="730" border="0" cellpadding="0"...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.