|
Abhishek Sur wrote: Is it making Junk in your Company MailBox or in GMail
Junk mail is coming in my company mailbox
Abhishek Sur wrote: Check if the IsBodyHtml of the MailMessage object is set to true as well... Smile Smile
Already done
Abhishek Sur wrote: And also make proper HTML document always if you set IsBodyHtml to true. Dont put anchor tag inside a plain text email body.
Cannot understand i am attaching my my code 4r ur reference.
try
{
string authUser = System.Configuration.ConfigurationSettings.AppSettings["MailServerUserName"].ToString();
string authPass = System.Configuration.ConfigurationSettings.AppSettings["MailServerPassword"].ToString();
string domain = System.Configuration.ConfigurationSettings.AppSettings["Domain"].ToString();
NetworkCredential authenticatedMail;
if(domain != "")
authenticatedMail = new NetworkCredential(authUser, authPass,domain);
else
authenticatedMail = new NetworkCredential(authUser, authPass);
string SMTPServer = System.Configuration.ConfigurationSettings.AppSettings["MyMailServer"].ToString();
SmtpClient client = new SmtpClient();
client.Host = SMTPServer;
client.Port = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["MyMailServerPort"]);
MailAddress from = new MailAddress(fromEmailAddress, fromName);
MailAddress to = new MailAddress(toAddress, toName);
MailMessage message = new MailMessage(from, to);
message.Subject = Subject;
message.Body = MessageBody;
message.IsBodyHtml = true;
message.Priority = MailPriority.High;
client.UseDefaultCredentials = true;
client.Credentials = authenticatedMail;
client.Send(message);
resultMail = true;
}
|
|
|
|
|
Check how i created body
StringBuilder objMessageBody = new StringBuilder();
objMessageBody.Append("<br />");
objMessageBody.Append("Thank you for completing the voter registration for the Industry Personality of the Year.");
objMessageBody.Append("<br />");
objMessageBody.Append("Please click <a href=" + getConfirmURL(result) + ">here</a> to confirm your vote.");
|
|
|
|
|
Is your from address is a real mail address that is declared in exchange?
|
|
|
|
|
I am displaying a preview of the Image before uploading it to the server. This works fine with IE6, but not working with newer versions.
The previewing is achieved using an aspx page which has an <asp:image> control. I set the ImageURL property to the "file from the physical location". But in IE7's case, the ImageURL property does not display "file from the physical location".
for instance: <asp:image id ="imgPreview" ImageUrl="file:///D:\image1.jpg">
Kindly provide any help. Thanks in advance.
Regards,
Rijz
|
|
|
|
|
Please change the file path from UNC to Virtual. It will then work. Client site should have permission to show the image directly.
|
|
|
|
|
Thanks for your reply Abhishek..
I cannot use a Virtual path here because, this path is obtained from a browse button text field. The user will be selecting file from any physical location on the disc and my program is supposed to preview it. It is working fine with IE6... but not in IE7
How can I achieve this?
Thanks
Rijesh
|
|
|
|
|
I guess it's not working in FF also
This is normal behavior, in IE6 this is security problem. Unless user uploaded something to page, neither JS or ASP should be able to access any information of that file.
All new browsers in FileUpload html element don't anymore show file path, instead only file name.
I think you will have to do it without preview.
|
|
|
|
|
ohhh..
Anyway thanks enver for your help...
|
|
|
|
|
Hi All,
I need to know,In how many ways we can bind our data to asptable?
Actually,the requirement is explained as follows:
In a shopwebsite,I am planning to show a table which contains 24cells as hours per day and 7 rows as weekdays.In which I need to show opening hours which is getting from the database,as shaded in colors.
Can any one help me?
waiting for your valuable reply
Thanks & Regards
Yamuna
|
|
|
|
|
|
Take a look at ASP.NET Calendar control, it might be a good candidate writing a time sheet like thing.
|
|
|
|
|
Hi,
"System.Configuration.ConfigurationManager.AppSettings" I cannot get ConfigurationManager to show up as an option in intelesense. It shows as an error if I try to use it anyway.
Please help me
Thanks
Denny
|
|
|
|
|
Go to your Solution Explorer and Right click on your Web Project and go to Properties. In the in the Properties Dialog, look for References and Click on add Reference and look for System.Configurations. after that in your application in the usings , add it and everything will be fine.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Public Function ParseCSV(ByVal inputString As String, ByVal Delimiter As String) As DataTable
Dim dt As New DataTable
Dim re As New Regex("((?[^""" + Delimiter + "\r\n]+)|""(?([^""]|"""")+)"")(" + Delimiter + "|(?\r\n|\n|$))")
Dim colArray As New ArrayList
Dim rowArray As New ArrayList
Dim colCount As Integer = 0
Dim maxColCount As Integer = 0
Dim rowBreak As String = ""
Dim field As String = ""
Dim mc As MatchCollection = re.Matches(inputString)
For Each m As Match In mc
'Retrieve the Field and Replace Two Double Quotes with Single Double Quote
field = m.Result("${field}").Replace("""""", """")
rowBreak = m.Result("${rowbreak}")
If field.Length > 0 Then
colArray.Add(field)
colCount = colCount + 1
End If
If rowBreak.Length > 0 Then
'Add the Column array to the Row Array List
rowArray.Add(colArray.ToArray)
'Create a new arraylist to hold the field values
colArray = New ArrayList
If colCount > maxColCount Then
maxColCount = colCount
End If
colCount = 0
End If
Next
If rowBreak.Length = 0 Then
'This is executed when the last line doesnt end with a line break
rowArray.Add(colArray.ToArray)
If colCount > maxColCount Then
maxColCount = colCount
End If
End If
'Create the Columns for the table
For i As Integer = 0 To maxColCount - 1
dt.Columns.Add([String].Format("col{0:000}", i))
Next
'Converting The RowArrayList to Array Object for easier access
Dim ra As Array = rowArray.ToArray
For j As Integer = 0 To ra.Length - 1
Dim dr As DataRow = dt.NewRow
'Converting the Column Array List into an Array Object For Easy Access
Dim ca As Array = CType(ra.GetValue(j), Array)
' for each field into the new datarow
For k As Integer = 0 To ca.Length - 1
dr(k) = ca.GetValue(k)
Next
dt.Rows.Add(dr)
Next
If dt.Columns.Count = 0 Then
dt.Columns.Add("NoData")
End If
Return dt
End Function
I am trying to use the above code to parse csv file but get the error unrecognised grouping construct on line Dim re As New Regex("((?[^""" + Delimiter + "\r\n]+)|""(?([^""]|"""")+)"")(" + Delimiter + "|(?\r\n|\n|$))")
|
|
|
|
|
Then I guess your regex is broken. I suggest you download expresso and/or buy the book 'mastering regular expressions' to learn how they work. You should also break down your regex, removing a part at a time until you work out which bit is broken, and then work out why, or ask a more specific question here that shows you've tried to solve your own problem
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi all
i create a virtual directory in IIS 6, it contains all PDF files
i tried to open it from my client in same lan with Internet Explorer... it show me following error message
" You are not authorised to view this page"....
how can i solved this error ????...
i tried by giving Integred windows authentication
but falied...
what should i do ??? should i give impersonation ???
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
koolprasad2003 wrote: i create a virtual directory in IIS 6, it contains all PDF files
So, you want to to download those pdf file from client system?
koolprasad2003 wrote: " You are not authorised to view this page"....
Its means user does not have the sufficient permission to access the site.
koolprasad2003 wrote: i tried by giving Integred windows authentication
Just give Anonymous access and Give the folder read access to every body.
|
|
|
|
|
Abhijit Jana wrote: So, you want to to download those pdf file from client system?
no i want to just view these PDF files from my client...but when i click link it ask me for server password (authentication) if i give administrator and password
then it shows me in IE "You are not authorised to view this page"
=============================================================
Abhijit Jana wrote: Its means user does not have the sufficient permission to access the site.
Yes ..... but how should i give ????
==================================================
Abhijit Jana wrote: Just give Anonymous access and Give the folder read access to every body.
i have done that already but.......falied...
what should i do ????
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hello every one,
I am using MYSQl data base.There is an option "DATABASE DIAGRAME" for database degining when we use sql server as data base,is there any facility for desining database when we use MYSQL,guide me how can i desing database.
|
|
|
|
|
Hi,
This is ASP.NET Forum. Please post it to General Database forum.
|
|
|
|
|
Hi friends,
Could you suggest me the article links (easily understandable) to learn JSON for without using ajax in asp.net?
Thanks
G Nathan
|
|
|
|
|
http://www.json.org/[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
Anyn have idea about fre online tution for asp.net
Sabari MD
Application Developer
Veloxit Info Solutions
|
|
|
|
|
Perhaps this[^] may help.
Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya
|
|
|
|
|
Sabari MD
Application Developer
Veloxit Info Solutions
|
|
|
|