Jmail in spam

M

M. Savas Zorlu

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)
 
A

Adrienne Boswell

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top