MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Programming > General programming discussions
Reload this Page Help with text fields
General programming discussions General programming discussions

Reply
 
LinkBack Thread Tools
Help with text fields
(#1)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 131
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 632
Join Date: Jan 2008
Location: MMOwned HQ
Help with text fields - 05-25-2008

Alright, I need some help with Visual Studio.

I have 7 text fields that the user needs to fill out and a button. I want the outcome to be when the button is pressed it sends an email to xxxxxxx@xxxxxxx.com with the field information.

Thanks tons to whoever helps... it'd be greatful. I'm new to VS and trying to make something so it'd really be helpful.

Thanks





Last edited by Krip; 05-25-2008 at 10:53 AM.
Reply With Quote

Donate to remove ads.
(#2)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

I have the code for emailing, but you need a gmail account.




Reply With Quote
(#3)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 131
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 632
Join Date: Jan 2008
Location: MMOwned HQ
05-26-2008

Yeah, that's fine as long as it sends the email to it

Let's hear the code!

Thanks.




Reply With Quote
(#4)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

Just stick this inside a method
Code:
   
            Dim mail As New MailMessage()
            Dim SmtpServer As New SmtpClient
            SmtpServer.Credentials = New Net.NetworkCredential("<gmail account name here>", "<gmail account password here>")
            SmtpServer.Port = 587
            SmtpServer.Host = "smtp.gmail.com"
            SmtpServer.EnableSsl = True

            mail.To.Add("<your email [Only registered and activated users can see links. ]>")
            mail.From = New MailAddress("<your email [Only registered and activated users can see links. ]>")

            mail.Subject = "<Change the subject name>"
            mail.Body = <wherever you want to get your text from, IE a text box or something>

            SmtpServer.Send(mail)
Just make sure you don't have the <> in the code that's just to show what goes where. But do have the "" everywhere.




Reply With Quote
(#5)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 131
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 632
Join Date: Jan 2008
Location: MMOwned HQ
05-26-2008

Alright, I'm getting the following errors:

Warning 1 Namespace or type specified in the Imports 'System.Web.Mail' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\Admin\Documents\Visual Studio 2008\Projects\Wrath of the Lich King Beta Inviter\Wrath of the Lich King Beta Inviter\Form1.vb 3 9 Wrath of the Lich King Beta Inviter

Error 2 Type 'MailMessage' is not defined. C:\Users\
Admin\Documents\Visual Studio 2008\Projects\Wrath of the Lich King Beta Inviter\Wrath of the Lich King Beta Inviter\Form1.vb 18 25 Wrath of the Lich King Beta Inviter

Error 3 Type 'SmtpClient' is not defined. C:\Users\
Admin\Documents\Visual Studio 2008\Projects\Wrath of the Lich King Beta Inviter\Wrath of the Lich King Beta Inviter\Form1.vb 19 31 Wrath of the Lich King Beta Inviter

Error 4 Type 'MailAddress' is not defined. C:\Users\
Admin\Documents\Visual Studio 2008\Projects\Wrath of the Lich King Beta Inviter\Wrath of the Lich King Beta Inviter\Form1.vb 26 25 Wrath of the Lich King Beta Inviter

Error 5 Character is not valid. C:\Users\Admin\Documents\Visual Studio 2008\Projects\Wrath of the Lich King Beta Inviter\Wrath of the Lich King Beta Inviter\Form1.vb 29 37 Wrath of the Lich King Beta Inviter


You've been so helpful... thanks a lot man.

+rep when I spread





Reply With Quote
(#6)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Krip View Post
Alright, I'm getting the following errors:

Warning 1 Namespace or type specified in the Imports 'System.Web.Mail' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:UsersAdminDocumentsVisual Studio 2008ProjectsWrath of the Lich King Beta InviterWrath of the Lich King Beta InviterForm1.vb 3 9 Wrath of the Lich King Beta Inviter

Error 2 Type 'MailMessage' is not defined. C:Users
AdminDocumentsVisual Studio 2008ProjectsWrath of the Lich King Beta InviterWrath of the Lich King Beta InviterForm1.vb 18 25 Wrath of the Lich King Beta Inviter

Error 3 Type 'SmtpClient' is not defined. C:Users
AdminDocumentsVisual Studio 2008ProjectsWrath of the Lich King Beta InviterWrath of the Lich King Beta InviterForm1.vb 19 31 Wrath of the Lich King Beta Inviter

Error 4 Type 'MailAddress' is not defined. C:Users
AdminDocumentsVisual Studio 2008ProjectsWrath of the Lich King Beta InviterWrath of the Lich King Beta InviterForm1.vb 26 25 Wrath of the Lich King Beta Inviter

Error 5 Character is not valid. C:UsersAdminDocumentsVisual Studio 2008ProjectsWrath of the Lich King Beta InviterWrath of the Lich King Beta InviterForm1.vb 29 37 Wrath of the Lich King Beta Inviter


You've been so helpful... thanks a lot man.

+rep when I spread

Ahh my bad forgot the imports lol


Imports System.Web
Imports System.Net.Mail

Those should be it, I'm not sure, if you get more errors let me know.




Reply With Quote
(#7)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 131
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 632
Join Date: Jan 2008
Location: MMOwned HQ
05-26-2008

Alright, those went away.

I have 6 different boxes so I did this:

Code:
mail.Body = RichTextBox1; RichTextBox2; RichTextBox3; RichTextBox4; RichTextBox5; RichTextBox6
but now I get the following error:

Error 2 Value of type 'System.Windows.Forms.RichTextBox' cannot be converted to 'String'. C:\Users\Geoff\Documents\Visual Studio 2008\Projects\Wrath of the Lich King Beta Inviter\Wrath of the Lich King Beta Inviter\Form1.vb 31 25 Wrath of the Lich King Beta Inviter

Also, I get these:


Warning 1 Namespace or type specified in the Imports 'System.Web.Mail' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Error 3 Character is not valid.




Reply With Quote
(#8)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Krip View Post
Alright, those went away.

I have 6 different boxes so I did this:

Code:
mail.Body = RichTextBox1; RichTextBox2; RichTextBox3; RichTextBox4; RichTextBox5; RichTextBox6
but now I get the following error:

Error 2 Value of type 'System.Windows.Forms.RichTextBox' cannot be converted to 'String'. C:UsersGeoffDocumentsVisual Studio 2008ProjectsWrath of the Lich King Beta InviterWrath of the Lich King Beta InviterForm1.vb 31 25 Wrath of the Lich King Beta Inviter

Also, I get these:


Warning 1 Namespace or type specified in the Imports 'System.Web.Mail' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Error 3 Character is not valid.
Instead of using Rich Text Boxes, use Textboxes, and set them to Multiline true.

Also try adding this to the imports - Imports System.Web.Mail




Reply With Quote
(#9)
Old
Clain's Avatar
Clain is Offline
Contributor
Rep Power: 1
Reputation: 89
Clain will become famous soon enough
 
Posts: 785
Join Date: Jan 2008
05-26-2008

BTW; They can easily hack the gmail account by this method.


2 years have passed since the mortal races banded together to emulate World of Warcraft...
But the alliances have been broken and the drums of flaming thunders sounded once again.

Developer of Spurious.
Reply With Quote
(#10)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Clain View Post
BTW; They can easily hack the gmail account by this method.
They probably can, do they just see the outgoing connection? Like I'm interested how this can be done differently, as this is the only method I know of.




Reply With Quote
(#11)
Old
Clain's Avatar
Clain is Offline
Contributor
Rep Power: 1
Reputation: 89
Clain will become famous soon enough
 
Posts: 785
Join Date: Jan 2008
05-26-2008

Its the only way I know how to do it aswell. Apoc used like the same way for one of his programs and the gmail accounts kept getting taken. Then with my gm hack I used that method but everyone said that the gmail accounts got stolen.


2 years have passed since the mortal races banded together to emulate World of Warcraft...
But the alliances have been broken and the drums of flaming thunders sounded once again.

Developer of Spurious.
Reply With Quote
(#12)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Clain View Post
Its the only way I know how to do it aswell. Apoc used like the same way for one of his programs and the gmail accounts kept getting taken. Then with my gm hack I used that method but everyone said that the gmail accounts got stolen.
How do they get the password from the program though?




Reply With Quote
(#13)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 131
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 632
Join Date: Jan 2008
Location: MMOwned HQ
05-26-2008

Hmm...

Well I changed to text boxes and I'm still getting four errors:

These are caused by your gmail script:
Code:

Value of type 'System.Windows.Forms.TextBox' cannot be converted to 'String'.    


Character is not valid.   
And these are just with all of it:

Code:
'End Class' must be preceded by a matching 'Class'.    

 'Class' statement must end with a matching 'End Class'. 




Reply With Quote
(#14)
Old
The Maffyx is Offline
Knight-Champion
Rep Power: 2
Reputation: 45
The Maffyx is on a distinguished road
 
Posts: 565
Join Date: Feb 2007
05-26-2008

Quote:
Originally Posted by Krip View Post
Hmm...

Well I changed to text boxes and I'm still getting four errors:

These are caused by your gmail script:
Code:

Value of type 'System.Windows.Forms.TextBox' cannot be converted to 'String'.    


Character is not valid.   
And these are just with all of it:

Code:
'End Class' must be preceded by a matching 'Class'.    

 'Class' statement must end with a matching 'End Class'. 
Ok the textbox thing needs to have .text after it, and alll the way at the bottom typ End Class.




Reply With Quote
(#15)
Old
Krip's Avatar
Krip is Offline
Contributor
Rep Power: 1
Reputation: 131
Krip will become famous soon enoughKrip will become famous soon enough
 
Posts: 632
Join Date: Jan 2008
Location: MMOwned HQ
05-27-2008

Alright, I get the character not valid because I did the following:

Code:
 mail.Body = TextBox1.Text; Textbox2.text; Textbox3.text; Textbox4.text; Textbox5.text; Textbox6.text; Textbox7.text
If I do just this:

Code:
 mail.Body = TextBox1.Text
It works. Anything I can do?




Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327