I have two gmail accounts. And I wrote a PHP code that sends an email via gmail's stmp service.

Both accounts have same settings

Status: POP is enabled
Status: IMAP is enabled

My PHP code sends an email via gmail's smtp very well using one account. But it doesn't work with the other account. What kind of settings I need to do more? Please help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.