Click here to Skip to main content
15,927,699 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Crystal Report "load report failed" Pin
Joey Picerno4-May-05 6:51
Joey Picerno4-May-05 6:51 
GeneralRe: Crystal Report "load report failed" Pin
Joey Picerno4-May-05 7:23
Joey Picerno4-May-05 7:23 
GeneralRe: Crystal Report "load report failed" Pin
Joey Picerno4-May-05 7:25
Joey Picerno4-May-05 7:25 
GeneralRe: Crystal Report "load report failed" Pin
Madni Abbasi4-May-05 19:17
Madni Abbasi4-May-05 19:17 
GeneralRe: Crystal Report "load report failed" Pin
Madni Abbasi4-May-05 19:10
Madni Abbasi4-May-05 19:10 
GeneralPlaying media files in the embedded Windows Media Player component Pin
vishalmishra4-May-05 4:24
vishalmishra4-May-05 4:24 
Questionhow to send mail through vb.net ? Pin
sumit214-May-05 2:19
sumit214-May-05 2:19 
AnswerRe: how to send mail through vb.net ? Pin
Adam °Wimsatt4-May-05 10:43
Adam °Wimsatt4-May-05 10:43 
yup.. it's fairly simple...

take a look at the documentation for System.Web.Mail

here's a c# example:

<br />
using System.Web.Mail;<br />
...<br />
SmtpMail.SmtpServer = "relayserveraddress";<br />
MailMessage msg = new MailMessage();<br />
msg.From = "from@youraddress.com";<br />
msg.To = "to@them.com";<br />
msg.bcc = "bcc@bcc.bcc";<br />
msg.cc = "cc@cc.cc";<br />
msg.Subject = "test message";<br />
msg.Body = "this is the body of your message<br>Formatted with HTML";<br />
msg.BodyFormat = MailFormat.html;<br />
<br />
SmtpMail.Send(msg);<br />


That's all there is to it. Your code has to have relay access to the smtp server.

Adam



// TODO: Write code.
AnswerRe: how to send mail through vb.net ? Pin
rikpak4-May-05 13:08
rikpak4-May-05 13:08 
GeneralSetup Wizard Pin
johnjsm4-May-05 2:12
johnjsm4-May-05 2:12 
GeneralRe: Setup Wizard Pin
rwestgraham4-May-05 15:58
rwestgraham4-May-05 15:58 
GeneralSolving the AutoNumber column issue Pin
harijulie4-May-05 1:51
harijulie4-May-05 1:51 
Generalmigration from VB 6.0 to VB.NET Pin
Anonymous4-May-05 0:22
Anonymous4-May-05 0:22 
GeneralRe: migration from VB 6.0 to VB.NET Pin
Dave Kreskowiak4-May-05 3:51
mveDave Kreskowiak4-May-05 3:51 
GeneralDate Time Picker Control Pin
Madni Abbasi3-May-05 23:58
Madni Abbasi3-May-05 23:58 
GeneralRe: Date Time Picker Control Pin
Rizwan Bashir4-May-05 0:46
Rizwan Bashir4-May-05 0:46 
GeneralRe: Date Time Picker Control Pin
Madni Abbasi4-May-05 5:45
Madni Abbasi4-May-05 5:45 
Generalthreading in VB6.0 Pin
madhu_panisetty3-May-05 20:59
madhu_panisetty3-May-05 20:59 
GeneralRe: threading in VB6.0 Pin
Dan_P3-May-05 21:33
Dan_P3-May-05 21:33 
GeneralRe: threading in VB6.0 Pin
madhu_panisetty3-May-05 23:34
madhu_panisetty3-May-05 23:34 
GeneralRe: threading in VB6.0 Pin
Rizwan Bashir4-May-05 1:02
Rizwan Bashir4-May-05 1:02 
GeneralRe: threading in VB6.0 Pin
Dave Kreskowiak4-May-05 3:24
mveDave Kreskowiak4-May-05 3:24 
GeneralRe: threading in VB6.0 Pin
rwestgraham4-May-05 16:39
rwestgraham4-May-05 16:39 
Generalvoice recognition Pin
Jaymahinda3-May-05 18:34
Jaymahinda3-May-05 18:34 
GeneralHelp working with excel file and text file Pin
monica2k3-May-05 18:19
monica2k3-May-05 18:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.