Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

Automation of Email Send

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.
1 Solution
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>
kdalyAuthor Commented:
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!!!!
Éric MoreauSenior .Net ConsultantCommented:
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.
Éric MoreauSenior .Net ConsultantCommented:
points to emoreau

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now