Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    email in ASP.NET

    how do i send email to my yahoo account in ASP.NET? All the tutorials i found on the net sends the mail to their local webserver, but for email accounts like yahoo, you need password and login. How do you incorporate that into the System.Web.Mail.SmtpServer object?

    Thanks

  • #2
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    To Clarify

    Lemme clarify my question. I want to send an email FROM my yahoo account to another email address, so how do i do that with asp.net??

    Thanks!!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm really not sure what you're trying to do - yahoo already sends emails just fine, using whatever they use. What are you trying to do or circumvent?

    If you just want them to reply to your yahoo account, then use that as the "Reply-To" address when you set up your message.
    Last edited by whammy; 08-15-2002 at 06:21 PM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #4
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    To Clarify

    I'm writing some code using ASP.NET and VB.NET that automates sending emails to people. For example, someone can enter their email address to my website, and my code will automatically email them something from my yahoo account. So i'm not doing this manually, but creating a code to automate it, thus i need to use the system.web.mail.smtp object. It's easy to create a mail object, but if i want the mail message to be sent as my yahoo mail account, i'd need to send my login/password information to yahoo's server in order to access my account information, thus sending a mail. So basically, I'm sending a mail using my yahoo account, but not from yahoo's website, but my own. I hope that clarifies it a little more, and not cause more confusion!

    Thanks!!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not sure what component you're using, but with CDONTS you can set the Reply-To address as whatever you want - therefore your YAHOO account, even.

    There should be no need whatsoever to send anything to Yahoo!.



    Check out the link I posted, it might help.
    Last edited by whammy; 08-20-2002 at 10:05 PM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    262
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Email

    I agree with Whammy.

    Code might look like this

    Set objMail = CreateObject("CDONTS.Newmail")
    objMail.From = "your.emailaddresshere@domain.region"
    objMail.To = request.form("fieldnamefromtheformwherethemailaddressisentered"
    Therapy is expensive, popping bubble wrap is cheap, you choose.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •