Home All Groups Group Topic Archive Search About
Author
24 Apr 2009 1:01 PM
k_zeon
Hi

At present I have a program with Tasks. Once a Task is complete/Updated ,
the person who created the tasks gets sent an email.

I have a basic Winsock code  that sends using a mail server.
As it is being used inside a Local Network, this is set to 192.168.0.2 and
dont need any Username or Passwords etc.

Now I want to use this from a different location and need to change the mail
server to mail.btinternet.com, but now I need to set a Username and Password
but dont know how.

I have checked PlanetSourceCode and the ones I have found dont let you set a
Username and password etc.

All i am looking for is a drop in class that will allow me to set a Mail
Server, Username & Password and then call a routine to SendMail (No
attachments)

I hope some one can help or point me in the right direction.

All the best

Garry

Author
24 Apr 2009 1:16 PM
mayayana
> All i am looking for is a drop in class that will allow me to set a Mail
> Server, Username & Password and then call a routine to SendMail (No
> attachments)
>

See here:

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

It's a UserControl for sending SMTP email
will all details included for plain or HTML
email. The function that deals with incoming
server responses includes the code to use
a password. It's fairly simple. You can just copy
it into your code. As written, this code automatically
handles PLAIN or LOGIN passwords. The deal is
that if you need a password the server returns
a list of available modes in its text response.
My code checks for PLAIN or LOGIN. One of those
is almost always available. The former means to just
send the username and password as plain text.
The latter means to send the password Base64
encoded. There are more involved methods that use
encryption for security, but as far as I know there
are no mainstream servers that actually require
those. If you do you'd need to add extra functions
for that encoding.
Author
19 Jun 2009 5:26 PM
k_zeon
Home you can shed some light on this.....

The SMTP control has been working well until today through a normal pop
account with BT
I tried sending a plain text email through exchange Server 2007  and it came
back with Authentication error.
The Server and Username and Password were all set , and the account was
created on the Exchange Server.

Is there any issue using this control with exchange Server 2007

thanks


Garry

Show quoteHide quote
"mayayana" <mayaXXy***@rcXXn.com> wrote in message
news:O8Ash8NxJHA.4452@TK2MSFTNGP04.phx.gbl...
>> All i am looking for is a drop in class that will allow me to set a Mail
>> Server, Username & Password and then call a routine to SendMail (No
>> attachments)
>>
>
> See here:
>
> www.jsware.net/jsware/vbcode.php5#mail
>
> It's a UserControl for sending SMTP email
> will all details included for plain or HTML
> email. The function that deals with incoming
> server responses includes the code to use
> a password. It's fairly simple. You can just copy
> it into your code. As written, this code automatically
> handles PLAIN or LOGIN passwords. The deal is
> that if you need a password the server returns
> a list of available modes in its text response.
> My code checks for PLAIN or LOGIN. One of those
> is almost always available. The former means to just
> send the username and password as plain text.
> The latter means to send the password Base64
> encoded. There are more involved methods that use
> encryption for security, but as far as I know there
> are no mainstream servers that actually require
> those. If you do you'd need to add extra functions
> for that encoding.
>
>