Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi there...

I have a web page in that 2 options to acknowledge the user (with two check boxes)

1.Via SMS
2.Via Mails
For Email sending purpose should i use any other server other than IIS...
How to send SMS....?Should i need collaboration with mobile company....
Once set everything how can i check my sms and mails correctly go into addressee? Plz help me giving some basic ideas

Thanks in advance
Posted
Comments
Abhinav S 3-Nov-10 1:49am    
If you search on the internet, you might get something to start with.

Send by mail, using IIS smtp, can be done quite easily done, by just copy a few lines of code from w3schools website.

http://www.w3schools.com/asp/asp_send_email.asp

Personally I always to to W3schools for reference as they should be the authority!

In China, there is a service called Fetion by China Mobile which costs 5 rmb charge per month for the registered user to send SMS to each other free. The offical will not support api interface but someone http://sms.api.bz does. I tested it and work ok. But I believe this maybe a chargeable service if one use it seriously; I only test a few weeks just to prove it works; when they rang me ask a lot questions, I stop.

rgds,
kfl.
 
Share this answer
 
Comments
irfanansari 4-Nov-10 2:22am    
PLEASE TELL ME WHICH WEB SITE U GAVE IT IS OTHER LANGUAGE WHICH I DID NOT DISPUTANT SO HOW I CAN WORK THERE?
KFLee 7-Nov-10 7:30am    
Sorry, this is the only one I tested. It is a Chinese website; I have no idea about the other avaialbe sites.
To send emails in .Net use the SMTPClient class[^] by changing the DeliveryMethod Property you can specify to use an external SMTP server the default IIS pickup directory or a different pickup directory.
The other class to use with this one is the SMTPClient.Credentials[^] this allows you to specify login information for external SMTP servers.
For sending SMS you will need to register with an external service google for "email to sms gateway" and you will get lots of options.
As for if knowing if an email goes to the correct address that's what your code is for i.e. make sure you put the correct address. AS for knowing if delivery was successful you can specify the DeliveryNotificationOptions in the MailMessage Class[^]

When using IIS to send emails if it does not have a valid domain for example you are using a server on an intranet and trying to send emails external to the intranet those messages can be classified as spam as the address specified in the mail message can't be validated as coming from a valid domain. This part of the configuration though should be done by a competent systems engineer all you should have to concern yourself with is which smtp server to use IIS or an external one.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900