Posted on 2006-11-23
Last Modified: 2013-11-20
I am trying to send mail using SMTP .My code is working fine when i m sending it to my smtp server but when i try to send mail to yahoo or gmail smtp sever its gives an error
554:SMTP server not ready for data
554:no valid recipient client host rejected.
And when i m trying to send mail using yahoo or gmail its giving an error
530:SMTP Server Error
530:5.7.0 Must issue a STARTTLS Command
I m using Class CSocket
Can anybody please help in doing so.

Question by:ddipro
  • 2
  • 2

Accepted Solution

sg405222 earned 500 total points
ID: 18002000
gmail does not use port 25 for smtp use port 465

Author Comment

ID: 18002038
i have done it using 465 port but it is giving same error

Expert Comment

ID: 18002051
It also need SSL authentication when sending

Author Comment

ID: 18002077
how to provide it with SSL authentication

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

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 180
unable to delete all specified values regedit 38 278
FizzBuzz challenge 9 76
MaxSpan challenge 9 80
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

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