|
I have crated mail form send to my members, when i send to yahoo it not go to inbox, it go to Spam box how can i protect it?
Socheat
|
|
|
|
|
If spam filters had a magic 'off' switch, then they wouldn't work at all. Yahoo is deciding, based on how many people the mail is being sent to, where it's from, and what it contains, that it is spam. You need to change those variables, to change how it views it, or get your members to mark it as not spam.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
So how can i correct it?
Socheat
|
|
|
|
|
Christian already answered that question. Read the third sentence again.
---
single minded; short sighted; long gone;
|
|
|
|
|
Why other mail not go to spam box?
Socheat
|
|
|
|
|
Because they don't look like spam.
---
single minded; short sighted; long gone;
|
|
|
|
|
How we can find these variables and is there any refrence to check variables ?
|
|
|
|
|
Those variables are just the basis for the spam analysis that the mail service does.
You can check if there is any documentation from the service provider on the exact criteria they use, but I really doubt that there are, as that would be a really nice how-to for spammers on circumventing the analysis.
You simply have to make your mails not look like spam.
---
single minded; short sighted; long gone;
|
|
|
|
|
I know how to upload a file from my local disk to the webserver, but how would I pass in a URL of a file located on a webserver instead of my local drive?
In other words I want to be able to pass in "http://www.example.com/fileName.xyz" and have fileName.xyz upload to a location I want on my webserver.
I was having trouble finding the right keywords to ask google
Has anyone done this before?
|
|
|
|
|
You can't do that, unless the file itself is both visible in your web server, and your web server will serve it, when requested.
A better approach, would be to use web services to pass the file around, if you have access to both ends of the equation.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
There must be a way of (it doesn't have to be via the file upload control) passing the url of a file to your program and having it download the file to a specific location on the web server.
|
|
|
|
|
Ok I think this should work. I haven't had a moment to check it yet though. If I am iterating through a series of these will this wait for the download to complete?
WebClient wc = new WebClient();<br />
<br />
wc.DownloadFile("http://www.example.com/exampleImage.jpg", Server.MapPath("images"));
|
|
|
|
|
hi,
you have to access(read and write) tht file and save it in your web server.
you have to use file concepts for this purpose.
all the best
Sathesh Pandian
|
|
|
|
|
I got it working using my example above. Thanks for the advice everyone.
|
|
|
|
|
Hi,
I have created a asp site using Crytal reports when i host it it gives the folowing mechine. I have already installed the framework 2.0 but still not working please tell me what to do.
"Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."
regrds
Ruwandi
rkherath
|
|
|
|
|
Is Crystal Reports installed properly on the machine ? Installing the framework is irrelevant to this error.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
HI,
I am trying on the server i need to host it on the server.i installed the frame work but what about the crystal.
without installing crystal reports software is there a nother way
regrds
Ruwandi
rkherath
|
|
|
|
|
Hello, I was hoping someone here could assist me with an issue I have. I need to be able to send email to people who are registered on my system. I wish to send them their username and their password. I keep getting an error when I try to send an email: "Failure sending mail."
I am not sure whether my port is incorrect or if I have a syntax error, but I have looked a many examples online and I can't figure out where I am going wrong. Everything seams normal but when I get to the Client.Send(Message) part, it throws the exception, "Failure sending mail."
Any help would be appreciated. The following is a class I call from the front end.
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Text
Imports System.Net
Imports System.Net.Mail
Imports System.Net.Mime
Imports System.Threading
Public Class EmailLibrary
Private SendTo As String
Private From As String = "******@gmail.com"
Private FromName As String = "****************"
Private Subject As String = "******************"
Private Body As String
Private SMTPServer As String = "smtp.gmail.com"
Private AccessKey As String = "******"
Private Port As Integer = 587
Public Sub EmailPasswordAndUserName(ByVal Name As String, ByVal Password As String, ByVal Email As String)
SendTo = Email
Body = "" & "Username: " & Name _
& "Password: " & Password _
& "Note: " _
& "We encourage you to change your password as soon as you receive this message." _
& "Please refrain from sharing your password with others."
Dim Message As New System.Net.Mail.MailMessage
Try
Message.To.Add(SendTo)
Message.From = New MailAddress(From, FromName, System.Text.Encoding.UTF8)
Message.Subject = Subject
Message.SubjectEncoding = System.Text.Encoding.UTF8
Message.Body = Body
Message.BodyEncoding = System.Text.Encoding.UTF8
Message.IsBodyHtml = True
Message.Priority = MailPriority.High
Dim Client As New SmtpClient(SMTPServer)
Client.Credentials = New System.Net.NetworkCredential(From, AccessKey)
Client.Port = Port
Client.Host = SMTPServer
Client.EnableSsl = True
Client.Send(Message)
Catch Ex As Exception
Throw Ex
End Try
End Sub
|
|
|
|
|
I hope Gmail may block the port.
Please try with the other Servers like live.com, yahoo.
Let me know if it works fine means Gmail Server is blocking.
Regards,
Satips.
|
|
|
|
|
Hello,
In my asp.net project's first page Form1.aspx, i am using a datagrid control which has a hyperlink column bound with Employee Code which gets its data from a SQL Server Database. When the user clicks the employee code, a new form Form2.aspx opens which should display all the Form1 data inside several control.
I am using a query string to transfer the employee code (EmpCode) into the next page and storing it into a variable (empcode). In next page i am using a data reader to fetch the data from the database by passing the stored variable empcode in the select statement.
My Problem is that I am unable to display the fetched values from the database into the lable controls using data reader. The code I am using is:
string empcode;
protected void Page_Load(object sender, EventArgs e)
{
empcode = Request.QueryString[0];
SqlConnection conn = new SqlConnection("Data Source=SID-710D1046244;Initial Catalog=Training;Integrated Security=True");
SqlDataReader dr;
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "Select * From [Training] Where EmpCode=@empcode";
cmd.Parameters.Insert("@empcode").SqlDbType.varchar,50).Value = empcode;
cmd.Connection = conn;
conn.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
Label2.Text = dr.GetString(0);
Label3.Text = dr.GetString(1);
Label4.Text = dr.GetSqlInt32(2); // It Contains a numeric value
Label5.Text = dr.GetSqlBoolean(3); //It Contains a boolean value
Label6.Text = dr.GetString(4);
}
Please Please Help Me. Any kind of Help is greatly Appriciated
Thanks & regards,
Mini
|
|
|
|
|
Try this:
cmd.Parameters.AddWithValue("empcode", empcode); instead of cmd.Parameters.Insert.
And make sure that you pass the right employee code!
|
|
|
|
|
Thank you very much El. It is working. Just Help me in one more thing. my database has two fields named
1. Contact Number (bigint, Size:8) which contains numeric digits and
2. Marital Status (bit) which is a boolean variable.
How would I be able to insert there values in my lable controls??
in lable 5 and 6 respectivily.
I am getting an error saying:- "Cannot Implicitly Convert type int to string".
Help me again.
Thanks & regards,
Mini
|
|
|
|
|
Since the labels text property is that of a string, you should explicitly convert your result.
(string)dr["feild"]
ToString()
DirectCast
etc..
|
|
|
|
|
"Label4.Text = dr.GetSqlInt32(2).ToString(); // It Contains a numeric value
Label5.Text = dr.GetSqlBoolean(3).ToString(); //It Contains a boolean value"
Not sure what will happen if the value is DBNull...
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
if u r using c#
label5.text = dr["contact number column name"].tostring()
label6.text = dr["marital status"].tostring();
|
|
|
|