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.

Who is Participating?
sg405222Connect With a Mentor Commented:
gmail does not use port 25 for smtp use port 465
ddiproAuthor Commented:
i have done it using 465 port but it is giving same error
It also need SSL authentication when sending
ddiproAuthor Commented:
how to provide it with SSL authentication
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.