[code] MailSocket.Address = “smtp01.xxxxxx.se” // your SMTP email server
MailSocket.Username = “noreply@xxxxxx.se”
MailSocket.Password = “password2mail”
MailSocket.Port = 25 // Check your server for the property port # to use
// Create the actual email message
Dim mail As New EmailMessage
mail.FromAddress = “jakob@syscare.se”
mail.Subject = “Test Email from Xojo”
mail.BodyPlainText = “Hello, World!”
mail.Headers.AppendHeader(“X-Mailer”, “Xojo SMTP Example”) // Sample header
mail.AddRecipient(“angelica@scrollbar.se”)
// Add the message to the SMTPSocket and send it
MailSocket.Messages.Append(mail) ----------->> error
MailSocket.SendMail ----------->> error[/code]
Error show is:
Type “POP3Socket” has no member named “Messages”
MailSocket.Messages.Append(mail)
Type “POP3Socket” has no member named “SendMail”
MailSocket.SendMail
Code is from the docs and I’ve looked in the Exampple Folder for sending e-mail, but simply, I don’t get it!
These members are not in other projekct and how do I add these!?
Yes, that was really nice of Garvin to take the time to look at the code!
I really didn’t expect all to take so much time.
I didn’t really felt comfortable sharing such details in public…
(But there are no secrets as such!)
I now look in Thunderbird, and settings are IMAP and on port 110.
Maybe my Swedish ISP, Telia, prevent me from using port 25? I will do some more investigation on these things as it is still the interesting idea. To use a dedicated Xojo-app to send e-mails.
But now, there is midsummer and midsummer in Sweden is magic!!
Once in a lifetime, try spend a midsummer in Sweden!