Link to home
Start Free TrialLog in
Avatar of PrasadCG
PrasadCG

asked on

Send HTML Email with embedded image using VB

I need to send HTML formatted mails from VB and it should not use any object of outlook2000 or outlook.The attached imgaes should get embedded as well.Can anyone help me for this.
I have seen many individual email clients that performs this function but i need to do it programmatically.
Avatar of VGR
VGR

programmatically, it doesn't change anything : you need a MAPI client and a MAPI server (the email SMTP client), or direct access to the SMTP server - feasible? -

I would say that ***obviously*** there are some security reasons supporting the need to "talk to" the MAPI "server", ie Outlook or OE or Eudora or Communicator etc

Anyway, if you are gifted in languages, I have this code in Delphi/ObjectPascal, in case you want to have a look at it for adaptation.
My program do use MAPI to send HTML/RTF/whatever emails, with attachments, but this goes through the email client. It's transparent with Outlook Express, but not with Eudora if properly configured :D :D :D
It will say "a program tries to send email behind your back, do you want to allow this ?" :D :D
Avatar of PrasadCG

ASKER

I have a code that sends HTMLformatted mails using outlook2000 object.But the requirement is I need to know how the attachement of images is doneto a message.if you see the html formatted meggsae you can see instead of image a 'cid' no.How this no is created?
I have a code that sends HTMLformatted mails using outlook2000 object.But the requirement is I need to know how the attachement of images is doneto a message.if you see the html formatted meggsae you can see instead of image a 'cid' no.How this no is created?
perhaps you are asked to MIME-Encode attachmets ? Then this is easy. Show me what you are supposed to generate, and what you have so far
basically i have done it with outlook but now i want to do it without the help of outlook.Just an independent email sender.Yes i want to know how to mime encode.Can you tell me how its being done?
ASKER CERTIFIED SOLUTION
Avatar of VGR
VGR

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If You want to do it without Outlook or any other program - You can do it by the rfc-s documents. Use sockets to connect to the SMTP server, implement the SMTP client - server transaction by the RFC and add attachments using MIME and BASE64 encoding (RFCs again).
That may take some time to accomplish though...

--Filip
PrasadCG:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.