Sending SMTP Email From ASP.Net 1.1 application after Email Migration?

Discussion in 'ASP.NET / ASP.NET Core' started by Aristotle, Jun 12, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. How do I send an email from ASP.net application after the email migration?

    Is there a need to authenticate, if sending from same domain?

    Also please provide a complete source code example!




    Dim mmCustomer As New System.Web.Mail.MailMessage


    mmCustomer.From = """CompanyName"" ([email protected])"


    mmCustomer.To = "[email protected]"


    mmCustomer.Cc = ""


    mmCustomer.Bcc = ""


    mmCustomer.BodyFormat = System.Web.Mail.MailFormat.Text


    mmCustomer.Subject = "ONLINE QUOTE: Company Name"


    mmCustomer.Body = "Thank you for requesting a Quote from Company Name!"





    ' DO I NEED TO DO THE FOLLOWING?


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", cdoBasic)


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "[email protected]")


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password")


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", cdoSendUsingPort)


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "mail.fencecapital.com")


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 10)


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 25)


    mmCustomer.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", False)


    ' FINALLY SEND


    System.Web.Mail.SmtpMail.Send(mmCustomer)
     
  2. I am receiving an error: Could not access 'CDO.Message' object.
     
  3. Thank you.

    It worked!
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page