Trouble sending sendmail.asp with godaddy

Discussion in 'C#' started by sbhkma, May 18, 2009.

  1. #1
    I cannot use the fromemail, as godaddy will block it from too many domains these days. I am a novice at asp, working with php and unix/linux. I need to be able to include the email address is the message body but unsure how to go about it. This was a request I received from someone who inherited the site.
    What i have:

    objMail.From="validemail@email.com"
    objMail.To="validemail@email.com"
    objMail.Subject=request.form("Subject")
    objMail.TextBody=request.form("messagetext")

    How do I add fromemail into the message body?

    help would sure be appreciated.
     
    sbhkma, May 18, 2009 IP
  2. simpleXam

    simpleXam Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    My suggestion is to just use a free gmail account for all of your contact forms. You won't have as many problems.
     
    simpleXam, May 18, 2009 IP
  3. sbhkma

    sbhkma Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The problem is that the SENDER's email address is being rejected by godaddy. So I made the "from" an email address of the domain's so it won't be rejected. But I need to get that email address included as part of the form response and don't know how to go about it. Should be simple, but as I said, asp is not something I am yet familiar with.
     
    sbhkma, May 19, 2009 IP
  4. alexpr07

    alexpr07 Active Member

    Messages:
    284
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    73
    #4
    Try this:

    objMail.TextBody="From: " & request.form("fromemail") & chr(13) & chr(10) & request.form("messagetext")
     
    alexpr07, May 20, 2009 IP