Sending mailhttp://forums.asp.net/t/388875.aspx/1?Sending+mailSun, 09 Nov 2003 02:33:02 -0500388875388875http://forums.asp.net/p/388875/388875.aspx/1?Sending+mailSending mail Im trying to send email through an ASP.NET page but im getting errors like: 'The &quot;SendUsing&quot; configuration value is invalid.' and 'Could not access 'CDO.Message' object.' I use the following code to try and send the email: <pre class="prettyprint">Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here SmtpMail.Send( _ &quot;dave_hemming@hotmail.com&quot;, _ &quot;dave_hemming@hotmail.com&quot;, _ &quot;Testing Mail&quot;, _ &quot;Just sending a test message&quot;) End Sub</pre> Im guessing my SMTP email server settings are not set correctly. In IIS i have the 'Default SMTP Virtual Server' icon and it is running as far as i can tell. I also have one Domain which is my default. In properties for this i have the following: 'C:\Inetpub\mailroot\Drop' So i dont really know where the problem is. thanks. 2003-11-09T00:16:17-05:00388888http://forums.asp.net/p/388875/388888.aspx/1?Re+Sending+mailRe: Sending mail first, you should explicitly specify the mail server second, you may need to configure the access properties for the SMTP service - have a look under the IIS section after you read the below article for hints : http://rtfm.atrax.co.uk/infinitemonkeys/articles/asp.net/996.asp 2003-11-09T01:11:59-05:00388895http://forums.asp.net/p/388875/388895.aspx/1?Re+Sending+mailRe: Sending mail Hi, Take a look @ <a href="http://www.4guysfromrolla.com/webtech/080801-1.shtml"> Sending Email from an ASP.NET Web Page</a> HTH 2003-11-09T01:27:34-05:00388904http://forums.asp.net/p/388875/388904.aspx/1?Re+Sending+mailRe: Sending mail I tried doing everything they said but still get the error: The &quot;SendUsing&quot; configuration value is invalid. Where o where am i going wrong here??? 2003-11-09T01:49:47-05:00388917http://forums.asp.net/p/388875/388917.aspx/1?Re+Sending+mailRe: Sending mail Well i sort of got it going. I needed to set the SmtpMail.SmtpServer to &quot;localhost&quot; and then it worked. I can send emails to my main ISP account thats fine. But if i try to send to my hotmail account it seems to send cause my antivirus pops up and scans the outgoing email. However it doesnt show up in my hotmail inbox, or junkmail, or anywhere else. Is this some anti spam thing that hotmail has going? very confusing heres the code that im using to send email to hotmail: <pre class="prettyprint">SmtpMail.SmtpServer = &quot;localhost&quot; SmtpMail.Send( _ &quot;MyMainEmail@ozemail.com.au&quot;, _ &quot;MyOtherEmail@hotmail.com&quot;, _ &quot;Testing Mail&quot;, _ &quot;Just sending a test message&quot;)</pre> 2003-11-09T02:31:00-05:00