Friday, December 3, 2010
Sending Email with System.Net.Mail
.NET 2.0 includes much richer Email API support within the System.Net.Mail code namespace. I've seen a few questions from folks wondering about how to get started with it. Here is a simple snippet of how to send an email message from “sender@foo.bar.com” to multiple email recipients (note that the To a CC properties are collections and so can handle multiple address targets):
MailMessage message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");
message.To.Add(new MailAddress("recipient1@foo.bar.com"));
message.To.Add(new MailAddress("recipient2@foo.bar.com"));
message.To.Add(new MailAddress("recipient3@foo.bar.com"));
message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();
client.Send(message);
System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system (so for ASP.NET applications you’d configure this in your application’s web.config file). Here is an example of how to configure it:
<system.net>
<mailSettings>
<smtp from="test@foo.com">
<network host="smtpserver1" port="25" userName="username" password="secret" defaultCredentials="true" />
smtp>
mailSettings>
system.net>
Hope this helps,
BY
A.Mohamed Ileeyas (A MD I)
Learn English From Oxford Dictionary
Learn English From Oxford Dictionary
Oxford’s dictionaries for learners of English give the help and support you need to expand vocabulary and use words correctly. We explain words using language learners understand, with illustrations for difficult words, and help with grammar and pronunciation.
http://oxforddictionaries.com/page/learnersofenglish/for-learners-of-englishLearn English From Oxford Dictionary
I Gate Fresher Opening in Bangalore
IGATE invites 2010 B.E. / B.Tech / MCA Freshers to walk-in for a recruitment drive
Date: Sunday, 5th December 2010
Venue: NEW HORIZON College of Engineering, Sarjapur - Marathalli Ring Road, Bangalore
Registration: 5th December 2010 From 8:00 AM – 2:00 PM ( No Prior Registration )
Candidates MUST meet ALL of the following criteria:
1. B.E., B.Tech or MCA graduates are ONLY eligible to participate
2. Candidates MUST have 60% and above (from 10th onwards) in academics
3. Candidates MUST not have any gaps in education
4. B.E. / B.Tech candidates MUST have graduated in the following streams - Computer Science, Information Technology, Information Science, Electronics & Communication, Electronics & Electrical, Electrical, Electronics & Telecommunications, Mechanical, Industrial Production, and Instrumentation
ONLY candidates meeting the above listed criteria need to participate in the drive.
Suitable candidates MUST carry the following to the venue:
A. One (1) hard copy of resume duly signed by the candidate
B. One (1) passport size photo
C. Any of the following photo identification - College Identity card OR Driving License OR Voters ID Card OR Passport
D. MUST bring either a blue OR black ball point pen
PLEASE NOTE: Candidates who have undergone the recruitment process with iGATE in the last 6 months need NOT apply / participate.
For clarifications – please email your queries to fresher2010@igate.com.
Date: Sunday, 5th December 2010
Venue: NEW HORIZON College of Engineering, Sarjapur - Marathalli Ring Road, Bangalore
Registration: 5th December 2010 From 8:00 AM – 2:00 PM ( No Prior Registration )
Candidates MUST meet ALL of the following criteria:
1. B.E., B.Tech or MCA graduates are ONLY eligible to participate
2. Candidates MUST have 60% and above (from 10th onwards) in academics
3. Candidates MUST not have any gaps in education
4. B.E. / B.Tech candidates MUST have graduated in the following streams - Computer Science, Information Technology, Information Science, Electronics & Communication, Electronics & Electrical, Electrical, Electronics & Telecommunications, Mechanical, Industrial Production, and Instrumentation
ONLY candidates meeting the above listed criteria need to participate in the drive.
Suitable candidates MUST carry the following to the venue:
A. One (1) hard copy of resume duly signed by the candidate
B. One (1) passport size photo
C. Any of the following photo identification - College Identity card OR Driving License OR Voters ID Card OR Passport
D. MUST bring either a blue OR black ball point pen
PLEASE NOTE: Candidates who have undergone the recruitment process with iGATE in the last 6 months need NOT apply / participate.
For clarifications – please email your queries to fresher2010@igate.com.
Freshers Off Campus 2010 @ Tech Mahindra
Freshers Off Campus 2010 @ Tech Mahindra
CVs to CH0068482@techmahindra.com
Join Ur Buddies and relatives To My Blog and channel www.amditech.tk
CVs to CH0068482@techmahindra.com
Join Ur Buddies and relatives To My Blog and channel www.amditech.tk