|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Re: Sending emailAt 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 > All i am looking for is a drop in class that will allow me to set a Mail See here:> Server, Username & Password and then call a routine to SendMail (No > attachments) > 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. 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. > >
Inno Setup and Dependencies
Download multiple files concurrently using WinHttpRequest When the compiler freezes.... what is the rescue? How to Change $(AppPath) in PDWizard? The JET VBA File...Help Please! can i do this with real database, not just dataset Autosize DataGrid Columns Using Outlook object Macro to Print Text to file in UTF-8 JPEG File Compression |
|||||||||||||||||||||||