Register for your free account! | Forgot your password?

You last visited: Today at 10:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



A question

Discussion on A question within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
►™SuperE™◄'s Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
A question

Hey guys, I am making a program for CO2 (not a hack) in visual basic 2012, I made report for bugs form and here's the code for it to send an e-mail, using g-mails.
PHP Code:
            Dim Mail As New MailMessage
            Mail
.Subject sbjt.Text
            Mail
.To.Add(eml.Text)
            
Mail.From = New MailAddress(fml.Text)
            
Mail.Body body.Text

            Dim SMTP 
As New SmtpClient("smtp.gmail.com")
            
SMTP.EnableSsl True
            SMTP
.Credentials = New System.Net.NetworkCredential("username""password")
            
SMTP.Port "587"
            
SMTP.Send(Mail
eml = My g-mail
fml = User's g-mail (textbox)
sbjt = subject textbox
body = report information richtextbox
, I get this message in this line

Help will be really appreciated
►™SuperE™◄ is offline  
Old 06/26/2013, 03:14   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You're using an authenticated mail port using blank login information. It should be your correct login information for the gmail account.

You should also verify beforehand that their mail server is accepting the login credentials properly (aka set it up in a standard mail client and test your settings before using them in any coding)
pro4never is offline  
Old 06/26/2013, 03:34   #3
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 329
go for it is offline  
Old 06/26/2013, 08:01   #4
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
I would suggest not doing this if you're planning to put it in your client. Since they can get your mail account from the program.
Super Aids is offline  
Old 06/26/2013, 11:56   #5
 
►™SuperE™◄'s Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 350
Received Thanks: 421
Quote:
Originally Posted by pro4never View Post
You're using an authenticated mail port using blank login information. It should be your correct login information for the gmail account.

You should also verify beforehand that their mail server is accepting the login credentials properly (aka set it up in a standard mail client and test your settings before using them in any coding)
tried doing that and used a real g-mail address to send to my e-mail, this error doesn't appear, but the form freezes and stops responding ._.
►™SuperE™◄ is offline  
Old 06/26/2013, 18:51   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by Super Aids View Post
I would suggest not doing this if you're planning to put it in your client. Since they can get your mail account from the program.
Indeed. Should be server side handling of bug reports either through a command or other program client side.
pro4never is offline  
Thanks
1 User
Old 06/26/2013, 19:20   #7
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
An alternative could be sending a packet from the program to the server.
Super Aids is offline  
Old 06/26/2013, 20:14   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by Super Aids View Post
An alternative could be sending a packet from the program to the server.
Quote:
Originally Posted by pro4never View Post
... or (from) other program client side.

<3?
pro4never is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 10:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.