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

sending emails using C++.Net

Hey there - hopefully last newbie question i will ask for a while!
I want my application to work where you click a button - and it either:
a) open a email application - insert the correct email address and add
a subject + any attachments
or
b) just create an email and send it off with appropriate attachments
etc.
However i have a snag - i have no idea what their smtp server will be
(and the chances are, neither will they!)

i found out about mailMessage and the SmtpMail - however to send the
email i need to know the smtp.

Is there anyway of finding out from their machine what their Smtp
details are? or anyway of opening up their default mail service and
slotting in these details? I found brief glimpses about using Shell -
but not too sure about whats going on there. Better yet would be some
book or some website that gives a bit more clear idea about all of
this.

Thanks in advance!

Nov 20 '06 #1
3 1530
You can use Simple MAPI to do this. This will use whatever Email client the
user has configured and will use it to actually send the message.

"lizii" wrote:
Hey there - hopefully last newbie question i will ask for a while!
I want my application to work where you click a button - and it either:
a) open a email application - insert the correct email address and add
a subject + any attachments
or
b) just create an email and send it off with appropriate attachments
etc.
However i have a snag - i have no idea what their smtp server will be
(and the chances are, neither will they!)

i found out about mailMessage and the SmtpMail - however to send the
email i need to know the smtp.

Is there anyway of finding out from their machine what their Smtp
details are? or anyway of opening up their default mail service and
slotting in these details? I found brief glimpses about using Shell -
but not too sure about whats going on there. Better yet would be some
book or some website that gives a bit more clear idea about all of
this.

Thanks in advance!

Nov 20 '06 #2

"lizii" <cr*****@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
Hey there - hopefully last newbie question i will ask for a while!
I want my application to work where you click a button - and it either:
a) open a email application - insert the correct email address and add
a subject + any attachments
or
b) just create an email and send it off with appropriate attachments
etc.
Can anyone say "abusable for spam"?
>

However i have a snag - i have no idea what their smtp server will be
(and the chances are, neither will they!)

i found out about mailMessage and the SmtpMail - however to send the
email i need to know the smtp.

Is there anyway of finding out from their machine what their Smtp
details are? or anyway of opening up their default mail service and
slotting in these details? I found brief glimpses about using Shell -
but not too sure about whats going on there. Better yet would be some
book or some website that gives a bit more clear idea about all of
this.

Thanks in advance!

Nov 20 '06 #3
Thats a good point actually - i never thought of it that way.

We are actually using it within my company for a Fault and incident
report - plus to be used by our customers. So obviously i don't want
them to have the hassle of opening up the client - selecting the
correct information and cutting and pasting...then the attachments and
adding them.

If i can however just open them up an email client with the relevent
information attached and all they have to do is click "send" then that
would be fine. Also avoids people sending us hundreds of emails for
one problem as they are "unsure" if it was sent.

Thanks for that Ben actually - it changes my approach to the whole
thing and it will be better just to use there email client and get them
to send it - rather than me firing off an email automatically and havoc
breaking loose!

Lizii.
Ben Voigt wrote:
"lizii" <cr*****@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
Hey there - hopefully last newbie question i will ask for a while!
I want my application to work where you click a button - and it either:
a) open a email application - insert the correct email address and add
a subject + any attachments
or
b) just create an email and send it off with appropriate attachments
etc.

Can anyone say "abusable for spam"?


However i have a snag - i have no idea what their smtp server will be
(and the chances are, neither will they!)

i found out about mailMessage and the SmtpMail - however to send the
email i need to know the smtp.

Is there anyway of finding out from their machine what their Smtp
details are? or anyway of opening up their default mail service and
slotting in these details? I found brief glimpses about using Shell -
but not too sure about whats going on there. Better yet would be some
book or some website that gives a bit more clear idea about all of
this.

Thanks in advance!
Nov 21 '06 #4

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

Similar topics

10
by: Stuart Mueller | last post by:
I have an exchange server, that I sometimes use to perform mail shots to clients on our database, these can be upwards of 1000 at a time. As we don't want different clients to see who we are...
1
by: Ian Taylor | last post by:
Hi all... Is it possible to send RTF-formatted emails using the .NET SmtpMail implementation? I can only find provision in the BodyFormat property of the message to send plain text or HTML...
3
by: VB Programmer | last post by:
My company has it's own webserver, which is going to host our ASP.NET web application. We want the website to be able to send out emails. 1. What do I need on the server so that it has the...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
3
by: A | last post by:
Hi all! I would like to ask a question on sending emails... I have a web application that requires sending emails using email templates. The templates that I've made are separate HTML files...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
8
by: windandwaves | last post by:
Hi Folk I want to send out a basic newsletter from my MySql database of contacts. Does anyone know a nice and simple bit of PHP that allows me to do this? TIA - Nicolas
5
by: Jai | last post by:
Hi, I am in a problem of sending mass emails(newsletter) to my website members. Actually my problem is this: I want to send newsletter to my website members. But I had given a facility for...
1
by: robbiesmith79 | last post by:
Just so this is out there on the web, I battled the past 24 hours about this. Background info... I developed a ecommerce website in PHP 4 on a shared linux hosting plan from GoDaddy and had the...
0
by: damimkader | last post by:
Hi, I'm trying to send emails using a Macro based on an Excel Sheet and the Email Client I'm using is Lotus Notes. OS used - Windows Xp. Language - VB Below is the Code I'm using for doing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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,...
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...

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.