|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
email sending twiceWith the code below, every email is sent twice. Anybody tell me why?
Dim txtBody as string txtBody = "testing 2.0 email" Dim MailObj As New System.Net.Mail.SmtpClient MailObj.Host = "localhost" MailObj.Send("webmas***@email.net", "don***@email.net", "Online Search Request", txtBody) MailObj = Nothing 'Cleanup Thanks, Janet My first move would be to add something unique in the mail, to make sure
it's really sent using a *single* call... For now my thought would be rather that the event that triggers this code is called twice (autoeventwireup + in code declaration for example) causing the code to be called two times... -- Show quoteHide quotePatrice <Janet> a écrit dans le message de news: %239mIdVf8GHA.4***@TK2MSFTNGP04.phx.gbl... > With the code below, every email is sent twice. Anybody tell me why? > > Dim txtBody as string > txtBody = "testing 2.0 email" > > Dim MailObj As New System.Net.Mail.SmtpClient > MailObj.Host = "localhost" > MailObj.Send("webmas***@email.net", "don***@email.net", "Online Search > Request", txtBody) > MailObj = Nothing 'Cleanup > > Thanks, Janet >
AccessDataSource - how to get access to the retrieved data?
Adding Web Control How can I find the datakey of currently selected row? what' wrong with this? Turning URL Navigation off on a Treeview Help! Menu control not rendering properly on production Gridview: Edit row validation sqldatasource and connection exception handling Trigger an Insert on a FormView control Get GridView index from DataKey |
|||||||||||||||||||||||