Home All Groups Group Topic Archive Search About
Author
13 Jan 2006 3:49 PM
VJ
I'm trying to send e-mail to two accounts...
and didn't know if this portion of the syntax was correct?


emailMsg.From = "v*@aol.com;" + Session["Email"];

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com

Author
13 Jan 2006 4:12 PM
Karl Seguin [MVP]
You mean To not From, right? and yes, they are semi-colon delimited.  Not
sure if you can send from multiple accounts.  In 2.0 this has changed to a
collection that accepts MailAddress objects.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


Show quote
"VJ" <vnc***@hotmail.com> wrote in message
news:uDFYqjFGGHA.648@TK2MSFTNGP14.phx.gbl...
> I'm trying to send e-mail to two accounts...
> and didn't know if this portion of the syntax was correct?
>
>
> emailMsg.From = "v*@aol.com;" + Session["Email"];
>
> --
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com
Author
13 Jan 2006 4:15 PM
Thom Little
MailMessage mail = new MailMessage( );

mail.To = "t***@tlanet.net" ;

mail.From = "v*@aol.com"  ;

mail.Subject = "Hello" ;

mail.BodyFormat = MailFormat.Html ;

mail.Body = "<html><head></head><body>Hello</body></html>" ;

SmtpMail.Send( mail );


--
--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

Show quote
"VJ" <vnc***@hotmail.com> wrote in message
news:uDFYqjFGGHA.648@TK2MSFTNGP14.phx.gbl...
> I'm trying to send e-mail to two accounts...
> and didn't know if this portion of the syntax was correct?
>
>
> emailMsg.From = "v*@aol.com;" + Session["Email"];
>
> --
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com
Author
13 Jan 2006 4:21 PM
Thom Little
mail.To = "t***@tlanet.net;anot***@tlanet.net" ;
mail.From = "v*@aol.com"  ;
mail.Subject = "Hello" ;
mail.BodyFormat = MailFormat.Html ;
mail.Body = "<html><head></head><body>Hello</body></html>" ;
SmtpMail.Send( mail );

--
--  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
--

Show quote
"Thom Little" <t***@tlanet.net> wrote in message
news:u6XNcyFGGHA.2320@TK2MSFTNGP11.phx.gbl...
> MailMessage mail = new MailMessage( );
>
> mail.To = "t***@tlanet.net" ;
>
> mail.From = "v*@aol.com"  ;
>
> mail.Subject = "Hello" ;
>
> mail.BodyFormat = MailFormat.Html ;
>
> mail.Body = "<html><head></head><body>Hello</body></html>" ;
>
> SmtpMail.Send( mail );
>
>
> --
> --  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
> --
>
> "VJ" <vnc***@hotmail.com> wrote in message
> news:uDFYqjFGGHA.648@TK2MSFTNGP14.phx.gbl...
>> I'm trying to send e-mail to two accounts...
>> and didn't know if this portion of the syntax was correct?
>>
>>
>> emailMsg.From = "v*@aol.com;" + Session["Email"];
>>
>> --
>> Sent via .NET Newsgroups
>> http://www.dotnetnewsgroups.com
>
>

AddThis Social Bookmark Button