» »

Vb.net pošiljane pošte SMTP Amis

Vb.net pošiljane pošte SMTP Amis

simkle ::

Pozdravljeni,
imam težavo pri pošiljanju elektronske pošte iz VB.net. Če pošiljam preko GMAILa mi normalno pošlje s spodnjo kodo. Pošiljanje preko amis naslova pa ne gre.
Port: 465
Strežnik: smtp.amis.net

Ima kdo kakšno idejo?

lp


Try
Dim SmtpServer As New SmtpClient()
Dim mail As New MailMessage()
SmtpServer.Credentials = New _
Net.NetworkCredential("primer8@gmail.com", "pass")
SmtpServer.Port = 587
SmtpServer.Host = "smtp.gmail.com"
SmtpServer.EnableSsl = True
SmtpServer.DeliveryMethod = SmtpDeliveryMethod.Network
'SmtpServer.UseDefaultCredentials = True
mail = New MailMessage()
mail.From = New MailAddress("primer@gmail.si", "IME ZA PRIKAZ")
mail.To.Add("krneki@krneki.si")
mail.Subject = "Test Mail"
mail.Body = "This is for testing SMTP mail from GMAIL"
SmtpServer.Send(mail)
MsgBox("mail send")
Catch ex As Exception
MsgBox(ex.ToString)
End Try

Poldi112 ::

Ko rešeš da ne gre - kaj konkretno ti javi?
Where all think alike, no one thinks very much.
Walter Lippmann, leta 1922, o predpogoju za demokracijo.

simkle ::

Javi: "The operation has timed out."

simkle ::

Pomoje je problem pri "Authentication method". Nevem kako nastavit: "Authentication method: Normal password"....

simkle ::

Sem rešil zadevo:
Dim SmtpClient As SmtpClient = New SmtpClient()
Dim basicCredential As New NetworkCredential
basicCredential.UserName = "uportabniskoime"
basicCredential.Password = "geslo"
Dim MailMessage As New MailMessage()
Dim fromAddress As New MailAddress("krneki@amis.si")
SmtpClient.Host = "smtp.amis.net"
SmtpClient.EnableSsl = True
SmtpClient.UseDefaultCredentials = False
SmtpClient.Credentials = basicCredential
MailMessage.From = fromAddress
MailMessage.Subject = "your subject"
MailMessage.Body = "body"
MailMessage.To.Add("krneki@gmail.si")
Try
SmtpClient.Send(MailMessage)
Catch ex As Exception
MsgBox(ex.ToString)
End Try


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Visual Basic

Oddelek: Programiranje
313417 (2443) cekr
»

Pomoč pri kontakt formi

Oddelek: Izdelava spletišč
518488 (18386) Vzdevek
»

[C#] Simobilov Glasnik

Oddelek: Programiranje
134327 (1407) Mrch
»

[ASP.NET] send mail

Oddelek: Programiranje
51260 (1197) Microsoft
»

Poslijanje majla preko SMTP (IIS); kako?

Oddelek: Omrežja in internet
81670 (1587) Microsoft

Več podobnih tem