Home All Groups Group Topic Archive Search About

Sending email without client

Author
20 May 2009 7:48 AM
Privado
Hi there,

I'm trying to send email through a VB application without having an email
client installed and configured. Is there any way to do so? I've tried to
use the MAPI control, but it calls my email client to request premission to
send email.

Thanks
NC

P.S. Please post reply in this group.

Author
20 May 2009 8:29 AM
Chris
I've used vbSendMail.dll for a while and is pretty good...

http://www.freevbcode.com/ShowCode.Asp?ID=109

Chris



Show quoteHide quote
"Privado" <oceano.web***@netmadeira.com> wrote in message
news:4a13b5b3$0$15481$a729d347@news.telepac.pt...
> Hi there,
>
> I'm trying to send email through a VB application without having an email
> client installed and configured. Is there any way to do so? I've tried to
> use the MAPI control, but it calls my email client to request premission
> to send email.
>
> Thanks
> NC
>
> P.S. Please post reply in this group.
>
>
>
>
>
>
Author
20 May 2009 1:25 PM
mayayana
As Chris said, vbSendMail is popular, and it comes
as a compiled control. On the down side, it requires
using and shipping the winsock OCX. If you don't mind
dealing with the code yourself this is also an option:

www.jsware.net/jsware/vbcode.php5#mail

  It's a userControl, somewhat similar to vbSendMail but
without the winsock OCX dependency. It uses the socket
APIs directly.

   Both of the above options function by contacting the
SMTP (outgoing) server and carrying out the standardized,
text-based conversation that constitutes the process
of sending email. The download link above contains some
explanation of that and also contains sample code for
different types of email (plain, HTML, with or without
attachments). While you don't need email software to
send email, you do need to:

* Communicate with an SMTP server
* Be familiar with the protocol for that conversation.
* Be familiar with the formatting of an email message.

  Beyond that it's very low tech. The code to do it is not
nearly so involved as is finding out the details of the
SMTP protocol and MIME format. :) You basically just call
the server, give them an ID and password if necessary, and
then transmit the text of your message.

Show quoteHide quote
>
> I'm trying to send email through a VB application without having an email
> client installed and configured. Is there any way to do so? I've tried to
> use the MAPI control, but it calls my email client to request premission
to
> send email.
>
> Thanks
> NC
>
> P.S. Please post reply in this group.
>
>
>
>
>
>
Author
20 May 2009 2:12 PM
Saga
Just to add...

I have used SMTP and it simply works. I also added a module
that mimics the Winsock control. This also uses the Winsock API
directly and has worked nicely. Saga


Show quoteHide quote
"mayayana" <mayaXXy***@rcXXn.com> wrote in message
news:%23scaK7U2JHA.240@TK2MSFTNGP06.phx.gbl...
>  As Chris said, vbSendMail is popular, and it comes
> as a compiled control. On the down side, it requires
> using and shipping the winsock OCX. If you don't mind
> dealing with the code yourself this is also an option:
>
> www.jsware.net/jsware/vbcode.php5#mail
>
>  It's a userControl, somewhat similar to vbSendMail but
> without the winsock OCX dependency. It uses the socket
> APIs directly.
>
>   Both of the above options function by contacting the
> SMTP (outgoing) server and carrying out the standardized,
> text-based conversation that constitutes the process
> of sending email. The download link above contains some
> explanation of that and also contains sample code for
> different types of email (plain, HTML, with or without
> attachments). While you don't need email software to
> send email, you do need to:
>
> * Communicate with an SMTP server
> * Be familiar with the protocol for that conversation.
> * Be familiar with the formatting of an email message.
>
>  Beyond that it's very low tech. The code to do it is not
> nearly so involved as is finding out the details of the
> SMTP protocol and MIME format. :) You basically just call
> the server, give them an ID and password if necessary, and
> then transmit the text of your message.
>
>>
>> I'm trying to send email through a VB application without having an email
>> client installed and configured. Is there any way to do so? I've tried to
>> use the MAPI control, but it calls my email client to request premission
> to
>> send email.
>>
>> Thanks
>> NC
>>
>> P.S. Please post reply in this group.
>>
>>
>>
>>
>>
>>
>
>
Author
21 May 2009 12:45 AM
MikeD
"Privado" <oceano.web***@netmadeira.com> wrote in message
news:4a13b5b3$0$15481$a729d347@news.telepac.pt...
> Hi there,
>
> I'm trying to send email through a VB application without having an email
> client installed and configured. Is there any way to do so? I've tried to
> use the MAPI control, but it calls my email client to request premission
> to send email.


I use CDO (Collaboration Data Objects). This is a library included with
Windows 2000 and later, so there's nothing you need to redistribute to use
it (unless you need to support Win9x).

As with the other suggestions you've gotten, CDO uses SMTP, so no email
client is necessary. But you do need to provide information (the SMTP server
name for certain, and logon credentials in many cases). But you'd need to do
that with ANYTHING that uses SMTP. Of course, SMTP has to be available too.

If you search www.google.com, you'll find plenty of example code for CDO.

--
Mike

P.S.  Just in case you don't know, SMTP stands for Simple Mail Transfer
Protocol and is the industry standard for sending email.
Author
31 May 2009 11:25 AM
Privado
Thank you all.

NC
Show quoteHide quote
"Privado" <oceano.web***@netmadeira.com> wrote in message
news:4a13b5b3$0$15481$a729d347@news.telepac.pt...
> Hi there,
>
> I'm trying to send email through a VB application without having an email
> client installed and configured. Is there any way to do so? I've tried to
> use the MAPI control, but it calls my email client to request premission
> to send email.
>
> Thanks
> NC
>
> P.S. Please post reply in this group.
>
>
>
>
>
>