Solved

ASP / CDO issues

Posted on 2007-04-03
15
237 Views
Last Modified: 2010-05-18
I am having issues when using CDO.Message object  within ASP 3.0/Classic to send emails enternally.  They get routed to my users junk folders, which obviously is rarely checked.  Is there a way to resolve the email address similar to Outlook?  Is there a better way of doing this entirely?

Below is a sample
sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")            

 With cdoConfig.Fields
    .Item(sch & "sendusing") = 2
    .Item(sch & "smtpserver") = "192.168.0.1"
    .item(sch & "smtpserverport") = 25
    .item(sch & "smtpauthenticate") = 0
    .update
End With      
            
Set objmailitem = CreateObject("CDO.Message")
Set .Configuration = cdoConfig
            
objmailitem.From = request("EMail")
objmailitem.TO = "relit@ds.com;" & request("EMail")
objmailitem.Subject = "IT HELP REQUEST - " & sAssigned
objmailitem.textbody = "Name:  " & request("txtID")& vbcrlf & _
                             "Location:  " & request("Location") & vbcrlf & _
                               "Department:  " & request("Department") & vbcrlf & _
               "Email:  " & strEmail & vbcrlf & _                                       "Phone/Ext:  " & request("Phone") & vbcrlf & vbcrlf & _
               "Problem:  " & request("Problem") & vbcrlf & vbcrlf & _
               "WO Number for user reference:  " & sAssigned

objmailitem.Send
            
Set cdoMessage = Nothing 
Set cdoConfig = Nothing 
0
Comment
Question by:DSaldanaRELTD
  • 6
  • 5
  • 4
15 Comments
 
LVL 25

Expert Comment

by:kevp75
Comment Utility
the only way you will be able to do this is to have your users mark the email as Not Junk.   There is content in your email that the filter is seeing, and marking it as junk.

there is nothing wrong with your code
0
 
LVL 16

Expert Comment

by:golfDoctor
Comment Utility
You would need a qualified domain to send from, otherwise you're just using relay email in SMTP, which is junk most of the time.  Any chance you could route it through an Exchange Server, or set up the SMTP server with legitimate DNS?
0
 

Author Comment

by:DSaldanaRELTD
Comment Utility
I'm not sure what you mean...

The IP that it's directed to is an MS Exchange server, if that helps.  How would I go about sending from a qualified domain
0
 
LVL 25

Expert Comment

by:kevp75
Comment Utility
Your Comment  


Rank: Sage
kevp75:
the only way you will be able to do this is to have your users mark the email as Not Junk.   There is content in your email that the filter is seeing, and marking it as junk.

there is nothing wrong with your code
0
 
LVL 16

Expert Comment

by:golfDoctor
Comment Utility
Instead of an internal IP you would use a qualified domain name, available in the DMZ.

 .Item(sch & "smtpserver") = "www.mydomain.com"
0
 

Author Comment

by:DSaldanaRELTD
Comment Utility
I actually resolved this by reading some tech articles on Exchange 2003.

I took the following actions.
1.)  Start Exchange System Manager
2.)  Navigate to the following area:  Admin Groups -> First Admin Group -> Servers -> ServerName -> Protocols -> SMTP ->
3.)  Right-click on Default SMTP Virtual Server.
4.)  Got to the 'Access' tab.
5.)  Click Authentication.
6.)  Make sure Anonymous access is checked.  Then below that, make sure Resolve anonymous email is checked also.

Ok out of the screens.  Wait 5 minutes to verify settings are in place.  Proceeded with test, no code changed from above.  And it worked.
0
 
LVL 16

Expert Comment

by:golfDoctor
Comment Utility
That's basically the same thing as authenticating your server to a domain.  You made it so the relay SMTP email comes from legimate source and is verified.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:DSaldanaRELTD
Comment Utility
Please close this question out as a resolution was found outside of the suggestions above
0
 
LVL 16

Expert Comment

by:golfDoctor
Comment Utility
post the answer.
0
 

Author Comment

by:DSaldanaRELTD
Comment Utility
I did
0
 
LVL 16

Accepted Solution

by:
golfDoctor earned 500 total points
Comment Utility
then post to community support and ask them to close this.  or award points and close yourself.
0
 
LVL 25

Expert Comment

by:kevp75
Comment Utility
nice.....give somebody points who did not answer your question?

Good to see how you work DSaldanaRELTD....you just proved to every other expert here that ignorance IS bliss, and to not answer any more of your questions.....

Good going Einstein
0
 

Author Comment

by:DSaldanaRELTD
Comment Utility
He did come closest to answering my question...made my thought process check the server.  Rather than informing over 100 people that they'd have to do this manually.
0
 
LVL 25

Expert Comment

by:kevp75
Comment Utility
according to you, you answered your own question...no-one else

so I say again

"Good to see how you work DSaldanaRELTD....you just proved to every other expert here that ignorance IS bliss, and to not answer any more of your questions....."
0
 

Author Comment

by:DSaldanaRELTD
Comment Utility
again I say to you so you understand this time....

He prompted my thought process thus deserving some credit.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now