I m displaying details of a document after getting data from multiple tables of my database. Now i wanted to generate an HTML enabled email with the same
document as content. I m using ChilkatWebMail for this purpose which has a method
objMail.send([HTML Here]).
When i send this mail it generates error. Actual problem is organizing html data before sending. I can't write whole html in send() method. Because my html is very long and fetches data at runtime. I m also uses subroutines to perform individual tasks. So whenever i call a subroutine,it generates error.
I want to generate HTML based reports with ASP. But the problem which i m having is to controll the Paging operation while printing the reports.
Unlike the Professional reports softwares as Crystal Reports and Also the Data Reports of visual basic (which are controlling the Paging automatically), a mannually generated HTML based reports need some logic to perform paging operation while printing.
have a question about sending HTML based email containing graphics. I am using the cdosys component to send an email from a ASP script. If the generated HTML message contains graphics, do I need to include those files as mail attachments to the email? Or as a easier solution is it possible to use a full URL to a image as a image source, if so how?
CDO is perhaps the most obscure art in web programming, but I hope someone would understand my issue. I have an ASP web application that needs to send email messages in HTML format only -- there is no plain text version. The messages are summaries of answers that people have input into an online survey, and need to have a tabular form.
The following somewhat plausible code does not work:
dim OMsg Set OMsg = Server.CreateObject("CDO.Message") OMsg.Fields("urn:schemas:mailheader:return-path") = BounceEmail OMsg.Fields("urn:schemas:mailheader:content-type") = "text/html" OMsg.Fields.Update
The return path header is set as desired, but the content type header stubbornly defaults to "text/plain". What is the secret to setting that header?
I have seen lots of code examples on the MSDN site for setting the content-type of body parts, but it seems needlessly complicated for my situation and doesn't work on my system anyhow (unknown ProgID error). So I was hoping to just set the message-level header to "text/html". (If I edit one of the messages from my script in notepad, changing the header to text/html by hand, it then is rendered correctly in email clients.)
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?
Anybody know a good component for sending HTML mail with WYSIWYG? I am bulding a system with a lot of Mac (maybe old versions) Internet Explorer/Netcape users.
I have a e-mail function in serverside VB, how would i put html code in the body variable so when email is recieved it looks like html page in the body. right now it just shows up as text in the body of message,
I need to know how to write a link that will e-mail html code. If it's possible, I want to have the user click on a link and have Outlook open up with a title (this part already works) and the body filled with html code that I push in. Here is my current code:
The session values are from a previous asp page that links to this page when you click an the e-mail link.
The session values both show up when I put in a response.write and the title (which is not html, just text) works in the response.redirect -- Outlook opens just fine. The problem is with the msgblock which is in html. Do I need to write a script so that Outlook knows to format for html? Any ideas?
I have purchased a form processing script, which basically saves the data into a database, emails certain people's email addresses with the form results, and also sends an email to the user that filled in the form with a thank you email.
However, all the emails are being sent in plain text format. I would like to change this to HTML so I can make the results look nicer and also make the thank you email look nicer.
I have emailed the script developers, but have yet had a response from them, so i thought id put a post on here!
I have found the part of the coding that sends the Thank You email out to the user once they have filled in the form:
'/// Send Autoresponse if replyto<>"" and (autoresponse<>"" or sendcopy<>"") then if sendcopy<>"" then autoresponse=autoresponse & vbcrlf & vbcrlf & message call sendmail(replyto,mailadmin,formname,autoresponse) end if end if .......
i am trying harder to mix this 2 solutions... but without success... the below on seen to be grabing a template and replace the data with the values posted in a form Code:
I need some help: with cdosys i'm able to send e-mail from asp using the local exchange server. Now I also have to save the sent mail into the user's mailbox for future reference: how to?
I'm using CDO to send mail to the site owner from ASP pages with forms. Recently one of my forms is occasionally sending email with what seems to be an insertion which is replacing the plain text part of the email with something else. Looking at the server sent email source, the hacked emails have the following:
Here's the scenario. I'm currently using cdosys/asp to send mail to our SMTP server. We use a product called MailFilter to check for SPAM. It doesn't work very well. If MailFilter isn't working cdosys also has problems and emails don't get sent. As these email are confirmations for customer's bookings this means lots of customers calling to see where their confirmation emails have gone. The root of the problem is MailFilter but that here to stay. So I had this thought of sending the message to a queue of some sort so at least they will get to the customer eventually rather than being lost for good. So here's the question:
Can I/How do I send messages to a mailbox on our exchange server using cdo.message?
I'm using CDO from my vb component to fire email. The problem is whenever one of the email addresses in to, or cc is wrong then none of the mails are fired even to the correct addresses. It gives an error like
The server rejected one or more recipient addresses. The server response was: 550 Relaying denied for <xfd@wre.com>
My code goes like this. Why is the mail server trying to look for the validation of email ids??I want that atleast the mail should be fired to the correct email addresses rather than no email fire. Can i achieve that.
Dim iMsg As New CDO.Message Dim iConf As New CDO.Configuration
Set iMsg.Configuration = iConf With iMsg .To = strToEmail .From = strFromEmail .CC = strCCEmail .BCC = strBCCEmail .Subject = strMailSubject If strMailFormat = "TEXT" Then .TextBody = strMailBody Else .HTMLBody = strMailBody End If If strAttachment <> "" Then .AddAttachment strAttachment End If If intPriority = 2 Then .Fields.Item("urn:schemas:mailheader:X-Priority") = cdoHigh .Fields.Update End If
I wanted to know that is there someway in ASP that I can generate images on-the-fly without using ne 3rd party component?? Like its possible in CGI-Perl to generate ne type of image on-the-fly, is there a way 2 that in ASP? OK, if the 3rd party components r the only way, then r there ne free ones available?
I need to generate some reports with graphical charts (line, pie, bar and polar). I want to generate those charts which represent database values. Hope I have to use a 3rd party control for this.
I've been surfing the web and this forum for methods to upload images through a form in a browser. I've come up with a few results, e.g. Dundas free upload component.
Besides that I've got the free product from ServerObjects.com to check the ImageSize and found some other non-component method to check the Image dimensions at: LearnASP.com.
Users should be enabled to upload a thumb for their profile. Since I can't expect each user to be a computer literate they might upload an image which is a bit too big. Are their free methods with ASP to reduce those images in size? I'm simply using ASP here with IIS. For now I can only give them an error stating that their image is too big.
A second matter might be a photogallery where there's bigger images and thumbnails. Right now I'm using Irfanview/Ifranview to quickly make thumbs for each regular image. Like with the example above it would be ideal if this can be automized as well, since users should be enabled to put up some small photogallery as well.
I know there's some fancy expensive methods to achieve this, but usually they offer loads more and all I need is something to crop or resize (resizing is best).
I'm looking for a code or a component that will enable me to generate images on the fly, through my ASP code. For example: Retrieve some textual data from a database and make an image out of it. OR Combine text and an existing image into one new image. OR Read an HTML file that contains text and image and generate an image from it. I've found programs that do it (like ABC Amber Text2Image Converter), but I fail to make it work through a code and not through a software console.
I have been asked to produce reports which will be triggered and generated automatically via scheduled tasks against data in SQL SERVER. The reports will be generated as CSV's to provide compatibility with Excel. The reports will then e-mailed as attatchments to an agreed list of recipients. This all has to be done with the use of ASP and SQL Server. Can anyone advise on how the prolem should be approached?
I'm generating excel spreadsheets online with many manufacturers. One particular manufacturer has 5000 more records than the next highest. When I query for that manuf the table does not form. Just plain text. It doesn't time out. Just doesn't form properly.
Is there a cache or setting I need to increase to get this much data?
Does anyone know of any freely usable code that helps automate the process of generating RTF files from ASP (particularly generating the code needed for tables)?
Basically I have a site where the administrator adds new students to a college system. This code just adds a new student to the database. When they are added a username is generated by taking the first letter of the forename and the first from the surname and joining them to the date.
(ie, James Brown would generate JB2005) Obviously some people will have the same initials so i'm trying to get all the records from the student table in my database that has the first two letters as the student I'm trying to add and adding the value of the count of that recordset before the date of the new students initials. (ie, if Jane Bennett was added the username would be JB12005 because there is already a user with the initials JB in the database)
At the moment if i add a new member to the database, the fields are populated but the count of the recordset is not added so I end up with duplicate usernames. I'm not sure if the recordset is even being filled or whether the recordcount is not working. Code: