.createmhtmlbody Question
I am using the .createhtmlmbody to send a html email via my site. Some times the images are included as attachments and sometimes they are not. Is there anything that could be causing this? is it something that the mail server could be doing?
I know it changes all image tags to cid:xxxxx but like i say, the same code on other sites show the imgaes as attachments and the otehrs dont!
View Replies
I am writing an application to capture data with a form and then email the rendered form in an email. I can use CreateMHTMLBody to create the email, but need to complete the values of the form variables from the submitted form.Is there a way to iterate through the form variables within the body
of the Email having created it as per the above? The only other way I can think to do this is to manually read the source page line by line, parse it and set the form values manually.
But this approach seems rather clumsy.
View Replies
View Related
I am trying to send a dynamic web page to e-mail using .createMHTMLBody with CDOSYS i can get it to work fine by using a general website such as google but when i try to send my page it fails, my website setup is: a user places an order, an order id is generated and placed into a session variable, user then goes through payment page once payment is confirmed an e-mail is sent using .createmhtmlbody, the page sent filters only the items the user has ordered by using the session variable created before. but the page errors it gives me error '8004021a' which means there is a problem with the data that the page generated, if i copy and paste the url from the code into a browser it works fine showing me the items a user has ordered.
would anyone know what i have done wrong
sorry if i haven't explained this very well
View Replies
View Related
I have an ASP page that I call on my server, say:
http://myserver.com/firstPage.asp
In this first ASP page, I want to send a MIME email that has the
contents of another ASP page which is located on the same server. So
the code looks like:
<%
Set objCdoMesg = Server.CreateObject("CDO.Message")
objCdoMesg.CreateMHTMLBody("http://myserver.com/secondPage.asp")
objCdoMesg.To = "me@mymail.com"
objCdoMesg.From = "me@mymail.com"
objCdoMesg.Subject = "Testing MIME messages"
objCdoMesg.Send
%>
This process will hang on the CreateMHTMLBody() method call. If I
move the second page to another server and reference it there, it's
fine. If I rename the second page to "secondPage.html" and leave it
on the local server and reference it that way (the second page doesn't
have any ASP code in it at this point, just HTML), it's fine.
It seems like the only time the hang occurs is when the requested file
is an ASP page and is located on the local server.
Anyone seen anything like this? I'm running on Windows 2000 Server
with all the current security updates. Seems like it may be something
in the way the process(es) are running.
View Replies
View Related