RSS Forums RSS
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 830 | Replies: 5 | Solved
Reply
Join Date: Feb 2008
Posts: 13
Reputation: vishakha_ate is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vishakha_ate vishakha_ate is offline Offline
Newbie Poster

Want to send mail through Coding

  #1  
Apr 28th, 2008
Please can anyone help me out to solve my problem.

m developing one site in which i want to send one page to friend.
now m using System.web.mail and using the method in that. but its not working.
so Please can anyone give me the code to send the mail..

In advanced thanks dear.

Please Help me. m not getting any error but why its not working . m stucked now.

with Regards,
Vishakha
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Want to send mail through Coding

  #2  
Apr 28th, 2008
Use system.net.mail.

There are lots of examples out there. If you are still having trouble, holler back and I will post.
--
"Dummy."
Reply With Quote  
Join Date: Feb 2008
Posts: 13
Reputation: vishakha_ate is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vishakha_ate vishakha_ate is offline Offline
Newbie Poster

Re: Want to send mail through Coding

  #3  
Apr 29th, 2008
Originally Posted by ericstenson View Post
Use system.net.mail.

There are lots of examples out there. If you are still having trouble, holler back and I will post.


Thanks Dear!

I have used it and my problem solved. but it is not going to the mail box of my gmail account.
it is getting me in mailroot folder.
is it right?
or some problem is still der.
Reply With Quote  
Join Date: Dec 2007
Posts: 287
Reputation: ericstenson is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 28
Colleague
ericstenson's Avatar
ericstenson ericstenson is offline Offline
Posting Whiz in Training

Re: Want to send mail through Coding

  #4  
Apr 29th, 2008
To send through GMAIL, there are a few things you need to do to make it work with .NET.

(1) Enable POP and/or IMAP in the GMAIL settings
(2) Enable SSL & use Port 587

Dim ObjectMail As New SmtpClient("smtp.gmail.com", 587)
ObjectMail.EnableSsl = True

Good luck,

Eric
--
"Dummy."
Reply With Quote  
Join Date: May 2008
Posts: 4
Reputation: gangu.madduri is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
gangu.madduri gangu.madduri is offline Offline
Newbie Poster

Re: Want to send mail through Coding

  #5  
May 2nd, 2008
u can set the access in Relay property of SMTP in IIS,for the local IP,then u can fire emails from your system.
Reply With Quote  
Join Date: Feb 2008
Posts: 13
Reputation: vishakha_ate is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
vishakha_ate vishakha_ate is offline Offline
Newbie Poster

Re: Want to send mail through Coding

  #6  
May 2nd, 2008
i have done this. Thanks
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:08 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC