Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[asp.net - c#] sending email through my web

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Thu Mar 26, 2009 11:27 pm    Post subject: [asp.net - c#] sending email through my web Reply with quote

i'm trying to send an email through my website (it's running on my localhost so i don't know if that's matter)
Code:

      public bool SendMail (string From, string To, string MsgSubject, string MsgBody)
      {
         MailMessage mailMsg = new MailMessage();
         mailMsg.From = From;
         mailMsg.To = To;
         mailMsg.Subject = MsgSubject;
         mailMsg.BodyFormat = MailFormat.Text;
         mailMsg.Body = MsgBody;
         mailMsg.Priority = MailPriority.High;
         //SmtpMail.SmtpServer = "127.0.0.1";
         try
         {
            SmtpMail.Send(mailMsg);
            return true;
         }
         catch (Exception ex)
         {
            return false;
         }
      }


that's the method for sending the mail, and it doesn't send any email
now i was wondering about the smtp server since it's running on my localhost i didn't know what should i put there
any1 know how can i send the email?! even though it's on localhost ?! thanks :>
Back to top
View user's profile Send private message
Mr.Bill
How do I cheat?
Reputation: 0

Joined: 19 Mar 2009
Posts: 4

PostPosted: Fri Mar 27, 2009 12:44 am    Post subject: Reply with quote

Yeah, you have to be running an SMTP server in IIS if you want to send it from your computer. Otherwise you need to use your ISP's SMTP server.

I know you can setup the SMTP server in IIS to send mail but its a bit of a hack because there are is not a DNS server pointing to the IP address of your computer.

_________________
Mr. Bill
Back to top
View user's profile Send private message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Mar 27, 2009 4:25 am    Post subject: Reply with quote

This guide might become usefull if you want to configure the SMTP server to send mail via iis. :
http://www.codeproject.com/KB/winsdk/ConfigServerSmtp.aspx

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sat Mar 28, 2009 11:38 pm    Post subject: Reply with quote

thanks for help :]
+ rep Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites