|
-
Aug 26th, 2006, 10:48 AM
#1
Thread Starter
Addicted Member
[2005] Smtp Mail
Hi,
I do not have an e-mail account from my internet service provider.
I have an e-mail account of gmail, and I want to send an e-mail from an application that I'll build with Microsoft Visual Basic 2005 Express Edition.
Example that not work:
VB Code:
Imports System.Net.Mail
Dim Mail As New System.Net.Mail.MailMessage
With Mail
.To.Add("MailAddress")
.From = New MailAddress("MailAddress")
.Subject = "Some Subject"
.Body = "Some Body"
End With
Dim smtp As New SmtpClient("smtp.gmail.com")
smtp.Send(Mail)
smtp = Nothing
Mail.Dispose()
MessageBox.Show("Your message has been sent")
But if I have an e-mail account from my internet service provider and I'll change the line:
VB Code:
Dim smtp As New SmtpClient("smtp.gmail.com")
To:
Dim smtp As New SmtpClient("smtp.internet service provider")
Then the program is working OK
Can somebody help me or have suggestion or some example?
Thanks in advance
-
Aug 26th, 2006, 11:01 AM
#2
Re: [2005] Smtp Mail
GMail is a web-based email, not an SMTP service.
edit: I guess you can use it though
Last edited by penagate; Aug 26th, 2006 at 11:37 AM.
-
Aug 26th, 2006, 11:26 AM
#3
Frenzied Member
Re: [2005] Smtp Mail
You can use Gmail as your outgoing SMTP server...
see the post
HERE
If you find my thread helpful, please remember to rate me 
-
Aug 26th, 2006, 01:16 PM
#4
Thread Starter
Addicted Member
Re: [2005] Smtp Mail
Hi,
To: dinosaur_uk
Your post at: http://www.vbforums.com/showthread.php?t=422762 #13
Is excellent and it's working OK
If I'll give the program that I'll build to a friend, can he send me an e-mail from his computer?
He will enter only:
His e-mail
Subject
Body
Thanks in advance
-
Aug 26th, 2006, 05:01 PM
#5
Frenzied Member
Re: [2005] Smtp Mail
As long as your password and your username is in there, it should be able to send from anywhere....it is ISP dependent...PROVIDED that your isp does not block port number 587...
If you find my thread helpful, please remember to rate me 
-
Aug 27th, 2006, 12:44 AM
#6
Thread Starter
Addicted Member
Re: [2005] Smtp Mail
Hi,
Thank you, you help me a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|