Re: Difference between wodSmtp1.SendMessage and w - WeOnlyDo Discussion board

Re: Difference between wodSmtp1.SendMessage and w (General questions)

by nightwalker83, Friday, August 06, 2010, 09:59 (5222 days ago) @ wodDamir

Hi,

What e-mail account are you trying to use? Do you need to authenticate to e-mail server?

Can you show me your code where you set e-mail properties (From, To, etc. before you call SendMessage?

Regards,
Damba


The account settings:
Public Function Login()
Select Case frmSettings.cboHost.Text
Case Gmail
With Smtp

.HostName = smtp.gmail.com
.Authentication = AuthAuto
.Blocking = True
.Security = SecurityImplicit
.MailFrom = spehr.aaron@gmail.com
.Login = frmSettings.txtUsername.Text
.Password = frmSettings.txtPassword.Text
.Port = 465
.Connect
End With
With Pop3
.HostName = pop.gmail.com
.Authentication = AuthAuto
.Security = SecurityImplicit
.Login = frmSettings.txtUsername.Text
.Password = frmSettings.txtPassword.Text
.Port = 995
.Connect
End With
frmMain.Caption = frmMain.Caption + + frmSettings.cboHost.Text
End Select
End Function

The mailing send:

With Smtp
.Message.attach C:UsersNightwalkerDesktopMail version 3.0.1MailfrmAttachments.log
.Message.From = frmSettings.txtUsername.Text
.Message.To = frmCompose.txtTo
.Message.Subject = frmCompose.txtSubject.Text
.Message.Body = frmCompose.txtBody.Text
.SendMessage
End With


Complete thread: