Tuesday, July 27, 2010

Mailing service in C#

Sending mail to SMTP(for e.g. gmail) :

To Send mail u need script which u can get from following link
Mailing.cs file

Steps:
1. Open the file mailingService.cs & make following changes

Changes:
  • Change 'from' address to your email address
  • Change 'to' address to receivers email address
  • In function new MailAddress(from, "Senders Name" , System.Text.Encoding.UTF8) change senders name to your name
  • Write Subject for your mail in mail.Subject
  • Write message for your mail in mail.Body
  • Change the user Credentials by writing your email password
2. Copy the File to your root directory
3. Run the code


Sending mail to POP3(for e.g. yahoo) :

Steps:
1. Open the file emailPOP3.cs & make following changes

Changes:
  • Change 'oMail.To' address to your email address
  • Change 'oMail.Subject' address to receivers email address
  • In function oMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "Senders Email ID") change Senders Email ID to your username.
  • Write Subject for your mail in oMail.Subject
  • Write message for your mail in oMail.Body
  • Change the user Credentials by writing your email password in oMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "Senders Email's Password")
2. Copy the File to your root directory
3. Call SendIssueEmail() function from your script

Check Out the Code in PHP

Wednesday, April 14, 2010

How to send message to mobile using SMTP

The procedure is same as above i explain.Just do the following changes
Requirements:
1.You Require an gmail account to send message
2.You require an 160by2 account which will have above gmail address as your email-id in your profile
3.you will require same package Mailin Package

Changes:
Step1:
-->Open a.php
-->change $sendinglist to following email-id
mobile number.your username(on 160by2 account)@160by2.com
e.g. 9833052906.ashish_khadpe@160by2.com
-->save a.php

Follow the same steps for step1(remaining), step2 and step3.

Your SMTP service is now active to send message to any mobile
run your a.php



Saturday, April 10, 2010

How to send mail using SMTP

To Send mail u need script which u can get from following link
Mailin Package

Extract these package and paste ths mailing folder in htdocs folder

In These Package you will have following files which needs to be changed
1.a.php
2.sendmail.ini
3.php.ini

Step 1:
-->open a.php file
-->change $mail->Username to your email-id(from which you want to send mail)
-->change $mail->Password to password of above email-id
-->change $mail->From to same email-id
-->change $mail->FromName to your application name
-->change $mail->Subject to subject of your email
-->change $sendinglist to email-id's to which you want to send mails
-->save a.php

Step 2:
-->open sendmail.ini file
-->change auth_username to your email-id(from which you want to send mail)[line no 38]
-->change auth_password to password of above email-id[line no 39]
-->save sendmail.ini

Step 3:
-->Start your Apache service in XAMPP control panel
-->Go To XAMPP
-->Go To phpinfo()
-->Check your php.ini files path in xampp folder
-->replace php.ini file from mailing package with your php.ini file

Your SMTP service is active now
run your a.php



For More Detail Check out Spaced Upon

Tuesday, February 9, 2010

.NET Framework

You should understand that the .NET Framework is really a cluster of several
technologies:
The .NET languages: These include C# and VB .NET (Visual Basic .NET), the objectoriented
and modernized successor to Visual Basic 6.0; these languages also include
JScript .NET (a server-side version of JavaScript), J# (a Java clone), and C++ with
Managed Extensions.
The CLR (Common Language Runtime): The CLR is the engine that executes all .NET
programs and provides automatic services for these applications, such as security
checking, memory management, and optimization.
The .NET Framework class library: The class library collects thousands of pieces of
prebuilt functionality that you can “snap in” to your applications. These features are
sometimes organized into technology sets, such as ADO.NET (the technology for
creating database applications) and Windows Forms (the technology for creating
desktop user interfaces).
ASP.NET: This is the engine that hosts web applications and web services, with almost
any feature from the .NET class library. ASP.NET also includes a set of web-specific
services.
Visual Studio: This optional development tool contains a rich set of productivity and
debugging features.

Monday, February 8, 2010

.NET Introduction

Why .NET?
To understand why we should use .NET, Let us first understand the difference between client-side & server-side coding.
There are following problem exists with client-side coding.
1. Isolation : No contact with Database(Except error condition occurs)
2. Security: End users can view client-side code. And once malicious users understand
how an application works, they can often tamper with it.
3. Thin clients: As the Internet continues to evolve, web-enabled devices such as mobile
phones, palmtop computers, and PDAs (personal digital assistants) are appearing.
These devices can communicate with web servers, but they don’t support all the
features of a traditional browser. Thin clients can use server-based web applications,
but they won’t support client-side features such as JavaScript.

In some cases, ASP.NET allows you to combine the best of client-side programming
with server-side programming. For example, the best ASP.NET controls can intelligently
detect the features of the client browser. If the browser supports JavaScript, these controls
will return a web page that incorporates JavaScript for a richer, more responsive user
interface. However, no matter what the capabilities of the browser, your code is always
executed on the server.