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

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 1361
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.com

"Claudia Fong" <cd********@yahoo.co.ukwrote in message
news:OW**************@TK2MSFTNGP04.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.spaces.live.com/Blog/cns!A68482B9628A842A!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********@yahoo.co.ukwrote in message
news:OW**************@TK2MSFTNGP04.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.com - .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
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...
2
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,...
21
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. ...
4
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...
5
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...
3
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...
1
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...
6
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...
5
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...
6
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.