|
how can i use custom validator for that ?
sir u r getting my question
krishna veer singh
|
|
|
|
|
ASP.NET has nothing to do with this. When you create DSN names in the server, don't add the one without www . If you are using a shared hosting, you need to contact server provider for doing this.
|
|
|
|
|
Hi
I have coded an newsletter mailer which send e-mails to the address stored in databases. application working fine but all the mailers are delivered as spam and not going to inbox.
my news letter has nine images and a content inside it, i want to know whther there is any solution to get mail in inbox and not in SPAM folder.
please take a look at this news letter mailer application
_oSqlConn = New SqlConnection(ConfigurationManager.AppSettings("Test"))
_oSqlConn.Open()
_oSqlCmd = New SqlCommand("select cMail_Address from Mail_Tbl where bActive=1", _oSqlConn)
_oSqlCmd.CommandType = CommandType.Text
_oSqlAdpat.SelectCommand = _oSqlCmd
_oSqlAdpat.Fill(DT)
If DT.Rows.Count > 0 Then
For i As Integer = 0 To DT.Rows.Count - 1
mail.To.Add(DT.Rows(i).Item("cMail_Address"))
Next
mail.From = New MailAddress("sathimailin@gmail.com")
mail.Subject = "Test with Image Embed in Mail and Mail Ids from SQL Database"
'mail.BodyEncoding = System.Text.Encoding.GetEncoding("utf - 8")
Body = "<table cellpadding="0" cellspacing="0" width="100%" border="0">"
Body &= "Welcome to www.website.com!!<br><br>Image Embed."
'<br><img alt="ss" src="cid:imageId">"
Body &= "<tr bgcolor="#ffffff">"
Body &= "<td style="font-size:15px;color:#102C5E;padding-top:20px;padding-bottom:10px;" align="center"><img alt="" hspace="0" src="" cid:imageid="" align="middle" border="0" xmlns:cid="#unknown"><br> An Image Embed in a Page with ASP.NET/VB.NET/C#/SQL </br></img></td>"
Body &= "</tr>"
Body &= "</img></br></br></br></table>"
'htmlV = AlternateView.CreateAlternateViewFromString(Body, Nothing, "text/html")
Dim plainview As System.Net.Mail.AlternateView
plainview = System.Net.Mail.AlternateView.CreateAlternateViewFromString(System.Text.RegularExpressions.Regex.Replace(Body, " @<(.|\n)*?>", String.Empty), Nothing, "text/plain")
htmlV = System.Net.Mail.AlternateView.CreateAlternateViewFromString(Body, Nothing, "text/html")
imagelink = New LinkedResource(Server.MapPath(".") + "\pic.jpeg", "image/jpeg")
imagelink.ContentId = "imageId"
imagelink.TransferEncoding = System.Net.Mime.TransferEncoding.Base64
mail.AlternateViews.Add(plainview)
htmlV.LinkedResources.Add(imagelink)
mail.AlternateViews.Add(htmlV)
'smtp(configuration)
smtp.Host = "smtp.gmail.com"
mail.Priority = MailPriority.High
smtp.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
smtp.Send(mail)
End If
|
|
|
|
|
You are using Gmail's SMTP server, but I can't see where you are authenticating the server?
|
|
|
|
|
There is nothing you can do in your code to stop your recipient's email configuration sending it to spam, it is controlled by the recipient not the sender - otherwise nobody would send spam
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hello friends. i have to get a unique value of client. (for example harddisk serial number) how i can do that?
thanks.
viva la commune
|
|
|
|
|
use SessionID , it is unique for each client request .
cheers,
Abhijit
|
|
|
|
|
thank you but session is not a value of client. session is crated by iis.
viva la commune
|
|
|
|
|
Your Requirment was
kuyucakli wrote: anything a unique value of client?
So SessionID you can use. This is unique for each request that initiate.
kuyucakli wrote: session is not a value of client. session is crated by iis.
but you can get any client sessionID.
cheers,
Abhijit
|
|
|
|
|
yes i know. but session is closing a few minute later or when is browser restart or when is pc restart..
i want to get a fixed value of client. like hard disk serial number. because i will know user by this value. for example; if a user visited my home page before i will redirect user to other page. but i will not use cookie, session, ip address. i have to use a uniqe and fixed value of client.
viva la commune
|
|
|
|
|
kuyucakli wrote: but i will not use cookie, session, ip address. i have to use a uniqe and fixed value of client.
WHY? Using cookies is the obvious way to identify user has visited previously.
|
|
|
|
|
But Navaneeth,
If user clear the browser History and Cookies then how can be able to track ?
cheers,
Abhijit
|
|
|
|
|
Abhijit Jana wrote: If user clear the browser History and Cookies then how can be able to track
There is no reliable way to do this. IP address is not reliable as it may change if you don't have static IP.
|
|
|
|
|
because i will create a poll page. and bad users may want hack my poll. for example user can clear cookies or change ip adress... then i cant take real result. Its because i want use a unique value of client for take true results from my poll.
Regards.
viva la commune
|
|
|
|
|
You can Check Client IP For That . but here some problem may happend, if all the IP Pass thorugh a getway, then it will take the get ways IP.
cheers,
Abhijit
|
|
|
|
|
its why i want get and use a unique value of client
viva la commune
|
|
|
|
|
|
no. i dont want use authentication. because i will build a politic poll. so users may dont want give mail address.
i think i must build with javascript.. i m not sure..
viva la commune
|
|
|
|
|
but , as Navneeth and .netman suggest, web pool cant be 100% perfect
cheers,
Abhijit
|
|
|
|
|
yes web poll cat be perfect. but if i dont what i want, some bad users visiting my site and selecting same option and impossible option being 70% rate. i dont want that again!
viva la commune
|
|
|
|
|
kuyucakli wrote: for example harddisk serial numbe
You can't.
If you can explain why you need this, probably we can provide some other suggestions.
|
|
|
|
|
i will create a poll page. and bad users may want hack my poll. for example user can clear cookies or change ip adress... then i cant take real result. Its because i want use a unique value of client for take true results from my poll.
Regards.
viva la commune
|
|
|
|
|
Sometimes when surveys are done they actually put in a disclaimer saying that the survey may not reflect true public opinion.
I think you are asking for too much by asking for 100% accuracte info.
Deliver yesterday, code today, think tomorrow.
"http://www.heuse.com/cphumor.htm"
|
|
|
|
|
.netman is correct. Web surveys won't be 100% accurate.
|
|
|
|
|
Every device connected to the internet has a MAC address - which is unique. However, even this can be faked by (temporarily) overriding a registry entry.
This can, in fact, be used to fake nearly any identification method for your plan. The ability to flood a poll, or a forum, by a single user acting as "many" has been worked on for some time. You'll not outsmart this possibility as it keeps changing ahead of technology to catch it.
Welcome to the Internet!
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|