Sending Dynamic Html Email

I am currently building an emailing system into our asp management system. From this we will be able to setup mail templates (html stored in mssql database) and select who we want to send them to.The html in the database is only the middle part of the html file being sent. All the emails are based on the same design template using a single html file to which I pass a variable saying which body to get from the database <%=writeBody%>. So far this is all working fine and the emails are sending using cdo.

..createMHTMLBody
"http://localhost/helpCentric/responseSendForm.asp?"&qString

What i am trying to do now is personalise the emails and on the responseSendForm.asp I connect to the database and create variables such as fName, lName etc.I need to be able to write these variables in the html in the database which will then display in the body using the <%=writeBody%>.As you may have guess this is not working and I dont know enough aboutthe .createMHTMLBody to work out what to do.

View Replies


ADVERTISEMENT

Need Help Sending CDO Email With Dynamic HTML Attachment

I'm using CDO SYS to send email messages. I can attach a file just fine.
However, I need to attach an HTML page that's generated on the fly by my
ASP code. The attachment source code gets assembled into a VB string. How
do I attach this? I think there was an easy way in CDONTS but that's no
longer an option.

View Replies View Related

Sending HTML Email

I have a client that wants to send HTML based email.

Building and sending isn't a problem, but he wants to include a plain text link at the top of the email that will display if the user doesn't not accept HTML email. Maybe it is the product we are using to send the email, but there is no way to include non-HTML formatted text in the email. Is there a way to send non-HTML and HTML in a single email?

View Replies View Related

Sending Dynamic Input Data Through Email

I have sent form data through email using .asp before but I have never done it when you are using a form that has createelements involved. I have a form w/ 3 inputs, two text inputs and one select combo box. if i click an add user button it will appear with another row of 2 text boxes and a combo box, and you can repeat up to as many as you need. I am trying to figure out how to mail all of those values to someone. Is there an easy way. Below I will attach the code that I use to name the fields when they are generated maybe it will help....

<SCRIPT language="javascript">
counter = 1

function addRow(id){
var tbody = document.getElementById(id).getElementsByTagName("TBODY")[0];
var row = document.createElement("TR");
row.setAttribute("id","tr"+counter);


var td2 = document.createElement("TD");
var input2 = document.createElement("INPUT");
input2.setAttribute("type","text");
input2.setAttribute("name","pName"+counter);
input2.setAttribute("id","name"+counter);
td2.appendChild(input2);

var td3 = document.createElement("TD");
var input3 = document.createElement("INPUT");
input3.setAttribute("type","text");
input3.setAttribute("name","userName"+counter);
input3.setAttribute("id","prc"+counter);
td3.appendChild(input3);

var td4 = document.createElement("TD");
var input4 = document.createElement("select");
input4.name = "Role"+counter;
input4.id = "Role"+counter;
option = document.createElement("OPTION");
option.value ="Admin";
option.text = "Admin";
input4.add(option);
option = document.createElement("OPTION");
option.value ="Read";
option.text = "Read";
input4.add(option);
option = document.createElement("OPTION");
option.value ="Read/Write";
option.text = "Read/Write";
input4.add(option);

td4.appendChild(input4);

row.appendChild(td2);
row.appendChild(td3);
row.appendChild(td4);
tbody.appendChild(row);

counter++;

}
</SCRIPT>

View Replies View Related

Creating And Sending Html Email

i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50). i know how to create a plain text email by creating a text file, with content following certain format, and saving that file into the correct '..mailrootpickup' folder, and it is working fine.

what i would like to know is how to create and send an email in html format from my server script. i will appreciate anyone who can tell me where to find instructions on
how to do this.

View Replies View Related

Sending Launching Email With HTML Attachment

Can anyone get me started or point me to a resource for some help?

I have an ASP page that displays various boxes, tables, and information. I want to be able to click an "Email" button and have the asp page save the page as an attachment (html?) and then launch Outlook and automatically attach the page to it and enter the email address of the person I want to send it to.

I can't just send a link because the page is generated on an Intranet and I need to send it to people outside the network. So, I need to save a print screen of the page and then have Outlook grab that and the recipient's email address and put those into Outlook so the sender can review and send out.

View Replies View Related

Sending Html With Picture Formated Email

I can send email in html format using cdo.message. but when i insert picture in that html tags. but that email has no pictures....

View Replies View Related

Sending Email Both As Html And Plain Text

Is it possible to send email both as plain text and html in the same email
using asp?,,,if so...how do you do it and what do you need to set up to do
it.

View Replies View Related

Sending CDONTS HTML Email Issue

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:

View Replies View Related

Sending Dynamic Messages Using Asp

How do I use AspEmail with MySql to generate dynamic emails? For Eg: In the code below, assume the 1 to 100 comes from a Database. In this case how can I have a message with the body "Thank You for your Business" 100 times? Code:

View Replies View Related

Sending HTML Mailer With SWF

I am trying to send the following HTML mail thru the ASP CDO component.

This is the HTML mail i wanna send from Page 1:

Code:....

View Replies View Related

Sending HTML Mailer With SWF

I am trying to send the following HTML mail thru the ASP CDO component.

This is the HTML mail i wanna send from Page 1:

Code: .....

View Replies View Related

Sending Emails In Html Format

I am trying to send an email from an asp page in html format unfortunately when parenthese appear in the HTML code of the page to be emailed the ASP page reads them and trys to interpret them as ASP code

<div align="center">

any suggestions?

View Replies View Related

Sending Mail With Asp From An Html Form

I need to send a form via email using ASP to my client. My form is in HTML.

I'm using method="POST" action="mail.asp"

How do I grab the fields and send them using ASP?

here's the first part of my html:

View Replies View Related

Sending Formatted HTML Newsletter

