|
.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 quoteHide 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 quoteHide 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 quoteHide 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 > >
Other interesting topics
Deriving from MembershipUser and ASPNET Config Tool
ASP.net and thread safety MSWord Common functionality across pages, what's the best solution? Asp.net 2.0 caching and images DataGrid, Edit and the Enter Key ASP.NET Embedded Resources Dot Net or Javascript problem??? Very Strange Problem! (Derived Controls) - Help! Architectural assistance needed! |
|||||||||||||||||||||||