[Gambas-devel] smtp problem

Benoit Minisini gambas at ...1...
Thu Oct 5 19:13:20 CEST 2006


On Wednesday 04 October 2006 07:34, Stefano Pria wrote:
> Montelupo Fiorentino, Italy 2 Ottobre/October 2006
>
>  Thank you very much Mr. Benoit Minisini for your attention,
>
>  now I adjust my software with your indication and I arrive to Send the
>  message but the software stop in SEND function:
>
>  PUBBLIC SUB ToolButton1_Click()
>  DIM scratch_var  as Integer
>
>  smtpobj.From = "priastefano at ...506..."
>  smtpobj.To.Add("priastefano at ...255...")
>  smtpobj.Subject = "Try to send an image"
>  smtpobj.Add(File.Load("/home/stefano/NameImage.jpg"), "image/jpeg",
>  "NameImage.jpg")
>  smtpobj.Send()
>
>  scratch_var += 1
>  ......
>  END
>
>  The program never arrive at    "scratch_var += 1" statement and never
>  arrive the message in my mail box.
>
>  At object smtpclient I was assigned Port:25 and Host: out.aliceposta.it
>  like my email account configuration of  kmail.
>  With KMail I try to send email and I have success,
>  I try to change Host configuration of SmtpClient with "smtp.posta.tim.it"
>  and when I try to SEND message GAMBAS say "Mailserver unknown"...
>
>  What's still wrong ? What can I try ?
>
>  Thank yuo in advance for your time.
>
>  Distinti Saluti/Best Regards
>  Pria Stefano
>

Do you have problems yet?

I don't see anything wrong in the way you use SmtpClient. Are you sure that 
you use exactly the same From field as with KMail ?

Can you try with another mail server?

My own tests with the smtp server of my FAI were always successful. I will try 
again when I have time.

Note that I have briefly documented gb.net.smtp on the wiki. Maybe I should 
add some examples...

Regards,

-- 
Benoit Minisini





More information about the Devel mailing list