Click here to Skip to main content
15,914,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionsend mail vb.net Pin
ste199030-Oct-08 5:06
ste199030-Oct-08 5:06 
AnswerRe: send mail vb.net Pin
jzonthemtn30-Oct-08 5:54
jzonthemtn30-Oct-08 5:54 
AnswerRe: send mail vb.net Pin
Dave Kreskowiak30-Oct-08 7:35
mveDave Kreskowiak30-Oct-08 7:35 
AnswerRe: send mail vb.net Pin
Jon_Boy30-Oct-08 8:35
Jon_Boy30-Oct-08 8:35 
AnswerRe: send mail vb.net Pin
nlarson1130-Oct-08 10:59
nlarson1130-Oct-08 10:59 
GeneralRe: send mail vb.net Pin
Jon_Boy31-Oct-08 1:17
Jon_Boy31-Oct-08 1:17 
AnswerRe: send mail vb.net Pin
pdnet30-Oct-08 18:48
pdnet30-Oct-08 18:48 
AnswerRe: send mail vb.net Pin
Luc Pattyn30-Oct-08 19:02
sitebuilderLuc Pattyn30-Oct-08 19:02 
Hi,

your Internet provider typically also offers a mail service, which is
adequate to send out mail messages, even if you choose not to use it
to receive anything.

Then a simple piece of code will do the job, based on MailMessage
and SmtpClient classes. Here is a C# snippet for you (the very same thing
can be done in VB.NET):

MailMessage msg=new MailMessage();
msg.From = ...;
msg.To.Add(...);
msg.CC.Add(...);
msg.Subject=...;
msg.Body=...;
SmtpClient client = new SmtpClient(server);
client.Send(msg);


And the surprise is you can assign any valid mail address to the From
property, so you could well make it look as if you used your Yahoo account to
send the message, although you did not.

BTW: server is the mail-out server of your provider, a typical example
in Belgium would be "relay.skynet.be" or "relay.belgacom.be"

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


QuestionConverting string to binary and vice versa Pin
Dbase30-Oct-08 4:03
Dbase30-Oct-08 4:03 
AnswerFind your answer in help Pin
David Mujica30-Oct-08 4:43
David Mujica30-Oct-08 4:43 
AnswerRe: Converting string to binary and vice versa Pin
DaveyM691-Nov-08 1:41
professionalDaveyM691-Nov-08 1:41 
QuestionScrollable Grid Help Pin
AHeavey30-Oct-08 2:52
AHeavey30-Oct-08 2:52 
QuestionActive Form visible in taskbar Pin
DCAUB30-Oct-08 2:18
DCAUB30-Oct-08 2:18 
AnswerRe: Active Form visible in taskbar Pin
jzonthemtn30-Oct-08 2:23
jzonthemtn30-Oct-08 2:23 
GeneralRe: Active Form visible in taskbar Pin
Jon_Boy30-Oct-08 2:49
Jon_Boy30-Oct-08 2:49 
GeneralRe: Active Form visible in taskbar Pin
DCAUB3-Nov-08 7:37
DCAUB3-Nov-08 7:37 
QuestionHai All, Pin
Member 405876930-Oct-08 2:18
Member 405876930-Oct-08 2:18 
AnswerRe: Hai All, Pin
Jon_Boy30-Oct-08 2:47
Jon_Boy30-Oct-08 2:47 
RantRe: Hai All, PinPopular
Paul Conrad30-Oct-08 4:30
professionalPaul Conrad30-Oct-08 4:30 
AnswerRe: Hai All, Pin
pdnet30-Oct-08 18:53
pdnet30-Oct-08 18:53 
AnswerRe: Hai All, Pin
Sathesh Sakthivel31-Oct-08 0:11
Sathesh Sakthivel31-Oct-08 0:11 
Questionwhat is automation? Pin
Gagan.2030-Oct-08 1:40
Gagan.2030-Oct-08 1:40 
AnswerRe: what is automation? Pin
Ashfield30-Oct-08 1:56
Ashfield30-Oct-08 1:56 
AnswerRe: what is automation? Pin
Dave Kreskowiak30-Oct-08 2:14
mveDave Kreskowiak30-Oct-08 2:14 
QuestionDatabase Image Pin
Gagan.2030-Oct-08 1:38
Gagan.2030-Oct-08 1:38 

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.