Any1 can tell me how to go about sending email with attachment in vb programming code. I know SMTP is one option, but I can't seem to get it working. Any other suggestion??
smtp as you stated is one option but depending on who your end users are you can also use the office inerop components
I will have a look later and try to find / work out some working email code for the smtp , I believe that you have to send the email as html and convert the file to a mime encodement somehow.
smtp as you stated is one option but depending on who your end users are you can also use the office inerop components
I will have a look later and try to find / work out some working email code for the smtp , I believe that you have to send the email as html and convert the file to a mime encodement somehow.
here is my code( i got 3 sets of code) , but all 3 is not working, and i don't know where went wrong, Please Help! Thanks in advance
''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''''''''''''' ''''
'Web.Mail.SmtpM ail.SmtpServer = "user1"
'Dim msg As New Web.Mail.MailMe ssage
THis is the easy way to do that. Put this code insite a Buttom Click event
[CODE]
Dim mySmtp As New System.Net.Mail .SmtpClient
mySmtp.Host = "192.168.2. 1" 'or your correct smtp server name i.e. "smtp.terra.com "
Try
mySmtp.Send("rp icilli@terra.co m.br", "toyou@docstibr asil.com.br", "Teste com .NET", "Hi there")
Catch ex As Exception
MessageBox.Show (ex.Message)
End Try
Comment