got the solution
we need to add the following headers and send data in the normal way
TMail.MailBody = "Date: " & TMail.StrDate & vbCrLf _
& "From: " & Mid(TMail.MailFrom, 1, InStr(TMail.MailFrom, "@") -
1) & " " & "<" & TMail.MailFrom & ">" & vbCrLf _
& "X-Mailer: Dm Mail Sender V1.1" & vbCrLf _
& "X-Accept-Language: en" & vbCrLf _
& "MIME-Version: 1.0" & vbCrLf _
& "To: " & TMail.MailTo & vbCrLf _
& "Subject: " & TMail.Subject & vbCrLf _
& "Content-Type: text/html;" & vbCrLf _
& vbTab & "charset=" & Chr(34) & "iso-8859-1" & Chr(34) & vbCrLf
_
& "Content-Transfer-Encoding: 7bit" & vbCrLf _
& vbCrLf & TMail.MailMess & vbCrLf & "."
Satya
----- Original Message -----
From: "Keith Kovala" <kovala@o...>
To: "professional vb" <pro_vb@p...>
Sent: Monday, December 09, 2002 5:48 PM
Subject: [pro_vb] RE: SMTP component
> The following link will get you source code and compiled project for
> sending mail without a client.
>
> http://www.vbip.com/winsock/winsock_simple_sender.asp
>
> And this source code/project will get you MX entries (plus much more)
>
> http://www.vbip.com/protocols/dns/vb-dns-tutorial-01.asp
>
> That should get you well on your way.
>
> Keith
>
> -----Original Message-----
> From: Satyajeet Hattangadi [mailto:satyajh@m...]
> Sent: Monday, December 09, 2002 3:42 AM
> To: professional vb
> Subject: [pro_vb] SMTP component
> Importance: High
>
>
> HI,
> Im in need of providing mailing functionality to a vb app.The app must
> not rely on nay ail client nor any external SMTP server. I figured out
> this is possible if i can code the application to do a MX lookup based
> on the recipient email address and then use winsock to send the smtp
> commands Helo,rcpt,data etc. My requirements is to be able to send html
> formatted mail. Any body worked on this kinda setup earlier?? and if yes
> an example or a link will be greatly apprecaited. Thanks Satya
>
> *********************************************************
> Disclaimer
>
> This message (including any attachments) contains
> confidential information intended for a specific
> individual and purpose, and is protected by law.
> If you are not the intended recipient, you should
> delete this message and are hereby notified that
> any disclosure, copying, or distribution of this
> message, or the taking of any action based on it,
> is strictly prohibited.
>
> *********************************************************
> Visit us at http://www.mahindrabt.com
>
>
>
>
>
>
>
*********************************************************
Disclaimer
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com