473,782 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send email using c# without using CDONTS

dear sirs
i want to send email using c#
but i don`t want to use CDONTS
or tell me how can i use it
i don`t know any thing about CDONTS

thanks
Nov 16 '05 #1
11 6527
see other post on this about 1-2 days ago....

--
William Stacey, MVP

"Mohammed Abdel-Razzak" <an*******@disc ussions.microso ft.com> wrote in
message news:fe******** *************** *****@phx.gbl.. .
dear sirs
i want to send email using c#
but i don`t want to use CDONTS
or tell me how can i use it
i don`t know any thing about CDONTS

thanks


Nov 16 '05 #2
The old messages re the subject are unavailable.

I used this routine. Works ok. There is a limit on size. Depends on OS.

using System;
using System.Drawing;
using System.Windows. Forms;
using System.Diagnost ics;

namespace TeleM
{

public class Email:Form
{
private string e_address;
private string subject;
private string body;

public Email(string e_address, string subject, string body)
{
this.e_address= e_address;
this.subject=su bject;
this.body=body;
do_mail();
}
private void do_mail()
{
try
{
string message = string.Format( "mailto:{0}?sub ject={1}&body={ 2}",
e_address, subject, body );
Process.Start( message );
}
catch
{
MessageBox.Show ("Message is too
big.","Error",M essageBoxButton s.OK,MessageBox Icon.Warning);
}
}
}
}

"William Stacey [MVP]" <st***********@ mvps.org> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
see other post on this about 1-2 days ago....

--
William Stacey, MVP

"Mohammed Abdel-Razzak" <an*******@disc ussions.microso ft.com> wrote in
message news:fe******** *************** *****@phx.gbl.. .
dear sirs
i want to send email using c#
but i don`t want to use CDONTS
or tell me how can i use it
i don`t know any thing about CDONTS

thanks

Nov 16 '05 #3
> string message = string.Format( "mailto:{0}?sub ject={1}&body={ 2}",

the Internet Explorer mailto protocol has some serious drawback. the URL
size cannot exceed 2kb. so this is useless in general.

what I suggest is to search for the implementation of sending mail via SMTP.
it's fast and reliable.

Regards,
Wiktor Zychla
Nov 16 '05 #4

"Wiktor Zychla" <us**@nospam.co m.eu> wrote in message
news:u%******** ********@TK2MSF TNGP12.phx.gbl. ..
string message = string.Format( "mailto:{0}?sub ject={1}&body={ 2}",
the Internet Explorer mailto protocol has some serious drawback. the URL
size cannot exceed 2kb. so this is useless in general.


Not so for general use.

what I suggest is to search for the implementation of sending mail via SMTP. it's fast and reliable.


Please give some references.

Patrick.
Nov 16 '05 #5
"Patrick de Ridder" <wa********@all .here> wrote in news:c0e8f$40af 53a4
$3************* @freeler.nl:
what I suggest is to search for the implementation of sending mail via

SMTP.
it's fast and reliable.


Please give some references.


http://www.codeproject.com/useritems/IndySMTP.asp
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 16 '05 #6
Thanks,
Patrick.

"Chad Z. Hower aka Kudzu" <cp**@hower.org > wrote in message
news:Xn******** **********@127. 0.0.1...
"Patrick de Ridder" <wa********@all .here> wrote in news:c0e8f$40af 53a4
$3************* @freeler.nl:
what I suggest is to search for the implementation of sending mail via

SMTP.
it's fast and reliable.


Please give some references.


http://www.codeproject.com/useritems/IndySMTP.asp
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programmin g is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/

Nov 16 '05 #7
> "Chad Z. Hower aka Kudzu" <cp**@hower.org > wrote in message
news:Xn******** **********@127. 0.0.1...
"Patrick de Ridder" <wa********@all .here> wrote in news:c0e8f$40af 53a4
$3************* @freeler.nl:
> what I suggest is to search for the implementation of sending mail via SMTP.
> it's fast and reliable.

Please give some references.


http://www.codeproject.com/useritems/IndySMTP.asp


When I set up the email program I get this error message:

The requested name is valid and was found in the database,
but it doesn't have the correct data being resolved for.

This error occurs in Form1

at this line:

LSMTP.Send(LMsg );

The bottom text area in Form1 says:
Resolving hostname smtp.xxxxx.yy

Please assist.

Patrick.
Nov 16 '05 #8
psg
"Patrick de Ridder" <wa********@all .here> wrote in message
news:10******** *************** ****@freeler.nl ...
The requested name is valid and was found in the database,
but it doesn't have the correct data being resolved for.
AFAIK this problem has sth to do with DNS.
Resolving hostname smtp.xxxxx.yy


Have you checked if smtp.xxxxx.yy exists?
Statrt->Run:
ping smtp.xxxxx.yy
telnet smtp.xxxxx.yy 25

RGDS PSG
Nov 16 '05 #9
Yes, it exists. The app. runs ok if the connection is already established,
but not if it isn't.
"psg" <pg******@ki.ne t.pl> wrote in message
news:c8******** **@b177.ki.net. pl...
"Patrick de Ridder" <wa********@all .here> wrote in message
news:10******** *************** ****@freeler.nl ...
The requested name is valid and was found in the database,
but it doesn't have the correct data being resolved for.


AFAIK this problem has sth to do with DNS.
Resolving hostname smtp.xxxxx.yy


Have you checked if smtp.xxxxx.yy exists?
Statrt->Run:
ping smtp.xxxxx.yy
telnet smtp.xxxxx.yy 25

RGDS PSG

Nov 16 '05 #10

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

Similar topics

29
3546
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the rest of the code setting objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its properties. Do I need to somehow set IIS5 to make objCDONTS.Send work?
7
2547
by: Mario Leduc | last post by:
Hi, I have a page that sends user comments with CDONTS, works fine. Until I put a URL (http://192.168.0.1). If I use http://domain.com it works fine. Why with the numeric URL, CDONTS does not send the mail?? Thanks
2
1887
by: Jammer | last post by:
Can someone give me some sample code to use CDONTS.new to send email with an attachment? I've got sample code from the following website; http://msdn.microsoft.com/library/en-us/cdo/html/_denali_newmail_object_cdonts_library_.asp?frame=true But, I'm having trouble GETTING the relevant field from my HTML form! I can't seem to be able to get the field property. :( It just comes up as a blank.
2
3679
by: Marty | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples on how to do this using CDO. Unfortunately, I don't have that option. I must use C# and CDonts. Do you have any ideas or code? In traditional ASP, the code was: objMail = Server.CreateObject("CDONTS.NewMail");
6
11188
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
2
9386
by: microsoft.public.dotnet.languages.csharp | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples on how to do this using CDO. Unfortunately, I don't have that option. I must use C# and CDonts. Do you have any ideas or code? In traditional ASP, the code was: objMail = Server.CreateObject("CDONTS.NewMail"); objMail.To =...
2
4537
by: Paul Turley | last post by:
How do I format a message so it shows up as a web page in the mail reader. In the body of my message, I'm including a '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Traditional//EN">' tag and standard <html><body> tags but this all shows up as text in the message. What's the secret? -- Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician paul@createsolutions.net
5
8798
by: Andreas | last post by:
I am working with three computers, my developing computer, a Web Server and a Mail Server (Exchange). I am trying to send a email from the Web Server via the Mail Server to a valid email address with this code: MailMessage msgMail = new MailMessage(); msgMail.To = "test@address.com"; msgMail.From = "from@address.com"; msgMail.Subject = "Mail Example Subject";
7
2809
by: Ron Hinds | last post by:
Our webserver is currently Windows 2000 Server. Many of our pages send mail using the CDONTS object library. It is simple and very straightforward. We have built a new webserver using Windows Server 2003 Web Edition. Unfortunately, 2003 doesn't have the CDONTS library anymore. I'm looking for a new solution that is preferably as easy to use. But I would also like some additional functionality. The webserver will be hosting five web...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.