MC,
So far so good, that looks fine. Now try changing your @EMAIL to: <@EMAIL command=import name=emailVar message=<@INCLUDE \path\to\email.txt>> Then change the send to: <@EMAILSESSION command=send name=emailVar> Robert From: MC Tay [mailto:sm...@media88.com] Sent: Sunday, June 08, 2014 7:05 PM To: TeraScript-Talk@terascript.com Subject: RE: TeraScript-Talk: SMTP Authentication Robert, This is what I tried to do but not sure if the execution sequence is correct or not. Also, I have the email formatted in an external text file, how do I import it with the <@EMAIL> tag? <@EMAILSESSION command="OPEN" SESSIONID="123" PROTOCOL="SMTP" PORT="587" SERVER="mail.mymailserver.com" USERNAME="i...@mydomain.com <mailto:i...@mydomain.com> " PASSWORD="abcdef"> <@EMAIL COMMAND="IMPORT"> <@EMAILSESSION command="SEND" SESSIONID="123"> <@EMAILSESSION command="CLOSE" SESSIONID="123" MODE="COMMIT"> Thanks! MC At 07:49 PM 6/3/2014, you wrote: 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" <sm...@media88.com <mailto:sm...@media88.com> > Sent: Tuesday, June 03, 2014 8:05 PM To: TeraScript-Talk@terascript.com <mailto:TeraScript-Talk@terascript.com> 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:sm...@media88.com <mailto:sm...@media88.com> ] >Sent: Tuesday, June 03, 2014 5:44 PM >To: TeraScript-Talk@terascript.com <mailto:TeraScript-Talk@terascript.com> >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:sm...@media88.com <mailto:sm...@media88.com> ] > >Sent: Tuesday, June 03, 2014 5:21 PM > >To: TeraScript-Talk@terascript.com <mailto:TeraScript-Talk@terascript.com> > >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 > >lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe > >terascript-talk" in the body. > > > > > > > > > >---------------------------------------- > > > >To unsubscribe from this list, please send an email to > >lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe > >terascript-talk" in the body. > > > > >---------------------------------------- > >To unsubscribe from this list, please send an email to >lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe >terascript-talk" in the body. > > > > >---------------------------------------- > >To unsubscribe from this list, please send an email to >lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe >terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to lists...@terascript.com <mailto:lists...@terascript.com> with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.