Torna al Thread

Dim objCDOSYSCon 'Create the e-mail server object Set objCDOSYSMail = Server.CreateObject("CDO.Message") Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration") 'Set and update fields properties With objCDOSYSCon 'Outgoing SMTP server .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "relay-hosting.secureserver.net" .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 'CDO Port .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Timeout .Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 'Your UserID on the SMTP server' .Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "infx@cyberkings.fr" 'Your password on the SMTP server' .Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "prova" .Fields.Update End With 'Update the CDOSYS Configuration Set objCDOSYSMail.Configuration = objCDOSYSCon 'Set and update email properties With objCDOSYSMail '0=Low, 1=Normal, 2=High .Fields("urn:schemas:httpmail:importance").Value = 1 'Who the e-mail is from .From = "infx@cyberkings.fr" .Subject ="prova" 'Set the e-mail body format (HTMLBody=HTML TextBody=Plain) .HTMLBody = "hello" .Send End With 'Close the server mail object Set objCDOSYSMail = Nothing Set objCDOSYSCon = Nothing
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5