Click here to Skip to main content
15,884,917 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing a project for sending email to email account and sms to mobile in windows 7 using vs2005.
I have free SMTP server for sending it. Program is successfully executed but I do not get the message and sms to respective account.

Is there any possible way to send this in another way in windows 7?

Please reply me at [Email and phone number removed.]
Posted
Updated 25-Mar-11 0:05am
v2
Comments
Johnny J. 25-Mar-11 6:05am    
If you give us your personal address as well, we can copy the code for you and send it by mail!!! :-P
MShakthi 25-Mar-11 7:52am    
sakthi.ind89@gmail.com.................plz send to dis
Sandeep Mewara 25-Mar-11 6:06am    
Once someone replies, you will get an email automatically.
Johnny J. 25-Mar-11 6:07am    
Ah, come on Sandeep - don't be such a spoilsport - I'm compiling an email list which I plan to sell to the highest bidder... :-)
thatraja 3-Apr-11 21:31pm    
:D

1 solution

Both Email & SMS are sent via SMTP.

1. The 'To' property of MailMessage class must be assigned to the recipient email (for sending email) or the mobile number (for sending SMS) along with the provider's sub domain. For example, Bell Canada mobile numbers should be 'mobilenumber@txt.bell.ca', Rogers mobile numbers should be 'mobilenumber@pcs.rogers.com' etc. You can check your local mobile providers for their sub domain for sending SMS

2. The computer where you execute your email program must have a SMTP enabled IP address to send email or SMS

Hope this will help.
 
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