Click here to Skip to main content
14,638,468 members
Rate this:
Please Sign up or sign in to vote.
I have an account at www.000webhost.com. This free webhosting also gives you web-emails accounts.-I have register one :)-

What I want is to sent emails with Visual Basic Windows Forms to that email server.
We all know that we can do this with Gmail....

MyMailMessage.From() = New MailAddress("gmail-account")
            MyMailMessage.To.Add("gmail-to.send;)
            MyMailMessage.Subject = "anything"
            MyMailMessage.Body = "anything"
            Dim SMTP As New SmtpClient("smtp.gmail.com")
            SMTP.Port = 587
            SMTP.EnableSsl = True
            SMTP.Credentials = New System.Net.NetworkCredential("gmail-account", "gmail-password")
            SMTP.Send(MyMailMessage)


I will also write the Informations you will need to find a code that can do this.

Informations:

To configure email client such as Outlook Express you need these details:

Type of incoming mail server: POP3 or IMAP
Incoming mail (POP3 / IMAP) server: mx.000webhost.com
Outgoing (SMTP) server: you need to use your ISP (Internet Service Provider) SMTP server. Call your ISP to know your SMTP (mail sending) server. In case you are unable to get SMTP server, you can use WebMail for email sending.

Their webmail clients are : RoundCube , AtMail , SquirrelMail


Can you help me guys?

Thanks in advance,
GeorgeGkas
Posted
Updated 12-Jul-14 0:54am
v3
Comments
nilesh sawardekar 12-Jul-14 10:41am
   
smtp.port=465
GeorgeGkas 12-Jul-14 13:12pm
   
you mean?
nilesh sawardekar 13-Jul-14 1:33am
   
change smtp.port from 587 to 465 and try
Tino Fourie 13-Jul-14 9:11am
   
The SMTP (used for sending out emails to your ISP) protocol has three distinct ports used by ISP's to listen for incoming message from clients. These ports are 25, 465 and 587. It is also important to understand that some ISP's you will need to specify to use SSL or that you need to send your Username and Password of your mailbox to verify that you are a client before the ISP will accept your email message. This is called SMTP Authentication.

Not all ISP's require you to connect with SSL but they do require you to authenticate. SSL authentication happens on port 465 and 587 while standard authentication can be done on port 25.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100