That's great Peter, thanks again.



----- Original Message -----
From: Peter Connell <Peter.Connell@xxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Cc:
Sent: Thursday, December 20, 2012 5:50 PM
Subject: RE: Looking for email package recommendations on the i

Nathan,
Oh dear, I forgot to mention 2 setup steps -

1.  U need to create an INI file containing the address of your SMTP server.

CRTSRCPF FILE(QGPL/INI) MBR(DB2WWW)   
Then add the following line into the DB2WWW member (my SMTP server is at mail1.corp.int)
DTW_SMTP_SERVER mail1.corp.int

2. Then set your current directory to the location of the ini file before calling QHTTPSVR/DB2WWW
CD DIR('/qsys.lib/qgpl.lib')

Then u r set to go.

Here's a sample script named that should send a response back to this forum. I'll run it from the command line after sending this reply.
%define HTML = { <html><body><table>                                             
  <tr><td>Hi there Nathan</td></tr>                                             
  <tr><td>This is an HTML formatted email sent from DB2WWW</td></tr>             
  </table></body></html>                                                         
%}                                                                               
%html(send) {                                                                   
@dtw_assign(sndaddr,"peter.connell@xxxxxxxxxx")                                 
@dtw_assign(rcvaddr,"midrange-l@xxxxxxxxxxxx")                                   
@dtw_assign(rcvaddr,"peter.connell@xxxxxxxxxx")                                 
@dtw_assign(subject,"RE: Looking for email package recommendations on the i")   
@dtw_sendmail( sndaddr, rcvaddr, HTML, subject,"","","","","","","html")         
%}   

Peter                                                                           

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.