Ok, maybe I got this completely wrong, so here's my first trial with 
gb.net.smtp:

Public Sub Main()

Dim email As New SmtpClient

   With email
     .Add("Is this the mailtext?")
     .To.Add("mymainem...@receiver.de")
     .From = "sen...@provider.de"
     .Subject = "Just a test"
     .Port = 25
     .Host = "smtp.provider.de"
     .User = "username"
     .Password = "password"
   End With

   email.Send

End


Everything is accepted, but email.Send never returns, i. e. the program 
never stops and I've never got an email.

Does .Add really add the message text, or is it for attachments only? 
Where would I have to add the message body text then?

The plan is to automatically send an email like from an ordinary mail 
client (Thunderbird) via my smtp provider to the receiver. There should 
be a mail text and a pdf attached.

Regards

Rolf

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to