Hello,
I want to use Emailer.eba, but i don't understand how it work's.
Can you help me?
Thanks
XaGo
Create a project, add emailer.eba to the project.
Create a new source file, save it as emailer_test.eba, add it to the project.
Past this source into it:
$include "emailer.inc"
$main
OPENCONSOLE
CEmailer em
STRING sr:sr = "pres@whitehouse.com,vicepres@whitehouse.com"
em.SetRecipients(sr)
em.SetFrom("yourname@domain.com")
em.SetSubject("Welcome")
em.SetBody("Welcome to the Whitehouse\nPlease keep it clean\nFirst, last and security deposit due today")
if(em.ConnectTo("mail.yourmailserver.com",25))
if(em.SendMail() <> 0)
print em.m_sLastResponse
else
print "Email Sent"
endif
em.Disconnect()
endif
DO:UNTIL INKEY$ <> ""
CLOSECONSOLE
END
Of course change the recipient, from, to and mailserver to something real.
Paul.
Thanks Paul,
My project works now.
have a really good 2009.