Ciao a tutti,
sto sviluppando una windows form che mi invia le mail (su una macchina windows 2000 server).
il problema è questo: devo inviare questa mail tramite il nostro smtp che richiede l'autenticazione.
Come faccio a dargli l'autenticazione?
il codice che utilizzo per inviare l'e-mail è:
imports system.web.mail
dim msg as new mail.message
msg.bodyformat=mailformat.text
msg.subject=oggetto
msg.body=testo
msg.to=prova@prova.it
msg.from=prova2@prova2.it
smtpmail.smtpserver=xxx.xxx.xxx.xxx
smtpmail.send(msg)