Groups | Blog | Home
all groups > dotnet general > october 2004 >

dotnet general : Edit and E-Mail Message before sending


Denise
10/16/2004 7:47:01 PM
When I developed applications in Access, I was able to specify a paramater to
allow the user to manually edit an e-mail message before sending it. I don't
see any way to do that with .Net.

Is there any way to show the message up I intend to send in Outlook, so the
user can make changes if necessary before sending?

Thanks,
Denise
10/16/2004 9:07:01 PM
I would like to send the e-mail through Outlook, but I could not figure out
how.

Currently, I'm using EasyMail from QuickSoft, using the following code:

Dim msgObj As New EmailMessage
Dim server As New SMTPServer
Dim smtpObj As New SMTP
msgObj.Recipients.Add(strSendTo, strName, RecipientType.To)
msgObj.From.Email = ...
Dim msgBody As BodyPart = New BodyPart
msgBody.Format = BodyPartFormat.HTML
msgObj.BodyParts.Add(msgBody)
msgBody.Body = ...
server.Name = ...
server.Account = ...
server.Password = ...
server.AuthMode = SMTPAuthMode.AuthLogin
smtpObj.SMTPServers.Add(server)
smtpObj.Send(msgObj)

Denise

[quoted text, click to view]
Daniel O'Connell [C# MVP]
10/16/2004 9:52:29 PM

[quoted text, click to view]

Are you trying to send the email via Outlook or with some other method?

Daniel O'Connell [C# MVP]
10/16/2004 11:23:14 PM

[quoted text, click to view]
You would probably have to use Outlook automation, which is beyond my scope.

[quoted text, click to view]

In that case I would simply write a winforms editor and use it to allow the
user to edit the message information.

AddThis Social Bookmark Button