Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

assuming you have a reference to System.Web ( or it wouldnt allow you to get as far as you have ) this should work.

are you specifying the correct mail server? eg: mail.hotmail.com

here's a quick sample i built up that works for me:

       Dim eMail As New Mail.MailMessage()
       With eMail
           .To = "csharp_@hotmail.com"
           .From = "dynamic"
           .Subject = "mail test"
           .Body = "some text"
           .BodyFormat = Mail.MailFormat.Text
           Mail.SmtpMail.SmtpServer = "mail.hotmail.com" '/// mail server
           Mail.SmtpMail.Send(eMail)
       End With

  • 5 months later...
Posted
This code piece doesn't seem to do the trick for me. Do I need to log in to Hotmail first? Or should I be able just to use the hotmail SMTP server without further?
qrt
Posted

I posted a few days ago a code on how to send emails without the CDO's, can't remember the link, but was a recent one

 

Regards

Fat kids are harder to kidnap

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...