Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Adapter 1

Status
Not open for further replies.

DanLS

Programmer
Dec 21, 2005
4
US
Does anyone have an example of sending out an email using the PUT function

Thanks!
 
PUT ( "EMAIL" , " -PROTO INET -SERVER smtp.server.name -TO me@myaddress.com -FROM you@youraddress.com -SUB 'Testing' ",Message_TestMsg)
 
And this has almost no error handling. Better to use a RUN map over-ride, and use a valid/fail pair, and have the RUN map's output card set to file internally and transaction set to on failure commit.



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Valid(PUT ( "EMAIL" ," -PR MAPI -TO xxxx@xxxx.com -SUB Your own subject -ATT attach.txt," ,
PACKAGE ( Error_Msg )) ,Fail("error sending email"))

for internet :

Valid(PUT ( "EMAIL" ," -PR INET -TO xxxx@xxxx.com -SUB Your own subject -ATT attach.txt," ,
PACKAGE ( Error_Msg )) ,Fail("error sending email"))

 
That would only fail login.


BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top