ust select SMTP control from Components ( under project menu (visual basic))
With SMTP 'name for control
.Server = outgoingserver 'Outgoing server name or IP address
.MailFrom = mailFrom 'Sender mail address
.SendTo = mailto 'to whom you want to send mail
.MessageSubject ='Subject of message
.MessageText = mailtext 'mail text
.Attachements.Add attachmentpath 'if you want ot attach any file just give the path here
DoEvents
.Connect
End With
Was This Post Helpful? 0 Back to top
MultiQuote
Quote + Reply
but smtp cotrol does not exist in componants