Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5890 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I need some help with an email send option for a runtime I'm building. I don't need anything fancy, just a script that is as simple as the email function that is built in without having to use an outside program. Is there a way to do this without having to use complicated scripts and pre-made layouts, just basically replace the standard mail function?

Posted

You can make an email script with SMTPit Pro as simple as you need. In a set field script/button step, you could make the calculated result similar to this:


SMTPit_Clear & "¶" & 

SMTPit_SetHost( Email::Host ; Email::Port ) & "¶" &

SMTPit_SetAuthentication( Email::Authentication Type ; Email::Username ; Email::Password ; Email::SSL ) & "¶" & 

SMTPit_SetFrom( Email::From ) & "¶" & 

SMTPit_SetTo( Email::To ) & "¶" & 

SMTPit_SetSubject( Email::Subject ) & "¶" & 

SMTPit_SetBody( Email::Body ) & "¶" & 

SMTPit_Send





This would pass the data from each field to the plug-in to send the email.  Alternatively, you could hard code values or mix and match hard coded values with field values if you wanted.  For instance:





SMTPit_Clear & "¶" & 

SMTPit_SetHost( "mail.domain.com" ; "25" ) & "¶" &

SMTPit_SetAuthentication( "Auto" ; "[email protected]" ; "Password" ) & "¶" & 

SMTPit_SetFrom( Email::From ) & "¶" & 

SMTPit_SetTo( Email::To ) & "¶" & 

SMTPit_SetSubject( Email::Subject ) & "¶" & 

SMTPit_SetBody( Email::Body ) & "¶" &  

SMTPit_Send

This would send an email with the mail server settings hard coded in the script and the email data from the fields.

You can find a simple example database here:

http://examples.cnsplug-ins.com/index.htm?id=HoLCJUuQ

The plug-in can be downloaded from here:

http://www.cnsplug-ins.com/download.htm

This topic is 5890 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.