I’m trying to set up a basic PHP script that uses SwiftMailer to send an email from a Gmail account to itself. I’ve adapted the code based on SwiftMailer’s documentation, but it doesn’t work as expected. The script stops executing at the send command.
The script seems to hang or fail at the send command, and any code following it is not executed. Any insights on why this might happen or how to fix it?
hey mate, i had similar issues. try using app passwords instead of ur regular gmail password. google’s pretty strict bout security. also, make sure u’ve got the right port n encryption. sometimes 465 with SSL works better than 587 with TLS. good luck!