I want to build a system that sends formated HTML newsletter. Like the one we recevive from microsoft. How do we include the whole page with the pictures and style in an e-mail

I am using CDOSY

Do those developers use HTMLBody property or something else

View Replies View Related

Html Form Sending Over Blank Data

I have a form that is being sent over to an asp page. About 5% of the time, the form fields are blank when the ASP page is reading them. But when the user hit the submit button, they were not blank, because I have client-side validation that will not allow the submit to occur if any of the fields are blank. When this occurs, all the fields in the request.form object are blank?

View Replies View Related

Dynamic HTML

i'm trying to display certain labels, text boxes and dropdowns based on a session variable passed from a previous page. i'm wondering how i can do this with C# in an asp.net web app.

View Replies View Related

Sending (text Or Html Version) Messages Using JMail

I have that form that send email to subscribers. Even if the specified option is set to "TEXT" I still see the HTML coding in the message... Tho when I look the source of the message I see "X-Mailer: JMail 4.5 by Dimac

Content-type: text/plain; charset=iso-8859-1: and all the <br> code are that way : <br=3E

my jmail code:

View Replies View Related

Sending Email

I have a few queries regarding on email. Currently my web hosting provider uses Windows 2003 Server IIS 6.0 to host my ASP websites. In my own PC, I am also currently using Win XP Profession IIS 6.0 to run my ASP files.

I would like to create a pogram that would automatically sent out an email. But the problem is I have know that CDONTS do not work for Windows 2003 Server or XP Professional. It only currently work for Win 2000 Server.

Please help and perhaps show me the code of sending an email out automatically. Is there a code that can work for all servers?

View Replies View Related

Sending An Email From Within ASP

I have a form which will be processed by being sent to an ASP page. I would
like the ASP page to take the data from the Request.QueryString (which I
know how to do) and format it so I can have it emailed to me in a nicer
format. My problem is that I do not know how to have ASP send an email. I
know how to send an email using the mailto: protocol by making it look
something like the following:

MAILTO:username@mydomain.com?SUBJECT=mysubject?MES SAGE=mymessage

However, this will usually take the user to their default email client and
ask them to send an email by putting the specified subject and message in
for them, but wait for them to do any desired editing and click their send
button. I simply want the email to be sent straight from ASP. Is this
possible?

View Replies View Related

Sending An Email

Can anyone provide me with an example how I can send an email through ASP.NET!

View Replies View Related

Sending Email

I have made a .asp file in order to send email to my Join Bytes!:

<%
Set mail = Server.CreateObject ("CDONTS.NewMail")
mail.To = "email@email.com"
mail.From = "mail@mail.com"
mail.Subject = "email subject"
mail.Body = "email body"
mail.Send
%>

The smtp function have been installed with the IIS, there is no error and the .asp seems running properly but I can't receive any email, any wrong?

View Replies View Related

Sending Email

i have to do a project regarding employee transfer in which sending email to concerned employees yet to be transferred play a pivot role.

View Replies View Related

CDO Not Sending Email

I've been using CDO to send email from my web server for a while now but
today the emails aren't being sent. They are in the queue folder on my
server. I've restarted SMTP service but that didn't work. How can I get
these sent?

View Replies View Related

Sending Email

how can send email using ASP?

View Replies View Related

ASP Email Sending

Im have made up a form that sends the information via email to an email address. Whenever I test the form though, the email does not display in HTML format. The email displays the html code but I want it to display as an html page.

View Replies View Related

Sending Email Via .asp

Set ObjMail = CreateObject("CDONTS.NewMail")
ObjMail.From = emlFrom
ObjMail.To = emlAddress
ObjMail.Subject = emlSubject
ObjMail.Body = emlBody
ObjMail.Send
Set ObjMail = Nothing

I recently upgraded my webserver from NT4.0 to Windows 2003 Web Edition. Now, the above code no longer works. It worked great on NT4

What do I need to do to make it work with my new server?

View Replies View Related

Sending Email In ASP...

I am trying to send an email to someone as the person clicks on a link...i have been trying the CDO, CDONTS, JMail and other methods but none of them work!!an example is as follows:

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send

I Im getting this error:

CDO.Message.1 error '80040220'

The "SendUsing" configuration value is invalid.

View Replies View Related

Sending Email With ASP

I need a way to send an email using a normal HTML form and then taking those values and sending them to myself.

View Replies View Related

Sending Email

Could someone advise me on the best way to send email either using asp or html? I'm not sure which way would be best. Basically I have a page confirming that data has been entered into a database and displaying what has been entered. I then want to have a link to email the information to someone. The email address has already been entered into the database.

View Replies View Related

Sending Email With CDO

I asked how to send an email using CDO instead of CDONTS and got several responses. They were all good, I tested the code and it works well. However, I forgot to mention that I need to set the email body to be in HTML rather than in plain text format. Would appreciate if someone could post a complete example on how to do this.

View Replies View Related

Sending Email

I have tried to use this peace of code to send test email

If Request.form("submit")="Submit" Then
Set objMail = CreateObject("CDONTS.NewMail")
objMail.To = "alex@alex"
objMail.From = "alex@alex"
objMail.Subject = "Feedback"
objMail.BodyFormat = "0" ' -- HTML format
objMail.Body = "Name: "
objMail.Send
Set objMail = Nothing
end if

It works fine but when I go to the drop folder it is filling it with hundreds of emails. When I look inside pickup folder there is only one email message. Does anyone knows why the drop folder is constantly filling with new email messages?It looks like it repeats it all the time like some kind of loop.I am using it locally for testing only

View Replies View Related

Sending Email

I am using an asp page to send email from a access database. I would like it to send an HTML version if it can, and if not then it will send plaintext. I have seen this feature before, but not sure if asp can handle it.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved