Solved

Cant send email to aol account from smtp relay server

Posted on 2013-11-08
2
603 Views
Last Modified: 2014-11-12
I have a small program that sends email using the local smtp relay server.
I can send email to any other domain name (ie..yahoo or gmail or any other account)...but whenever i try to send the email to any valid (aol email) ...i dont see anything in the inbox.

but when i send it through my outlook or any gmail website itself...the message goes to the aol inbox.

any particular reason why it is behaving like this?


thanks
Albin


  string sMessage;
            SmtpClient smtpClient = new SmtpClient();
            MailMessage message = new MailMessage();
            try
            {

                //you can provide invalid from address. but to address Should be valil
                MailAddress fromAddress = new MailAddress("agorkhali@factortrust.com", "Albin");
                //smtpClient.Host = "192.168.100.11";

                smtpClient.Host = "192.168.200.50";
                smtpClient.Port = 25;
                //smtpClient.Port = 587;
                //smtpClient.EnableSsl = true;

                //smtpClient.UseDefaultCredentials = true; 
                //smtpClient.Credentials = nc;
                message.From = fromAddress;
            
                message.To.Add("gorkhalia@aol.com"); //Recipent email 
                message.Subject = "test smtp email";
                message.Body = "This is a test email through smtp client";
                message.IsBodyHtml = true;

                //smtpClient.EnableSsl = true; 
                smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
                smtpClient.Send(message);
                sMessage = "Email sent.";
            }
            catch (Exception ex)
            {
                sMessage = "Coudn't send the message!\n " + ex.Message;
            }

Open in new window

0
Comment
Question by:agorkhali
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 39635206
It could be because you are sending from a private IP address "192.168.200.50" instead of a known public IP address.  That is often taken as a sign of spam.  In addition, if AOL does a reverse lookup on your domain in the From address, it is clear that it's not the IP address associated with the factortrust.com mail servers.
0
 
LVL 23

Expert Comment

by:ormerodrutter
ID: 39638829
You can ask your ISP to add a RDNS (Reverse DNS) record to your domain/IP.

In that way when AOL does a reverse lookup you have a fully valid RDNS record.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
This Micro Tutorial demonstrates in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use comments in Google Docs. You will learn how to create, edit, and delete a comment.

895 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

13 Experts available now in Live!

Get 1:1 Help Now