Thank you Robert! It works! This test was done through my in-house mail server. At least the commands and syntax all working.
But, if I changed the smtp SERVER to that provided by Network Solutions (e.g. smtp.mydomainname.com), it failed with "Failed to send the email message (emailVar)". I tested their smtp server on Outlook and Eudora and they worked. It may seem like the smtp at Network Solutions require SMTP Authentication even the username and password. Is there a way to set that with the <@EMAILSESSION>? I also noticed that on the Terascribe v7 that the <protocol> is SMTPPSWD. I tried using that on my <@EMAILSESSION ....... PROTOCOL=SMTPPSWD .........> but it didn't work. Thanks! MC At 01:09 PM 6/9/2014, you wrote: >MC, > >To answer your questions: > >The TYPE= attribute just has to do with internal storage, leave it default. > >@EMAIL is not a block tag, you canât do <@EMAIL> </@EMAIL> >You must supply a body after the header. The >delimiter between these two are to CRLF characters, which must be present. > >Therefore, using your example below, I found that this worked successfully: > ><@EMAIL import name=eml message='Reply-To:[email protected] >Resent-bcc: >Resent-cc: >Resent-Date:Mon, 09 Jun 2014 11:36:00 -0700 >Resent-From:[email protected] >Resent-Message-ID:123 >Resent-Reply-To:[email protected] >Resent-Sender:[email protected] >Resent-To:[email protected] >Return-Path:[email protected] >Message-ID:123 >Sender:[email protected] >From:[email protected] >To:[email protected] >bcc: >cc: >Date:Mon, 09 Jun 2014 11:36:00 -0700 >In-Reply-To:[email protected] >Keywords: >Received: >References: >Subject:This is the test > >This is the body of the email'> > >Everything between the single quotes (and >nothing more) should be in your text file. > >Robert > >From: MC Tay [mailto:[email protected]] >Sent: Monday, June 09, 2014 2:53 PM >To: [email protected] >Subject: RE: TeraScript-Talk: SMTP Authentication > >Robert, > >Thanks for the instructions. > >When I ran my taf, it seems to connect to the >mail server but failed at <@EMAIL> tag. Not sure >if my email.txt file (below. RFC2822 format) is correct or not. > >Does the fields has to be in particular order? > >Do I need to place it in a table if I use the default TYPE=ARRAY? > >If I use TYPE=XML, can I use <email> ....... </email> for the entire envelope? > >Reply-To:[email protected] >Resent-bcc: >Resent-cc: >Resent-Date:Mon, 09 Jun 2014 11:36:00 -0700 >Resent-From:[email protected] >Resent-Message-ID:123 >Resent-Reply-To:[email protected] >Resent-Sender:[email protected] >Resent-To:[email protected] >Return-Path:[email protected] >Message-ID:123 >Sender:[email protected] >From:[email protected] >To:[email protected] >bcc: >cc: >Date:Mon, 09 Jun 2014 11:36:00 -0700 >In-Reply-To:[email protected] >Keywords: >Received: >References: >Subject:This is the test >Comments:This is the body of the email > >I may be shooting in the dark. Hope you can help. > >Thanks! > >MC > >At 06:27 AM 6/9/2014, you wrote: > >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:[email protected]] >Sent: Sunday, June 08, 2014 7:05 PM >To: <mailto:[email protected]>[email protected] >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="<mailto:[email protected]>[email protected] " 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" <<mailto:[email protected]>[email protected]> >Sent: Tuesday, June 03, 2014 8:05 PM >To: <mailto:[email protected]>[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]>mailto:[email protected]] > >Sent: Tuesday, June 03, 2014 5:44 PM > >To: <mailto:[email protected]>[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]>mailto:[email protected]] > > >Sent: Tuesday, June 03, 2014 5:21 PM > > >To: <mailto:[email protected]>[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 > > ><mailto:[email protected]>listserv@tera > script.com with "unsubscribe terascript-talk" in the body. > > > > > > > > > > > > > > >---------------------------------------- > > > > > >To unsubscribe from this list, please send an email to > > ><mailto:[email protected]>listserv@tera > script.com with "unsubscribe terascript-talk" in the body. > > > > > > > > > >---------------------------------------- > > > >To unsubscribe from this list, please send an email to > ><mailto:[email protected]> > [email protected] with "unsubscribe terascript-talk" in the body. > > > > > > > > > >---------------------------------------- > > > >To unsubscribe from this list, please send an email to > ><mailto:[email protected]> > [email protected] with "unsubscribe terascript-talk" in the body. > > > >---------------------------------------- >To unsubscribe from this list, please send an >email to ><mailto:[email protected]>[email protected] >with "unsubscribe terascript-talk" in the body. > >---------- >To unsubscribe from this list, please send an >email to ><mailto:[email protected]>[email protected] >with "unsubscribe terascript-talk" in the body. > > >---------- >To unsubscribe from this list, please send an >email to ><mailto:[email protected]>[email protected] >with "unsubscribe terascript-talk" in the body. > >---------- >To unsubscribe from this list, please send an >email to ><mailto:[email protected]>[email protected] >with "unsubscribe terascript-talk" in the body. > > > >---------- >To unsubscribe from this list, please send an >email to ><mailto:[email protected]>[email protected] >with "unsubscribe terascript-talk" in the body. > > >---------- >To unsubscribe from this list, please send an >email to ><mailto:[email protected]>[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.
