Click here to Skip to main content
14,599,518 members
Rate this:
Please Sign up or sign in to vote.
See more:
i have designed an application for sending mails via a gmail account.
i am using the gmail smtp server at port 587 and it works well. at port 25 too it works well. but the email sent like this are being treated as spam by yahoo.
yes it is for sending bulk mails but the same problem persists event if it is sent to just one recipient.
further if i use port 465 the error appears "Connection timed out"

I tried experimenting by using TcpCient to do the same thing. with port 465 the same error exists after successful login and once the request to deliver message is sent. on ports 587 and 25 while using


i get the message "handshake failed due to unexpected packet format"

What to do?
Basically i want that my mails should not be treated as spam.

It would be really more helpful if you could plz give reasons as to why the things happened as mentioned above.

Thanks in advance.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Revert your code back to where it was actually sending the mail and Yahoo was considering it spam.

The problem is not in how you cannot to GMail to send your mail. The problem is in the content of your email.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100