AspSmartMail And ServerPort Property Problem
I have installed on my web server the aspsmartmail component v.2.7.
All work fine, but I have only on problem...
Can I specify the mail server port with the "ServerPort" property?
On the web I read:
....
Set objSmartMail = Server.CreateObject("aspSmartMail.SmartMail")
objSmartMail.Server = "myserver.mail.com"
objSmartMail.ServerPort = 21
...
The last line return a "Object doesn't support this property"
How can I specify a specific port with this object?
View Replies
ADVERTISEMENT
I am trying to configure AspSmartMail, since that is what my webhost uses as a component on their servers and I haven't used it before. I am a beginner basically when it comes to ASP- and I can't get my code to send more than one form field result to my inbox... Here is the code: .....
View Replies
View Related
I am learning to use aspSmartMail and relatively new to ASP programming.
The following code emails information to me from a form. I would also like to send an email to the reader who filled out the form (that code follows the initial coding). Is it possible to put these together, or must I call the second code from the first? I am not sure how to do this. Code:
View Replies
View Related
I try to send mail with aspsmartmail but I always got the same error code :
aspSmartMail.SendMail : Error 28: 0x8004001A
My code is :
View Replies
View Related
Let me start by saying I'm fairly new to Asp coding. That said...
My ISP only uses AspSmartMail. I've created an online form that uses fill out, which is then e-mailed to the collector of the information and CC-ed to the person who submitted the information.
The error I'm receiving is this:
aspSmartMail.SendMail : Error 28 error '8004001a'
504 Invalid Username or Password
In my script, I've Dimensioned several items, as you'll see below, passing the authenticating username/password to the smtp server, but it's not working. I tried not passing the information by entering in the actual info without it being passed by the diminsioned items. This didn't work either. I of course verified that the username/password I'm usine is correct.
Can someone plase tell me why I can't authenicate? I would really appreciate any help that might be out there.
Relavant Asp code below:
-----------------------------------------
Dim smtpserver,youremail,yourpassword,yourusername,rem oteemail
'Edit these 3 values accordingly
smtpserver = "mail.smtp_server.org"
youremail = "yourname@smtp_server.org"
yourpassword = "password"
yourusername = "yourusername"
remoteemail = "email_address_to_send_to"
Dim ObjSendMail
Set ObjSendMail = Server.CreateObject("AspSmartMail.SmartMail")
'Config remote SMTP server info.
ObjSendMail.Server = smtpserver
ObjSendMail.ServerTimeOut = 35
ObjSendMail.SenderAddress = youremail
ObjSendMail.Password = yourpassword
ObjSendMail.Username = yourusername
'End remote SMTP server config.
'Config E-mail.
ObjSendMail.Recipients.Add remoteemail
ObjSendMail.CCs.Add Request.Form("Confirm_Email")
ObjSendMail.Subject = "Email Subject"
ObjSendMail.SenderAddress = "Confirmation-NoReply@smtp_server.org"
ObjSendMail.SenderName = "SenderName"
ObjSendMail.ContentType = "text/html"
ObjSendMail.Body = strBody
'Note - strBody is Dimensioned elsewhere in my script to build the HTML message body.
'End Config E-mail.
'ObjSendMail.Send
ObjSendMail.SendMail
if err.number <> 0 then
response.write("Error n° " & err.number - vbobjecterror & " = " & err.description & "<br>")
else
Response.Write "aspSmartMail has sent your message with this file as attachment : <br>"
'Response.Write ObjSendMail.Attachments.Item(1).FilePathName
end if
Set ObjSendMail = Nothing
---------------------------------------
End code
View Replies
View Related
I use aspSmartMail without any problem, but when trying to send a html message to my list of subscribers, I got the following error for all of them excepted for my own adress email (and my message appears correctly in html format)
aspSmartMail.SendMail : Error 40 error '80040028'
Error when check Recipient address : 550 not local host aol.com, not a gateway ...
View Replies
View Related
there is a property in asp.net called autopostback, what i want is to set this property
on plain asp to give a combo the ability to postback the selected option.
Is this possible???? i need to set something like that to a dinamic combo, any ideas????
If it can be done in java or vbscript just please tell me, cause i don�t have a clue if is possible or not.
View Replies
View Related
I don't understand why but If I use vbscript the following code works
fine:
....connection string.....
dbConn.Open
msgbox dbConn.Property
but the corresponding code in asp:
...connection string.....
dbConn.Open
response.write dbConn.Property
returns the error "Arguments are of the wrong type, are out of
acceptable range, or are in conflict with one another" In both cases
connection to sql server is ok.
View Replies
View Related
I have a requirement like this.When the textbox gets focus..at this even i want to change the input langauge settings.like arabic.
Currently i have to do it manually by pressing the Alt+Shift key..to toggle between twon langauages
View Replies
View Related
when do u use property procedure for example
PublicProperty CompanyName() AsString
Get
Return strCompany
EndGet
Set(ByVal Value AsString)
strCompany = Value
EndSet
EndProperty
View Replies
View Related
I've created a form and I want to add a timestamp to it. How do I do this? I'm using dreamweaver by the way.
View Replies
View Related
I have a few server controls on my page. Also I have a aspropDownList with AutoPostBack="True". When I select any value from the dropdownlist I want all the controls to be empty when my page reloads.
Can I use the EnableViewState property for this or I have to write specific code to do this? Currently the values which I had enetered in the servier side controls are retained after the postback.
View Replies
View Related
does anyone know how to change dynamically a property in some word documents?(in vb, javascript or even if you've got a tool or something )
For example:
In my directories I've got docs with a property "version" I want a tool to update each "version" in my files...
View Replies
View Related
Is there any way to make visiblitiy a combo box (2) in asp false when i used combo box (1) to select one item in the combo box(1) i want to make a combo box(2) which should be made visible false .
View Replies
View Related
I'm using the Microsoft.XMLDOM object in an ASP page to read an incoming XML post request and respond to it. Although the XMLDOM object verifies the XML at a basic level, I want to make sure that the request is in the correct format (as per the specification I have to work to), as well as making sure that any XML at all was sent successfully.
At the moment, I'm stuck at the point of just trying to make sure that an XML request was sent at all. Here's the code I'm using. note that I'm loading the XML from a file for ease-of-testing, but am giving a bad filename so as to create the condition where the XML didn't load successfully.
View Replies
View Related
I got the following error when access an asp page.
Response object error 'ASP 0185 : 8002000e'
Missing Default Property
/downtime_category-old2.asp, line 0
A default property was not found for the object.
View Replies
View Related
I am using asp/vbscript/ado/mssql.
I am able to get the nullable property OK when generating a recordset
with a simple SQL statement such as "select Fld1,Fld2 from Table1" and
then looping thro' the fields and :-
Response.Write(rs.fields(x).attributes and adFldIsNullable)
When I use the following statement all fields are erroneously reported
as nullable:-
"Select B.Fld2, B.Fld3 From Table1 A Left Join Table2 B On
A.Fld1=B.Fld1"
Is this normal?
View Replies
View Related
I connect to a Access DB and when trying to display the data from the DB, I get the followig error:
Object doesn't support this property or method: 'Fields'
The recordset does not support this property.
The script that I use is attached along with this thread.
Does anybody know what is wrong, is there a simpler approach to
display Access data on a Web Page?
View Replies
View Related
How can I set the amount of Response.buffer? How can I block scripting if the buffer gets more than 2mb?
View Replies
View Related
I want to disable text box property so user can't modify that perticular text box value in HTML form.I do not want to use label.how to disable text box property in HTML form.
View Replies
View Related
how could I know if a specific sessionid still exists or not. If there is a method or anything that can tell me about the existence of a specific sessionid .
View Replies
View Related
I am using CDONTS in an ASP program to accept input from a Form and send an E-mail.
The form includes the following as well as some other information :
From (the name of the sender)
To ( the name of the recipient)
From E-Mail ( the senders E-Mail Address i.e. the Reply to address)
To E-Mail ( The recipient's E-Mail Address )
I am having trouble with two properties. What property do I use to set the From (the name of the sender) ? What property do I use to set the From E-Mail ( the senders E-Mail Address i.e. the Reply to address) ?
View Replies
View Related
On my webpage I have a textbox. I would like to be able to change the text in the textbox and via a pushbutton have the value in the textbox written to the .text property so that next time the page is viewed the new value will be displayed.
View Replies
View Related
I'm opening a recordset with a SQL statement and then trying to use the .RecordCount property to count the number of rows in the recordset. For some reason, it is always returning -1. Code:
View Replies
View Related
I have a standard ASP Textbox control on my form and need to set the readonly property of it using javascript. It's not essential that I do it via client side script but would look a lot better.
View Replies
View Related
why is the DefinedSize of the Field object of type adInteger returning the
value 4 and the same property on a adVarWChar type field (Text in MS Access)
is returning the max length of the string that it may contain (for example
52)?
View Replies
View Related
I am trying to dynamically generate links on a webpage base on a list of file using their title property as the link text. My problem is I don't know how to get the title property of the file. Is there a object or dll i can use?
View Replies
View Related
Is it possible to test a string column for null in the filter property of a RecordSet object?
rs.filter = "display = '' "?
This doesn't return any rows.
View Replies
View Related
I got the sample from MS website on the search form. There is a property, DocTitle. It doesnt bring any data back to be displayed. Could someone help me and tell me what this is suppose to bring from pdf/word files?
I thought it was the title in the word document for the document properties? I have something there in the document but it still doesnt display it. It seems to be always blank.
View Replies
View Related
i have made a different site for user authentication and want to check for authenticated user from a <loginview> <asp:loginstatus....> in a different site how can i do that ,
the problem i am facing is that when i use a loginview and login status link in one of website to other site where i have made the user authentication module i get the error on the link
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /testsite/login.aspx
i have the login page on a seperate site
View Replies
View Related
Using ASP, Is there a way to read the File property of an Image. Like Comments, Subject etc. (Information seen when you right click on an Image) I have tried using the FileSystemObject. But this is limited to very few properties like AccessDate Modified Date etc.
I also tried reading the Exif information in the JPEG. The EXIF Comments are not the Same as Comment section available from the Properties of the File.
View Replies
View Related
I was told that I need to replace CDONTS with CDOSYS. Code:
View Replies
View Related
I use following code in an ASP page to generate a GUID:
<%
dim obj
Set obj = Server.CreateObject("Scriptlet.TypeLib")
Response.Write(obj.guid)
Set obj = nothing
%>
It worked fine on my WIN2000 computer running IIS. I recently bought a
new computer with XP Pro and this page times out. I now it is the call
to obj.guid. I have seen the same behaviour on another XP machine as
well.
The funny thing is if I paste this code into VB and display the guid
in a message box, it runs without a problem.
Any ideas, is this not supported in XP?
View Replies
View Related