[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Email from SQR (Question)




Under Windows, you may try this.  I never had to use
it, though.  It depends on the e-mail system you are
using under Windows.


begin-procedure Process-Main
!**************************************************************************
! Explanations:
!
! d:\mapisend                   : Win 95/98 or Win NT Utility to
reside in the Workstation of person running this SQR
! -p dummypw                    : Dummy password
! -u Last,Name                  : MicroSoft Outlook Profile of
person running this SQR
! -r "receiver@email.com"       : Emailid(s) of person(s)
about to receive the email
! -c "cclist@hotmail.com"       : CC emailid list
! -s "Winmail SQR"              : Subject text
! -m "Attached... Winmail SQR"  : Message body text
! -t d:\msgbody.txt             : Message body text from a file
(Negates the above -t argument)
! -f d:\winmail.xls;d:\winmail.txt : Filenames to be
attached to the email
!
!**************************************************************************


 Call system using 'c:\windir\mapisend -p dummypw -u
"Greg" -r "receiver@email.com" -c "cclist@llll.com" -s
"My email SQR" -m "This is my message body text" -t
c:\temp\temp1.txt -f c:\temp\temp.txt' #status

 Display '#status after sending mail is: ' noline
 Display #status

END-PROCEDURE  Process-Main


Greg.

--- D Patel <dgpinfo@yahoo.com> wrote:
>  
> What if I am working on Windows System?
> 
> D Patel
> --- Greg Rabinovich <odecca25@yahoo.com> wrote:
> > 
> > Here is a way I've been sending attachments from
> > Unix/Oracle:
> > 
> > let $mail_cmd = ' (cat body.txt; uuencode
> attach.txt
> > attach.txt) | mailx -s "My Subject Line"
> > my_email@my_email.com,my_email2@other_email.com'
> > 
> > call SYSTEM using  $mail_cmd #status nowait
> > 
> > body.txt is the body of my e-mail.
> > attach.txt is the attachment file.
> > 
> > Greg.
> > 
> > --- "Blackwell, Lisa" <liblackw@vt.edu> wrote:
> > > Here is a simple piece of code that I use in one
> > of
> > > my programs...program.log is the file that I
> > > email...but it can be anything.  Also this file
> is
> > > not sent as an attachment (it's the body of the
> > > email) and at the moment I can't find the syntax
> > to
> > > do the attachment.  This is run on a Unix
> system.
> > > 
> > > Hope this helps...
> > > 
> > > 
> > > ***********************
> > > Begin-procedure 0800_send_email
> > >     let $email_cmd = 'mail username@vt.edu <
> > > program.log'
> > >     call system using $email_cmd #email_status
> > > 
> > > end-procedure   !0800_send_email
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Fisher, Sandy K [mailto:skfisher@ou.edu]
> > > Sent: Thursday, January 09, 2003 2:52 PM
> > > To: 'sqr-users@sqrug.org'
> > > Subject: [sqr-users] Email from SQR
> > > 
> > > 
> > > Is there a way to generate an email from an sqr
> > > program that would send a
> > > report?  Thanks.
> > > 
> > > _______________________________________________
> > > sqr-users mailing list
> > > sqr-users@sqrug.org
> > > http://www.sqrug.org/mailman/listinfo/sqr-users
> > > 
> > > _______________________________________________
> > > sqr-users mailing list
> > > sqr-users@sqrug.org
> > > http://www.sqrug.org/mailman/listinfo/sqr-users
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > http://mailplus.yahoo.com
> > 
> > _______________________________________________
> > sqr-users mailing list
> > sqr-users@sqrug.org
> > http://www.sqrug.org/mailman/listinfo/sqr-users
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users