Automation of Email Send

Posted on 2003-03-15
Medium Priority
Last Modified: 2012-05-04
I have written a vb program which utilizes a HTM template and then merges the template document with specific text. I have created an outlook module which will send the  email as specified by the vb program... I am trying to send the "mergedHTM.htm as the body of the email. How can I send a *.htm document which includes graphics etc as the body of the email? I am giving this question all of the points that I have as I am a new user... Sorry if you feel that the points are inadequate for the complexity(I do), but is is all that I have.
Question by:kdaly
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8146059
I think the usual way is to reference graphics that are located on a server somewhere, rather than include them in the email.

Just as I was typing this, an example arrived. Junkmail of course...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY><B>From:</B> Sarah [sempere@earthlink.net]<BR><B>Sent:</B> 16 March 2003
11:01<BR><B>To:</B> Sample<BR><B>Subject:</B> FREE 30 day supply of HGH<BR>
<P align=center><A href="http://hgh.hostserver2003.com"><IMG
src="http://hgh.hostserver2003.com/ghad.jpg" border=0></A></P>
<P align=center><A href="http://hgh.hostserver2003.com/rm.htm"><IMG
src="http://hgh.hostserver2003.com/rm.gif" border=0></A></P></BODY></HTML>

Author Comment

ID: 8146212
Thanks SimesA.....The graphic can be resolved however by utilizing it with a staionary within outlook... The real problem is that I am creating an outlook object, building a htm file by replacing @@Marker@@ with specific text and then passing the file as outlookobject.Body = MergedHTM.htm file.  The email is being created however the body is the actual file text ie... "<html xmlns:v="urn:schemas-microsoft-com:vml"xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:w="urn:schemas-microsoft-com:office:word"xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=windows-1252"><meta " etc....What am I doing wrong?  How can I pass the file and have outlook read it as an HTM file... I can do it in MS Word by creating the file then using Send it goes as an HTM email?  Thanks for your efforts.. Hope you know how to do it!!!!
LVL 70

Accepted Solution

Éric Moreau earned 300 total points
ID: 8146642

Expert Comment

ID: 9447119
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 
Post your closing recommendations!  No comment means you don't care.
LVL 70

Expert Comment

by:Éric Moreau
ID: 9447301
points to emoreau

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question