Sending emails using VB.Net ?
-
hey guys if any one of u know about a code that sends emails on net using NB.net please send it to me on my email .. i had acode the sends this emails .. but theres aproblem with imlementing this code .. an error says "Can't Access CDO.Message Object" .. i need acode for sending emails on net so .. dont be late for replying plz . im looking too for any resource for learning socket prograing if any one have abook that talk about this topic send it too me on my email or just let me know where to find it thanx alot my email . modern_night@hotmail.com 2 MB modern_knight@gawab.com 2 GB if the message was large you can send it to the second one.. لا اله الا الله محمد رسول الله
-
hey guys if any one of u know about a code that sends emails on net using NB.net please send it to me on my email .. i had acode the sends this emails .. but theres aproblem with imlementing this code .. an error says "Can't Access CDO.Message Object" .. i need acode for sending emails on net so .. dont be late for replying plz . im looking too for any resource for learning socket prograing if any one have abook that talk about this topic send it too me on my email or just let me know where to find it thanx alot my email . modern_night@hotmail.com 2 MB modern_knight@gawab.com 2 GB if the message was large you can send it to the second one.. لا اله الا الله محمد رسول الله
check system.web.dll is referenced. Imports System.Data.OleDb Imports System.Web.Mail Private oSMTP As System.Web.Mail.SmtpMail ' Variable which will send the mail Private Mailmsg As New System.Web.Mail.MailMessage 'variable to hold the message 'if you don't have an SMTP server there is one in IIS and also search for Freee SMTP Server, it's called that and it is exactly what it says on the tin. Private Sub SendMail(ByVal Email As String, ByVal Body As String) oSMTP.SmtpServer = "AN SMTP SERVER - eg. IPADDRESS" Mailmsg.BodyFormat = Web.Mail.MailFormat.Html Mailmsg.To = Email Mailmsg.From = "\" & "DisplayName" & "\ <" & "EMAIL ADDRESS - FROM" & ">" Mailmsg.Subject = "Test" & " " & "Subject" & " " & Today.Date & " " Mailmsg.Body = Body oSMTP.Send(Mailmsg) End Sub hope that helps "If i was king cigarettes would be free."
-
check system.web.dll is referenced. Imports System.Data.OleDb Imports System.Web.Mail Private oSMTP As System.Web.Mail.SmtpMail ' Variable which will send the mail Private Mailmsg As New System.Web.Mail.MailMessage 'variable to hold the message 'if you don't have an SMTP server there is one in IIS and also search for Freee SMTP Server, it's called that and it is exactly what it says on the tin. Private Sub SendMail(ByVal Email As String, ByVal Body As String) oSMTP.SmtpServer = "AN SMTP SERVER - eg. IPADDRESS" Mailmsg.BodyFormat = Web.Mail.MailFormat.Html Mailmsg.To = Email Mailmsg.From = "\" & "DisplayName" & "\ <" & "EMAIL ADDRESS - FROM" & ">" Mailmsg.Subject = "Test" & " " & "Subject" & " " & Today.Date & " " Mailmsg.Body = Body oSMTP.Send(Mailmsg) End Sub hope that helps "If i was king cigarettes would be free."
i will try it .. thanx man لا اله الا الله محمد رسول الله
-
check system.web.dll is referenced. Imports System.Data.OleDb Imports System.Web.Mail Private oSMTP As System.Web.Mail.SmtpMail ' Variable which will send the mail Private Mailmsg As New System.Web.Mail.MailMessage 'variable to hold the message 'if you don't have an SMTP server there is one in IIS and also search for Freee SMTP Server, it's called that and it is exactly what it says on the tin. Private Sub SendMail(ByVal Email As String, ByVal Body As String) oSMTP.SmtpServer = "AN SMTP SERVER - eg. IPADDRESS" Mailmsg.BodyFormat = Web.Mail.MailFormat.Html Mailmsg.To = Email Mailmsg.From = "\" & "DisplayName" & "\ <" & "EMAIL ADDRESS - FROM" & ">" Mailmsg.Subject = "Test" & " " & "Subject" & " " & Today.Date & " " Mailmsg.Body = Body oSMTP.Send(Mailmsg) End Sub hope that helps "If i was king cigarettes would be free."
sorry but im still having the same problem .. error saying "Can't Access CDO.Message object" i tried it on another pc ... but the same error has occured .. i hope you tell me an example of what to type in the following fields .. smtp server ? email ? to ? i typed .. mail.yalla.com modern_night@yalla.com modern_night@hotmail.com but it didn't work .. i tried 127.0.0.1 as the smtp server .. but nothing happend .. i hope that the solution for this problem .. isn't to leave programing .. waiting for your reply لا اله الا الله محمد رسول الله