CDONTS Text Based Email Message Not Working
I'm trying to send email through a form I created and everything works except the email portion. It's not sending the text message. Code:
View RepliesI'm trying to send email through a form I created and everything works except the email portion. It's not sending the text message. Code:
View RepliesCan anyone take a look at this code and see where I may be going wrong?
************************************************** *
html page:
<form method=Post action=get.asp>
valley secretary<br>
<input type="text" name="t1" size="20"><p>
<input type=submit value=Submit></form>
************************************************** *
asp page:
<%
Dim t1name,t1
t1name = "valley secretary"
t1 = Request.Form("t1")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "kklimarchuk@supremecouncil.org"
ObjMail.From = "kklimarchuk@supremecouncil.org"
ObjMail.Subject = "Form Submission"
ObjMail.Body = t1name & vbcrlf&_t1
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You"
%>
Here are the two pages html and calling the asp. As you can see I am new to this. I also had our Network Admin make sure CDONTS was installed correctly on IIS. Any help would be awesome. I have been trying to create an email form for months now......
I ran some script and confirmed tht CDONTS exists on the server...which runs on Win2k and has IIS 5.0 When i run my email script,no error is displayed ,but i NEVER get the emails im trying to send. What could be the problem.
View Replies View RelatedI'm having no luck sending an email message from an asp page with UTF-8 encoding so that Japanese characters can be correctly rendered.
View Replies View RelatedI have and ASP form that sends out an email on Windows 2003. I get the following error: ActiveX component can't create object. What should I do to fix this? Code:
View Replies View RelatedI'm using IIS 5 on a win xp machine for all my testing, before I upload to our live server. I've installed the SMTP service and it's running with no errors.
Dose anyone know anything about the above set-up not supporting "CDONTS.NewMail" for sending email using ASP..?
I get the following error message: "Server object, ASP 0177 (0x800401F3) Invalid class string".
I have set up a simple form that takes a users email, name, address etc. It is working fine when I test it using various email addresses with a yahoo.com or hotmail.com etc style address - but when I test it with a .ws ending email (a valid account), the message never arrives at its intended location?
It seems to only work occasionally - it's not consistently working? Does anyone have any ideas why this could be?
can anyone see why this wouldn't work...it's driving me nuts
Set objcdmail = Server.CreateObject("CDONTS.NewMail")
objcdmail.From = "me@mydomain.com"
objcdmail.To = "me@mydomain.com"
objcdmail.Subject = "test"
objcdmail.Body = "testing"
objcdmail.send
Set objcdmail = Nothing
I have copied this from another page that I have. The original page takes
the details from a form on another page, so the results above are all
request.form("whatever") etc, and the original works!!
but if I try to put fixed values in as above it fails to work and I can't
see why?
I've even tried a response.write to check the values..and they look right,
but no mail is sent
I'm running win XP pro but have taken the CDONTS.DLL from my win 2000 pc and
done the regsv32 etc etc
maybe I should try to use CDOSYS but
a) I haven't a clue how and so
b) I copied a script directly from a help page which didn;'t work either!
c) the eventual host server is running NT4
I am currently sending email using CDONTS through the virtual SMTP server on my windows 2000 server. The message-id that is created does not include a time and date stamp therefor over time I have been getting some message-id's that are not unique. I can not find where that message-id is created so that I could update it.
Instead I have set the message-id header in my ASP program when I send the email using CDONTS. Now the message-ID has everything I need in it.
I am happy with all my tests and have not seen any problems but then again I am new to this so what do I know.
Does anyone see a problem with setting the message-ID this way?
Does anyone be chance know where the default message-ID is created when using SMTP?
Does anyone know if it is possible to send a message ID to the mail server using CDONTS? or even append something to the message ID that the mailserver assigns to the message.
I am starting to get duplicate message ID's which has been causing many problems down stream.
I am trying to use CDONT to send a HTML message, but on the receiving machine it just shows the code in the message. Code:
View Replies View RelatedCan anybody tell me how to send unicode mails using ASP and CDONTS.
Here is what I tried but it will display ??? for special characters in outlook.
I want to send email in lithunian and russian languages.
MY Server is MS 2003 running IIS6 .....
I am trying to run a test sending mail using CDONTS on my W2K3 machine.
It works fine running from my WXP Pro, but I don't recieve the mail if
run the W2K3 machine.
Both machines have IIS configured essentially the same. Code:
Currently, I have a form that a user can enter the subject line content and the email body content. They can then send the email which I have set up to use CDONTS. This works fine.
Now I want to add in the ability to attach a file (it will most likely be a MS Word document) to the email being sent out.
I would like to use CDONTS's AttachFile but it's not working for me. I've read up on it and it seems fairly simple except that I'm getting the following error message. Code:
I have a script sending mail with asp using CDONTS. The script works fine, the only problem I have is specifying a new line in the message body.
I am used to php's imap commands where you can just set the body to be "Hi This is on a new line!" but putting in the text of the CDONTS mail just displays the as part of the text.
I am having a problem formatting an email message which comes from a form.
I am currently having difficulty with the <br> tag which I am using for line spaces within my email. I am getting an expected statement error message which is pointing to the line which is underlined below. I can't think what is causing this.
The code for my processing page is below:-
I am using dreamweaver to make an ASP page. I have a table of data
from a MSSQL database that is currently showing on the ASP page. I
want the ability to change the color based on a priority number that's
in the MSSQL database (same recordset that the data comes from).
I
don't have the priority field out on the page but can put it out if
need be. I have 3 different priority numbers and if the first row is
priority 1 I want the font to be red and if the second row is priority
2 I want the color to be yellow and so on.
i used the following script but it won't send the email. any suggestions why?
<%
Dim TBdy
Dim MyCDO
CR = Chr(13)
Set MyCDO = Server.CreateObject("CDONTS.NewMail")
MyCDO.From = "person@something.org"
MyCDO.To = "allstar@aol.com"
MyCDO.Subject = "collegebound info"
TBdy = Request.Form("cb_name")
MyCDO.Body = TBdy
MyCDO.Importance = 1 (Normal)
MyCDO.Send
Set MyCDO = nothing
%>
I currently have a web-based email for my site for users. Is there any way that I can make this so that it can be accesable from Outlook Express? It would have to call the database for the emails.I would need it written in ASP.It also needs to be free!
I'm looking to display information pulled from a database based on
information the user puts into a text box. The user will enter their
sales rep number and I want to hit a table and return their name as
soon as they tab off of the text box. Any ideas or help would be
appreciated
My ISP provides a web based email client, but it is not brandable and the features are not that extensive. I'd like to build my own. Has anyone done this, or is anyone aware of any tools out there to do this?
View Replies View RelatedI have been looking for some time now, for a web based email system like hotmail, where we can set it up on our LAN. Have found some but all are a bit expensive ,would like to find as free ASP script if possible.
View Replies View RelatedI know there is AddEmbeddedImage but does this only work only for images on your hard drive - can it be used for images that are web based? If not is there a way to embed an image in an email on the fly before sending - all web based?
View Replies View RelatedASP/javascript with a drop down populated by an access database. The drop down works fine but I cant figure out how to get it to change a value of a text field.
I want the value in the text field to change to reflect the data in another column in the table, same row. Code:
I am working on a small application for senior users, so I want to limit the option for incorrect input whatsoever. I have a drop down box that is populated from a query and I want to make it so that when an option is selected, the pertinent text fields are populated based on the selection.
All the info I need is already being extracted from the query so its just a matter of displaying the right info based on the selection. I have been looking for examples of code but they all seem to use javascript. I am not too strong in javascript so I kinda avoided those. if there is a pure asp example, that would be fine!
i trying to randomize a string of text inc. number and alpha. e.g. 024053J
what is the approach to generate a few integer numbers from this string "024053J" ?
i tried to this way of randomize but not very efficient as in sometimes the user will get the same numbers back when the page is refresh.
So i thought to use a string of text to generate the randomize numbers.
randomize()
num_pmax=100
num_pmin=1
r2=Int((num_pmax-num_pmin+1)*rnd+num_pmin)
I am using CDONTS component to send email in ASP.
The code is some thing like this:
Dim Mail
Set Mail = Server.CreateObject("CDONTS.Newmail")
mail.From = "abc@hotmail.com"
mail.to = "xyz@hotmail.com"
mail.subject = "Test Email Subject"
mail.body = "This is Email body message"
mail.send
Now the question is that this code will use the Default Virtual SMTP Server in IIS, but I want to use my ISP's SMTP server. please tell me how to do this. I have used my ISP's email server in Outlook express and it is working fine. Please do not suggest to use "CDO" or "CDOSYS" to use for sending emails because I must have to use "CDONTS".
My questions concerns building a login system based on checking for the
existence of the user's email address only....
1. Is it ok for me to use IP address to allow user to bypass all login and
registration systems if IP is present in database? I wish to save the user
time....if the IP is not present I will present the LOGIN email screen....
2. I am consideirng using Session variable on each page I wanted I
protected...I think I know how to do this but I am not sure on whether I
should be using the global.asa to handle loggin in or logging out or whether
I should so all the code on the secure page itself.
3. I wish to use a sql server backend to house my tables: tblProspect,
tblProspectPageSelections......is it okay to use the following branching
code to switch between my test and production server with regards the
physical database path as I have multiple sites on our remote server which
need to feed off the same database....I am thinking about something like
this:
If InStr(Request.ServerVariables("SERVER_NAME"), "publicserver.com") > 0
Then
' Set Public Server Paths
Else
' Set Private Server Paths
End If
Can this work?
My app lists jobs for a recruiter. He wants to track members who have
replied directly to job postings. So instead of simply making the client's
email address an <a href="mailto:...> link, I need to do 2 things:
- add a record of their posting to a database table
- open the email client to the job
Howe do I do this? The first part is easy, but I don't know how to open the
email client in an ASP command (I don't really want to auto-sed email, just
open the client and let the user attach their resume and add their cover
latter). Do I have to get my Web Hosting company to install CDO, or is that
standard with all IIS? I get an error when I try to run 'Set MailObj =
CreateObject("CDONTS.NewMail")'
I would like to send a text message through the web using the code below. Currently, I'm trying to modify this code that sends a user an e-mail with their forgotton password.
I will not be sending a password once I get this finished. This is strictly for a demonstration I have to give for a college class. Here is my code:
I have a .asp page which returns a list of people according to a search. When the page is built by the apps server, it loops through the email addresses and puts them into a mailto href.Everything works fine for most of the time, but if the search returns a large number of record (600?) it stops working, with no error.Is there a limit on the number of character in an href? If so, how could I get around this problem?
View Replies View RelatedAll I want to do really is replace the 1st line in a text file with a different number ... Example: the 1st line tells you how many users are listed in the file, therefore you now know how many times to go threw the loop to read all the users. Let's say I add a user, well I have to do a +1 on it .
What I was thiking is this
1) read the 1st line
2) cint() it
3) i = i+1
4) replace the line with i
When I try to email a private message to someone who responded to my posting it tells me that i don't have priviledge. I am registered but don't understand why I cannot email a private message to anyone.
View Replies View Related