|
Two namespaces:
1) System.Web.Mail
2) System.Net.Mail
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
google asp.net e-mail and you will quickly find lots of articles
|
|
|
|
|
dim MyMsg as new MailMessage()
MyMsg.From = new MailAddress("myadmin@domainname.com", "My Admin")
MyMsg.To.Add(new MailAddress("a.sehajpal@gmail.com"))
MyMsg.Bcc.Add(new MailAddress("ashish_sehajpal@yahoo.com"))
MyMsg.Subject = "My Reports"
MyMsg.Attachments.Add(new Attachment(Server.MapPath("folder/sendReport.doc")))
MyMsg.IsBodyHtml = true
MyMsg.Body = "<html><body>Find The Attached Reports</body></html>"
try
SmtpClient client = new SmtpClient()
client.Host = "mail.domainname.com"
client.Send(MyMsg)
catch ex as exception
' do something useful here
end try
Ashish Sehajpal
|
|
|
|
|
You went ahead and spoilt a developer from doing his homework.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
then what is problem in ur stomach?
Ashish Sehajpal
|
|
|
|
|
|
what was that?
Ashish Sehajpal
|
|
|
|
|
Hi,
I have to make a Search System which searches only in my website...
I have gone throu a lot of forums..but am not getting anything good..
can anyone help me with its coding????
Thank You..
|
|
|
|
|
u r looking for readymade solution or need to write ur own code ? plz specify....
Ashish Sehajpal
|
|
|
|
|
If you are looking for a search solution, check out http://www.atomz.com/[^] They have something called Atomz Express, which is free upto 500 pages.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
|
if you have to recognize quotation mark on SQL then use four quotations to get result as single one like this:
select ''''+'single quotation mark'
I Love T-SQL
|
|
|
|
|
Thanks for ur reply, I've to write in Vb. Its a mailing proj. While sending msg in a mail, IF the user uses (') then it crops error. How to overcome it
|
|
|
|
|
Have you tried doubling up any single quotes to escape them when
they're in the string?
stringvalue.Replace("'", "''")
I Love T-SQL
|
|
|
|
|
I don't have any Idea in Vb. But in C#
For ex: if we want our string to diaplay like - xml version="1.0"
then we have to code like -- xml version= "\" 1.0 \"".
So here you will get the output as: xml version="1.0"
VanithaVasu
|
|
|
|
|
hai friends
i have a client ....
and i want to develop a site for him in asp.net 2.0 with vb.net
but i dont know about how to gather the information from the client ..
and what type of the information is needed for the site ..
i need the information should be on paper , so that in future i should not have any problem with the client
so wt information , i have to ask the client
plz help , i m new to developing the site ....
i worked as programmer in a company
now my company needs to develop the site on my own ...
plz help me
give any related links for this ...
its urgent ..
thanks
vijay
|
|
|
|
|
dear me you really dont have a clue
vijaylumar wrote: but i dont know about how to gather the information from the client ..
and what type of the information is needed for the site ..
Ask them what they want on their site..
vijaylumar wrote: i need the information should be on paper , so that in future i should not have any problem with the client
have a meeting with them, then put down minutes from the meetings maybe
vijaylumar wrote: i worked as programmer in a company
god help your company
vijaylumar wrote: its urgent ..
then pay someone who knows what they are doing to do it for you
|
|
|
|
|
vijaylumar wrote: its urgent ..
How impolite
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
Iam struggling with a COM component Error---"Error HRESULT E_FAIL has been returned from a call to a COM component. " while generating ppt from asp.net application. Its is working fine in XP machine and showing this error when deployed in windows server 2003.And Iam using the com component "Microsoft PowerPoint Object 11"
I have run DCOMCNFG and give NETWORKSERVICE account. I think access permissions are all given correctly.But still it showing error in server.
I haved succesfully able to create an excel document using COM component in the same way.But failed in Powerpoint creation.From the error Stack Trace it is found error is on the Open() function.
The Error detail is as shown below.
Exception Details: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
Can any plz help me.Iam struggling with this for last fews days.
Any help is appreciable...
Thanks in advance.
|
|
|
|
|
hai friends,
i displayed some name in a list box..when i click on that name that will display on text box..that is working...i want select multiple name..eg:one name we already selected...den put a comma on text box..then we click on the name,that will display on text box followed by first one..how to do this
|
|
|
|
|
To select multiple names in a listbox just hold down the CTRL button and click the items from the list
|
|
|
|
|
Set the Selection Mode property to ' Multiple ' and then u can select multiple item by pressing Ctrl Key
VanithaVasu
|
|
|
|
|
HI
1)Set selectionmode="multiple" of list box to enable multiple selection. 2) You can select multiple names using ctr+mouseclick.
3)To retrive all selected names from listbox you can use: Request.Form("listbox_Name").ToString() function, which will return all selected items in a listbox into a string.
Arun Singh
Noida.
|
|
|
|
|
hi
On a click of radio button i am displaying a Table .
code which i have written in java Script is
stationtable.style.display=""; ( it is written in a external .js file )
this thing is not working with firefox ...( No errors are coming )
Please tell me how to solve this
Thank You
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
ALT + F4 wrote: stationtable.style.display="";
try stationtable.style.display="none";
|
|
|
|