|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
sending emailI'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"]; 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 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 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 ); 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 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 ); 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 > > |
|||||||||||||||||||||||