Email Authentication Problem

Discussion in 'ASP.NET / ASP.NET Core' started by uniquesjc, Jan 19, 2006.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Can anyone help?

    I am using the Persits.MailSender object to send emails, and it works great. The only problem is that some mail servers are rejecting emails with the message:

    Authentication is required to send mail as <[email protected]>.

    Is there an authentication property associated with the mail object? If not, how do I get around this? Here's my code:

    Mailer = Server.CreateObject("Persits.MailSender")
    Mailer.Host = "localhost"
    Mailer.From = "[email protected]"
    Mailer.AddAddress("[email protected]")
    ..
    ..
    ..
    Mailer.Send()

    SteveC
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    some mail server checks for the validity of the from address (to prevent spam), try use a valid address. it should work fine then.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Bruce


    The address I'm using is valid - it's the postmaster mailbox on your server/my domain - when I send a test email to my own address, it works fine, but if I send it to an address to bigpond.com, their mail server rejects it. Hotmail accounts put it in the Junk Email folder.


    Don't I need an address from my current web domain in order for it to work? When I first used Persits.MailSender, I got errors if I used other email addresses from other domains for the Mailer.From property.


    SteveC
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    You can set the from address to anything that's valid as long as you use localhost as the email server.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
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