Jmail in spam

Discussion in 'ASP General' started by M. Savas Zorlu, Mar 6, 2008.

  1. Hi Everyone,

    I am using Jmail to send mail through my website. In my case it is a
    reservation confirmation. The Problem is that email sent from Jmail is
    going directly to spam folder in Gmail.

    When I look at email headers, everything looks fine. Here is the code.
    Can someone please tell me what I need to do so the email does not go to
    spam?



    on error resume next

    Set jmail = Server.CreateObject("JMail.Message")

    strReferer = request.servervariables("HTTP_REFERER")
    strServer2 = Replace(request.servervariables("SERVER_NAME"),"www.","")
    strClientIP = request.servervariables("REMOTE_ADDR")
    strServerIP = request.servervariables("LOCAL_ADDR")

    JMail.Charset = lang(cVAR,"","MetaLang")

    JMail.MailServerUserName = mailserverusername
    JMail.MailServerPassWord = mailserverpassword

    jmail.AddRecipient request.form("FrmEMAIL"),
    ChkString(request.form("FrmNAME"),"message") & " " &
    ChkString(request.form("FrmLASTNAME"),"message")
    JMail.AddRecipientBCC strsender, sitename
    jmail.From = strsender
    jmail.FromName = sendername
    JMail.ReplyTo = request("from")

    JMail.Priority = 3
    JMail.AddHeader "Originating-IP", strClientIP


    JMail.Silent = True
    JMail.Logging = True


    jmail.Subject = strSubject
    jmail.Body = strBody

    contentId = jmail.AddAttachment("d:\images\logo.png")

    jmail.HTMLBody = someMoreBody
    jmail.appendHTML SomeMoreHtml


    jmail.Body = strbody
    jmail.appendText strtext & vbCrLf & vbCrLf

    jmail.Send(mailservername)
     
    M. Savas Zorlu, Mar 6, 2008
    #1
    1. Advertising

  2. Gazing into my crystal ball I observed "M. Savas Zorlu"
    <> writing in news:OCG77J3fIHA.5752
    @TK2MSFTNGP03.phx.gbl:

    > I am using Jmail to send mail through my website. In my case it is a
    > reservation confirmation. The Problem is that email sent from Jmail is
    > going directly to spam folder in Gmail.
    >
    > When I look at email headers, everything looks fine. Here is the code.
    > Can someone please tell me what I need to do so the email does not go

    to
    > spam?
    >
    >


    <snip coding>

    There are many reasons mail servers think mail received is spam.
    1. IP address of mail server is different from that in the email, eg.
    mail.example.com vs mydesk.example.com where Google is expecting
    mail.example.com

    2. Images, especially those that are the dimensions of a banner.

    3. IP address or IP address range has been reported by a recipient as
    spam in the past

    4. An IP or domain is already on a blacklist - there are several out
    there - bl.spamcop.net is a big one

    5. There is relaying on the server and the server is on a relays
    blacklist, eg. relays.ordb.org

    6. Content - mail servers filter on certain words, eg. Viagra, Watches,
    etc.

    Google for domainkeys, a technology started by Yahoo, which a lot of
    ISPs have implemented.

    Your best bet is to put something on the form that says to add your
    email to the allowed list.
    --
    Adrienne Boswell at Home
    Arbpen Web Site Design Services
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
     
    Adrienne Boswell, Mar 6, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vix
    Replies:
    1
    Views:
    3,490
    Thomas Weidenfeller
    Jan 26, 2005
  2. Rene Pijlman
    Replies:
    22
    Views:
    768
    Fredrik Lundh
    Dec 10, 2003
  3. Sergio Correia
    Replies:
    7
    Views:
    322
    Ben Finney
    Sep 18, 2007
  4. Replies:
    3
    Views:
    564
  5. zax75
    Replies:
    1
    Views:
    1,134
Loading...

Share This Page