473,657 Members | 2,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMTP question

Hi,

I have a windows application and I want to simulate the send email
function. Is it possible?
How?
Ca someone tell me?
Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***
Jul 27 '07 #1
4 1370
Claudia,

Take a look at the System.Net.Mail namespace. This namespace has
classes which will allow you to send email. You will have to use .NET 2.0
or above.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Claudia Fong" <cd********@yah oo.co.ukwrote in message
news:OW******** ******@TK2MSFTN GP04.phx.gbl...
Hi,

I have a windows application and I want to simulate the send email
function. Is it possible?
How?
Ca someone tell me?
Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***

Jul 27 '07 #2

I have complete sample code at:
http://sholliday.space s.live.com/Blog/cns!A68482B9628 A842A!138.entry

1.1 and 2.0 samples.

You can see what the correct objects to use are.... 1.1 or 2.0.



"Claudia Fong" <cd********@yah oo.co.ukwrote in message
news:OW******** ******@TK2MSFTN GP04.phx.gbl...
Hi,

I have a windows application and I want to simulate the send email
function. Is it possible?
How?
Ca someone tell me?
Cheers!

Claudi

*** Sent via Developersdex http://www.developersdex.com ***

Jul 27 '07 #3
Hallo
Can you please help me with this convertion, as I have no idee how it works...
It looks like they replace all the "=" with "=3D" and then they are adding "=" every then and again??

It feels to me as if I am missing the whole point..

Thank you in advance for taking the time to leek at my request.
Johan

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Aug 2 '07 #4

Quoted-Printable encoding is part of the MIME spec.

http://www.ietf.org/rfc/rfc2045.txt?number=2045

It's a little more complicated than what you describe, but not much.
:-)

It's possible there is already code in the framework to do this for
you as part of the mail handling routines, but it may not be exposed.

There are a bunch of projects on codeproject.com that include
quoted-printable encoders so you can look through those for an
existing class. Here's one option:

http://www.codeproject.com/dotnet/TextCoDec.asp

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 02 Aug 2007 07:25:16 -0700, Johan Jacobs wrote:
>Hallo
Can you please help me with this convertion, as I have no idee how it works...
It looks like they replace all the "=" with "=3D" and then they are adding "=" every then and again??

It feels to me as if I am missing the whole point..

Thank you in advance for taking the time to leek at my request.
Johan

EggHeadCafe.co m - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Aug 3 '07 #5

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

Similar topics

1
9876
by: ehendrikd | last post by:
hi all i have written a php site that uses the mail() on windows and i had to state in the php.ini file which smtp server to use. have now migrated this site to a redhat 9 server, but i still want the emails to be sent via the smtp server i stated earlier. this may infact be a sendmail question, im not sure, (perhaps changing sendmail_path in php.ini) but has anyone managed to send email via
2
2804
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be used. function setSMTPParams($host = null, $port = null, $helo = null, $auth = null, $user = null, $pass = null) { if (!is_null($host)) $this->smtp_params = $host;
21
3366
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. Nancy W
4
1788
by: Philippe C. Martin | last post by:
Hi, I am testing the smtp module and have the following question: in the code below (taken from net sample) prior to adding the "Subject:" field, the email client found the "From" and the "To". Without the "Subject:" field on I get this: Email client = Evolution: the "From" field is blank Email client = KMail: the "To" field is blank
5
2495
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it goes out every time. I thought about wrapping a try-catch handler in loop that keeps on retrying if delivery fails. Is this a good idea? If not, what is the best way of handling this kind of thing? Thanks,
3
3025
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it identifies itself as the computer name which is not in domain.com format, triggering spam filter problems). Instead, I want to have my code send through an SMTP server of a company that we pay for mail service. But they require a username and password....
1
1522
by: Nigel | last post by:
I know there are lots of threads covering my question but i am still unable to send e-mails from an asp.net page. Messages are not even going into the logs. Here is the code that i am using to send the e-mail. MailMessage objMail = new MailMessage(); objMail.From = "nigel@***"; objMail.To = nigel@***; objMail.Subject = txtSubject.Text;
6
1523
by: Dushyant | last post by:
Hi everyone, I am working on an application, where I need to mail some xml files as attachments. I tried to use System.Diagnostic.Process class but it does not provide any help for attaching a file automatically. Then I resorted to System. Web namespace but here also it does not take the SMTP server's address automatically. I have to mention it. The application on which I am working is a general purpose application and user might not be...
5
1472
by: trevisc | last post by:
Good afternoon everyone. I'm currently trying to build an automated invoice system that collects dynamic data and automatically sends out invoices. In my test database I have 23 companies that i'm trying to send out. I am currently using Web.Mail.MailMessage with my cable internet SMTP as the server to send out to. I've noticed that if I just run it straight through it will time out (almost like the server detects it's being over...
6
5190
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg as: can anyone help me why such problem occurs, how to over come this problem.
0
8421
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
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
8742
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
8518
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
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5643
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
4173
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
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.