Re: Sending email from VB Windows Forms Application, NET 3.5

Tech-Archive recommends: Speed Up your PC by fixing your registry




If you don't want to use smtp and invoke CDO, then I suggest you write a
"service" that will allow you to send emails.
A quick and easy webservice is the fastest to code. but not very robust.

I would check this:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!158.entry

Writing a WCF service to handle email requests wouldn't be that hard.
If you want file attaching, then you're gonna have to send the file over to
the service as a stream or something.


You're basically writing a middleman email service. And the WCF will invoke
the dotnet email code.

You can check this out as well:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry




"Chip Pearson" <chip@xxxxxxxxxxxx> wrote in message
news:m4o2r4l8tk4bd66mb3bgfkhimroei5am66@xxxxxxxxxx

I am building a VBNET Windows Forms application in VS2008 using NET
3.5. I want the user to be able to send an email to the recipient of
his choosing. However, I don't want to require that the user provide
his password and SMTP server name (either during the app setup
configuration at installation or on the fly at run time) to send the
mail. I don't want to automate Outlook to send the mail since I
cannot be sure that the user will in fact have Outlook on his machine.

I've done it in other apps using CDO, but I want to keep the app "pure
NET" and I couldn't find equivalents to the CDO functions in NET 3.5.

Is there a way to send an email (with an attachment) in the case where
both the recipient and sender are not known until run time without
requiring the password and SMTP server name? (I'm assuming that the
user won't know what an SMTP server is, let alone what his is named.)

Any suggestions would be most appreciated. Thank you very much.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


.



Relevant Pages

  • Re: Attaching a CSV file to an Outlook Express Email from Access
    ... Why your code has not worked is for any internet mail messaging, SMTP ... then code written for CDO in that machine will fail. ... use the SMTP service built in their programs. ... To use with Windows NT server, ...
    (microsoft.public.access.externaldata)
  • Sending Email
    ... SMTP account won't be configured and CDO can't be used. ... sending email. ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 Exe Failing on Windows Server 2003
    ... I agree that we should wait for you to exclude CDO. ... > apps on the same server have had no problems with email. ... If the app still fails then I can rule out CDO and SMTP. ... The exes will run with no ...
    (microsoft.public.vb.general.discussion)
  • Re: Outlook: Get Image Content ID from existing email
    ... Did you reference CDO in the VBA project, ... If you're already using the SMTP server directly why not do all that you want using code to handle things in the SMTP outgoing messages, instead of using Outlook? ... That mailbox would have the send as permissions and Redemption could log in and do what it needed to do and then log out or keep running, ...
    (microsoft.public.outlook.program_vba)
  • Re: Von Access aus steuerbares Mailprogramm?
    ... Damit kannst Du nicht auf die CDO zugreifen, ... Es gibt die Möglichkeit, die SMTP Server direkt anzusprechen, per API Calls ... selber Codieren und als Attachments an das Mail anhängen. ... Online Hilfe von Microsoft Access ...
    (microsoft.public.de.access)