ho trovato questo in rete:
Dim t$ As String
> 15 Dim email As New SmtpClient
> 16
> 17 t$ = File.Load("/home/marty/Test.txt")
> 18
> 19 With email
> 20 .Add("Hello")
> 21 .Add(t$, Text/Plain, "Test.txt")
> 22 .To.Add("xxxxxx@xxxx.xxx")
> 23 .From = "xxxxxx@xxxx.xxx"
> 24 .Subject = "Linux Test"
> 25 .Encrypt = Net.None
> 26 .Port = 25
> 27 .Host = "smtp.xxxx.com"
> 28 .User = "xxxxxxx@xxxx.xxx"
> 29 .Password = "password"
> 30 .Debug = True
> 31 End With
> 32
> 33 email.Send()
due domande!
1) riga 25 Encrypt da gmail TSL o SSL
2) riga 26 port 25 come da programma oppure 587 come in python
Grazie per ora