Reputation: 303
| message sender recipients |
message := 'From: Me <[email protected]>
To: You <[email protected]>
Subject: Simple Mail from pharo
This is a test mail'.
sender := '[email protected]'.
recipients := #('[email protected]').
SMTPClient
deliverMailFrom: sender
to: recipients
text: message
usingServer: 'smtp.gmail.com'
This code gives me a Telnetprotocol error.
I tired ZdcSecureSMTPClient class it works fine.
So My question here is can i send email without using password as ZdcSecureSMTPClient uses password
Upvotes: 2
Views: 248
Reputation: 22893
You can't send through google's servers without logging in. Actually, I don't think you can send in plain-text, just over SSL.
Upvotes: 1