Hello Hilaire. Zodiac? I used zodiac to send email from contact forms in web sites made with Seaside, and works fine. Although sometimes they go to spam :/ See http://stackoverflow.com/questions/12293670/zodiac-mail-sending-in-pharo-smalltalk
But, instead to use ZdcSecureSMTPClient class>>sendUsingGMailAccount:password:to:message: , I created a slightly modified version of that method, due to the smtp server I use the "from" field in mail message is different to "user" in smtp client. E.g. for "from" [email protected] the smtp "user" look like user1.mailserver. This is the method: ************************* sendServer: server port: port user: user password: password from: from to: to subject: subject body: body | smtpClient mailMessage | mailMessage := MailMessage empty. mailMessage setField: 'from' toString: from. mailMessage setField: 'to' toString: to. mailMessage setField: 'subject' toString: subject. mailMessage body: (MIMEDocument contentType: 'text/plain' content: body). (smtpClient := ZdcSecureSMTPClient new) user: user; password: password. smtpClient openOnHost: (NetNameResolver addressForName: server) port: port. ^ smtpClient mailFrom: from to: { to } text: mailMessage text; quit; close; yourself ******************************** Regards 2012/9/15 Hilaire Fernandes <[email protected]> > Dear all, > > A DrGeo user asked me if it will be possible to share DrGeo sketch by > Email. I guess he means, sending an email with an attached DrGeo file. > > My question is: > - can we send email with Pharo? > - if yes, can we attach file to such email? > > Any pointer, if any, appreciated > > Thanks > > Hilaire > > PS: if any of you have any idea how to share a file between different > DrGeo instances running in different host, I will greatly appreciate > your ideas/advices. > > >
