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

RE: [sqr-users] Unable to -CC & -BCC when using psmail



Hi Richard,

I even changed the syntax to look like this (without
carriage returns):

'psmail -TO"abc@xyz.com" -CC"lmn@xyz.com"
-SUBJECT"Test" -BODY"Test mail." '

abc@xyz.com receives the email but lmn@xyz.com does
not!

Is there a sequence for the command line arguments?
Ex: first -TO, then -SUBJECT, then -BODY, and then
-CC?

Akshara.

--- "Knapp, Richard" <KnappR@umsystem.edu> wrote:

> 
> Have you tried assembling your string without
> carriage returns?
> 
> Richard Knapp
> AITS - Reporting
> University of Missouri
> Locust Street Building
> Columbia, MO 65201
> 573-882-8856
> knappr@umsystem.edu
> 
> 
> -----Original Message-----
> From:
> sqr-users-bounces+knappr=umsystem.edu@sqrug.org
>
[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org]
> On Behalf Of
> akshara naik
> Sent: Tuesday, May 23, 2006 6:40 PM
> To: sqr-users@sqrug.org
> Subject: [sqr-users] Unable to -CC & -BCC when using
> psmail
> 
> 
> Hi Everyone,
> 
> I am having problems with -CC and -BCC when using
> psmail. All the recipients in the -TO receive the
> email but not the ones in -CC and -BCC. 
> 
> SQR for PeopleSoft/8.45.11/Sun/SunOS/Oracle/Dec 01
> 2004
> 
> Here is my code:
> ============================
> let $config_var = '-TO"abc@yahoo.com;xyz@yahoo.com" 
> -CC"lmn@gmail.com" -FROM"peoplesoftadmin@xyz.com" 
> -SUBJECT"'||$Subject||'" 
> -BODY"'||$Body1||$Body2||'" '    
>         
>     write 1 from $config_var
>     close 1
>     close 2
>     
>     let $system_command_fileconv = 'psuniconv ASCII
> '
> || $Ascii_Filepath || ' UCS-2 ' || $Unicode_Filepath
>     
>     Call system using $system_command_fileconv
> #call_status_fileconv
>     
>     if #call_status_fileconv <> 0 
>       show 'Unicode conversion error' 
>       show ' ' 
>       show #call_status_fileconv
>       show $system_command_fileconv
>       show ' ' 
>       let $SendEmail = 'N'
>     end-if    
>     
>     if $SendEmail <> 'N'
> 
>       let $system_command_sendemail = 'psmail 
> -INPUT"'||$Unicode_Filepath||'" '
>     
>       Call system using $system_command_sendemail
> #call_status_sendemail 
>     
>       if #call_status_sendemail <> 0 
>        show 'Error Sending Mail' 
>        show ' ' 
>        show #call_status_sendemail
>        show $system_command_sendemail
>        show ' ' 
>       end-if 
>     
>     end-if
> 
> ============================
> 
> 
> I am not sure what I am doing wrong. Please help!
> 
> Regards,
> Akshara.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> _______________________________________________
> 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!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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