MC, These are tricky tags to use. You would find it much easier to use a version of TeraScript that supports the connection tab on the mail action.
The basic idea of @EMAILSESSION is to call it once with command=open to create a connection, once with command=send to send an email and finally with command=close. Set the sessionid to the same value for each call. The open command needs the server, username, password, and protocol=smtp set, while the close command needs the mode=commit set. The send command takes an email, which is created with the @EMAIL tag. The easiest way to do this is to type out an email, following the proper syntax as defined in RFC 2822 and use the command=import to parse it. Alternatively you can build an email piece by piece by repeated calling command=addfield with fields and their values. Robert ---------------------------------------- From: "MC Tay" <[email protected]> Sent: Tuesday, June 03, 2014 8:05 PM To: [email protected] Subject: RE: TeraScript-Talk: SMTP Authentication Hi Robert, Do you have a taf sample file of using @EMIALSESSION and @EMAIL tags that you can share? I tried using them and it didn't work. Thanks! MC At 02:58 PM 6/3/2014, you wrote: >That's odd... I think that the connection tab should be present for >all versions starting with 6.0.3. > >It would be possible to do this with the @EMIALSESSION tag, but it's >not possible to do as you suggest. Authentication is part of the >communication protocol, not the content of the email being sent. > >Robert > >-----Original Message----- >From: MC Tay [mailto:[email protected]] >Sent: Tuesday, June 03, 2014 5:44 PM >To: [email protected] >Subject: RE: TeraScript-Talk: SMTP Authentication > >Hi Robert, > >I'm using Witango 6.x..... shame on me :) I don't see the Connection >tab on the email action. Is there a way to enter such authentication >within the "Custom header lines" under the Option tab? > >Thanks! > >MC > >At 02:31 PM 6/3/2014, you wrote: > >MC, > > > >In the Mail action, move to the Connection tab and change the Protocol > >to "Authenticated SMTP (password)" and then enter the username and > >password in the fields above. > > > >Robert > > > >-----Original Message----- > >From: MC Tay [mailto:[email protected]] > >Sent: Tuesday, June 03, 2014 5:21 PM > >To: [email protected] > >Subject: TeraScript-Talk: SMTP Authentication > > > >Hi, > > > >Is there a way to setup SMTP Authentication on TeraScript/Witango on > >the mail action? If so, how? > > > >Thanks! > > > >MC > > > > > > > > > >---------------------------------------- > > > >To unsubscribe from this list, please send an email to > >[email protected] with "unsubscribe terascript-talk" in the body. > > > > > > > > > >---------------------------------------- > > > >To unsubscribe from this list, please send an email to > >[email protected] with "unsubscribe terascript-talk" in the body. > > > > >---------------------------------------- > >To unsubscribe from this list, please send an email to >[email protected] with "unsubscribe terascript-talk" in the body. > > > > >---------------------------------------- > >To unsubscribe from this list, please send an email to >[email protected] with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
