October 31, 2025, 11:52:45 AM

News:

IWBasic runs in Windows 11!


Emailer questiion

Started by XaGo, January 19, 2009, 06:22:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

XaGo

Hello,

I want to use Emailer.eba, but i don't understand how it work's.

Can you help me?

Thanks

XaGo

Ionic Wind Support Team

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.
Ionic Wind Support Team

XaGo

Thanks Paul,

My project works now.

have a really good 2009.