I got a little problem while sending HTML e-mails with CDONTS.
I generate my e-mail body without problems into a string variable. When I
display it to the browser via a "response.write", it's OK, including images.
Then I set this string variable to the CDONTS.Newmail object (body
property), and I send the mail. Code:
Can somebody tell me, How can we send e-Mails with ASP without using CDONTS? Because some one told me that, it's possible to send e-Mails without using CDONTS. But i don't know how.
I want to send e-mails from my asp pages but don't know how to achieve that. I have tried to create CDO/CDONTS server objects but without luck. I guess I don't have SMTP installed or not configured appropriately.
Can you help me here? What do I need to do (and if complicated how is it done) to get an SMTP server up an running?
Could you be so kind and gives me a function which creates mail in ASP language. But I would like to create a mail with ENTER breaklines and I would like to have background changed, bold fonts, so I mean to use HTML code to create such mails. Is it possible in ASP?
While working on changing our email page, I noticed that it wasn't working - either the original or my changed page. The page would acknowledge the email as being sent (i.e. no errors were reported, and it moved to the next portion of the page).
I tracked the problem down to an <img> tag. No matter how I form it, it crashes the mail message. I even pointed it to an image on Microsoft's website, in case it was some bizarre permissions issue. I've tried it with both CDO.Message and CDONTS.NewMail. Attached is the line of code that's bombing out the mail message: Code:
1. I have image I want to display that to a button how can I do that. I want to fire the on click event too 2. if 1 is not possible then how can I set image to have oncclick event, currently I get object nbot found error:
I'd like to take a HTML document as input (preferably a HTTP URL to a HTML / PHP document), render the page as a web browser would, and display the output as a graphic - kinda similar to what the <object> tag can do in HTML (i.e. within the Windows Explorer Web View, you could "Preview" HTML documents like a graphic etc.)
It doesnt matter too much whether the rendering needs to be done in VB.net or ASP.net - although I'd prefer ASP.net!! To be honest, the only method I can think of for doing this is to open the page in an IE window using vb.net, take a sceenshot and resize! But as the request could be run as and when,
I think that it'd add a large workload to the server if it has to launch a (reasonably large) .exe every time!! Plus that method would also rely on no other windows appearing on top of the preview window before the screenshot is taken!!
I need to grab product info including images from specified websites with no RSS or common structure.
I've been searching and reading articles for 2 days and have played around with grabbing html from a site and trying to find out what to do with it at that point. I think I need to parse it for the patterns I'm looking for, (creating an array out of them?) and save that information to my DB. I also want to grab the actual images and display them from my site so that the product suppliers bandwidth is not used by the pics being on my site...
I'm thinking, with my current skills which are limited, I'll be doing this with ASP (vbscript) and javascript (if necessary). I'm not great with those but good enough to figure stuff out eventually.
Can you tell me if you think I'm on the right track and recommend any learning resources specific to the skills needed to accomplish this?
If it's not too much to ask, a bit of pseudocode might keep me on the right track... what to do and when.
Sending mails using CDONTS works great but I have (for now) just 1 minor problem. I would like to place the username (of the person located in my database) inside my input-box (type="text") and send that as a page to the person using cdonts.
here's a part of my code (simplified):
HTML = HTML & "<html>" HTML = HTML & "<head>" HTML = HTML & "</head>" HTML = HTML & "<body>" HTML = HTML & Email: <input type=""text"" name=""email"" value=""<% = strEmail %>""> HTML = HTML & "</form>" HTML = HTML & "</body>" MyCDO.Body = HTML
So the problem arises at line 5 here. He does not understand the asp-tags inside the text. Anyone who knows how to solve this?
Many of you interested about the way how to convert images (for example yours Jpegs) into ASCII graphics HTML. Well, in WDK6 that coming soon we have added new component WDK.Img2Html that will do the work for you on fly.
Usually, when I send HTML emails, I just SRC the image to my web server, but now I would like to consider embedding images for those instances when potential customers may view the email when offline.
Can this be done with CDO or is another component required?
I have a web form where a client can select which site members to send an email to.
This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates.
When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria.
All this worked perfectly when I was sending text emails, but since I changed, it sends the message correctly, but the last person gets everyone else as well. For example, if I have three members (mem1, mem2 and mem3) to send emails to, here is what happens
mem1 gets the correctly formatted message
mem2 gets mem1's correctly formatted message plus mem2's message - one right after the other. Code:
I want to write a code for sending mails using CDO object in ASP. can it is possible to send mail without mentioning name of smtp server.I am using 2k3 O.S. Also one more problem i am facing , i want to send a mail in HTML format, when receipient receive that mail some times it shows in proper HTML formated mail but some times it not showing(it just shows html tags in mails) . I am using .htmlbody property of cdo object.
I have done a ASP Prog where when the user submits the form an email is sent to the resp person.The problem is all the mails are going and sitting in the mail folder and are not moving from there to the mail id's. Can anyone tell me what i would have missed? Code:
I was just wondering what the requirements are on my computer system if I want to be able to receive e-mails (to my own mail server and not through the mail server of my ISP). I already have a functioning SMTP-server, but I guess that only works for outgoing mails, or is there maybe a way I can send mails to this SMTP-server?
Do I need a fixed IP-address? Do I need so kind of special software like Win 2003 server or maybe Exchange Server? Do I need my own domain name? Anything else I need to bear in mind if I want to have my own incoming mail server?
I have a code to send an email in my asp application. But if i send a mail through this asp code i am not to get the trademark((tm)) symbol in my subject line.
how to send mails through ASP. I know it can be done through CDO or CDNTOS objects. But it is not working. Is there any settings i have to chage for it? I am using Win2000 prof. Server IIS.
I'd like to be able to write an ASP page that users can enter requests in. When a new request is entered, the page would e-mail a list of recipients and inform them of the new request. I've never done this and really have no idea where to start.
I have a cable modem and an isp that blocks outgoing traffic on port 25.I have a form that should generate an automatic e-mail response to the page visitor when submitted.
Now I wonder if it is possible for me to have this function in my asp code if my ISP blocks port 25 or if the generated e-mail will just dissapear in cyberspace?
how can I send two emails with different messages to different users? Do I need to have two .asp files? or I can do it just in one? If yes, how do I set the obCDOMail.Body to get the value of two different variables?
I am running my information pages from access database, using ASP - This database includes an email field, i would like the subject in the email to have an automatic title.
I'm sending out the newsletters using ASP Cdonts. It is fine for few number of mails say about 20. When I started to mass mail say about 200 at a time all the mails got stuck in the queue folder (Now totally 1000 mails got stuck up). Then from my service provider I got the info that the mass mails will be stopped if they are more than 99.