Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Email - How to get emails to inbox instead of junk mail folder 2

Status
Not open for further replies.

JoJoH

Programmer
Jan 29, 2003
356
US
Hi,

I'm using ASP to automatically send out emails to my customers, but the thing is, most of my customers are using Hotmail, AOL, and Yahoo and the email just get filtered into the junk/bulk mail folder because it was sent by a script...what can I do so that the email will be delievered to their Inbox instead of the junk mail folder?

Thanks in advance for your help!

JoJoH

 
be careful what you put in your Subject Line. Most services look for keywords there.

_______
I love small animals, especially with a good brown gravy....
 
Thanks for your reply!

ChrisHirst: How do I make sure it routes through my mail server rather then just the IP? And if it really is routing through just the IP what can I do so that it will route through the mail server?

pkailas: Is there by any chance a list of words that I shouldn't use available?

Thanks again!
 
JoJoH -- a small list would perhaps be:

viagra
p3nis
p0rn

etc

 
there is a Spam word list here, not very upto date though.
But AOLand Hotmail use reverse lookup mainly.

the routing will depend on the component you are using, but most allow specifying the mail server and username/password combination to send through. If you are using CDONTS, change to use CDOSYS which does allow for authentication and routing.


Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
Nightclub counting systems

So long, and thanks for all the fish.
 
Hi Chris, thanks for your reply, I've edited my script from CDONTS to CDO mail but it is still delivering to the junk mail folder am I doing something wrong? Please advise, thanks!

<%
'Start Email
'CDO instantiation
Dim objCDO
Set objCDO = Server.CreateObject("CDO.Message")
%>
<%
objCDO.To = ""& varRecipient &""
objCDO.From = "email@mytestdomain.com"

Dim txtSubject
txtSubject = "Test Email Message"

objCDO.Subject = "Subject line"
objCDO.TextBody = txtSubject
objCDO.Send

'Cleanup
Set objCDO = Nothing
'Done Emailing

%>

JoJoH

 
if you're using ASPEmail from Persits, try using the EmailAgent. You configure that in the control panel. Pretty straight forward. Then in your ASP code, you'd elminate the Mail.Mailhost code and change Mail.Send to Mail.SendToQueue



_______
I love small animals, especially with a good brown gravy....
 
Hi pkailas, thank you for your reply, actually I am not using ASPEmail,I'm just using a simple ASP script to do all my mail sending, and am currently looking for ways to modify the script so that the emails sent will not end up in my customer's junk mail folder. Please advise,thanks!
 
to set you mailserver set it up like this

Code:
<%
'Start Email
'CDO instantiation
Dim objCDO
Set objCDO = Server.CreateObject("CDO.Message")

objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = mail.yourserver.com
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")[/URL] = 1
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusername")[/URL] = usernamehere
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendpassword")[/URL] = passwordhere
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpusessl")[/URL] = False
objCDO.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")[/URL] = 60
objCDO.Configuration.Fields.Update



objCDO.To = ""& varRecipient &""
objCDO.From = "email@mytestdomain.com"

Dim txtSubject
txtSubject = "Test Email Message"

objCDO.Subject = "Subject line"
objCDO.TextBody = txtSubject
objCDO.Send

'Cleanup
Set objCDO = Nothing
'Done Emailing

%>

just replace mail.yourserver.com, usernamehere, passwordhere

also make sure the mailserver you use is not on a black list
 
Hi Steven290, thank you for your reply, I've set it up exactly and made sure my mailserver is not on a black list but the thing is the mail it sent out still goes to the junk mail folder, please advise, thank you once again for your help!

JoJoH

 
change the from email to something different, and see what happens
 
BINGO, thank you so much Steve, I changed the from email to something different then it delievers right to the inbox! I wonder why one work and the other doesn't since both emails are from the same domain...Weird! But I am so glad that my emails are no longer going to the junk mail folder, thank you so very much for your help Steve!

JoJoH

 
Glad it worked out, the reason probably is that when you did the email without your mailserver it went into junk, then every other email after that - the mail program checked and found that the email was in the junk folder so it considered it as junk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top