View previous topic :: View next topic |
Author |
Message |
lenovo Beginner
Joined: 27 Nov 2008 Posts: 31 Topics: 9 Location: India
|
Posted: Mon Feb 14, 2011 10:07 am Post subject: SAS EMAIL |
|
|
Hi,
I am using the following code to send email from mainframe via SAS.
Code: |
FILENAME MYMAIL EMAIL 'ABC@XYZ.COM'
SUBJECT="HI";
DATA _NULL_;
FILE MYMAIL;
PUT "!EM_CC!( 'ABC@XYZ.COM')" ;
PUT "!EM_FROM!(ABC@XYZ.COM)";
RUN;
|
The Email is generated fine with the above code but when I am receiving the mail it is displaying some thing like
pppp; on behalf of ABC@XYZ.COM
Is there any way to remove the on behalf of thing.
i.e. the FROM header in the mail contains only ABC@XYZ.COM
Any help would be appreciated.
Regards,
Lenovo |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
lenovo Beginner
Joined: 27 Nov 2008 Posts: 31 Topics: 9 Location: India
|
Posted: Mon Feb 14, 2011 12:45 pm Post subject: |
|
|
Hi Kolusu,
Thanks for the quick response.
There are two options in manual for the FROM part
1) PUT "!EM_FROM! "john@hisplace.org" [this is the one i was using it earlier]
and
2)
user="john@hisplace.org";
put '!EM_FROM!' user;
But with both the options the FROM part contain ON BEHALF OF.
Any idea fow this can be removed.
Rgds,
Lenovo |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Feb 14, 2011 6:20 pm Post subject: |
|
|
lenovo,
If your SAS session logged directly onto an email server using the email name |
|
Back to top |
|
 |
lenovo Beginner
Joined: 27 Nov 2008 Posts: 31 Topics: 9 Location: India
|
Posted: Tue Feb 15, 2011 5:28 am Post subject: |
|
|
Kolusu,
How can I check, if a SAS session is logged directly to the email server or with a email server with different email user name?
And one more thing, I am currently using the following JCL to execute the SAS email
//ddname EXEC SAS
//SYSIN DD DISP=SHR,DSN=aaaaa
//*
Where aaaaa is the name of the dataset that contains the code that I have posted in the initial post.
I also checked the prod proc and system proc (upto my knowledge) but I couldn't find out the location of the proc.
Lenovo |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Feb 15, 2011 12:58 pm Post subject: |
|
|
lenovo wrote: | Kolusu,
How can I check, if a SAS session is logged directly to the email server or with a email server with different email user name? |
Are using your email address and password to send the mail or you using a different email address than yours?
Kolusu |
|
Back to top |
|
 |
rkarthik22 Beginner
Joined: 27 Sep 2008 Posts: 24 Topics: 9
|
Posted: Wed Feb 16, 2011 4:56 am Post subject: |
|
|
Hi Lenovo,
Can you Please try this and let me know its working fine.
Code: |
FILENAME OUTBOX EMAIL FROM=("email@yahoo.com")
TO=("karthik@gmail.com"
"mukesh@yahoo.com")
SUBJECT ="world cup 2011";
DATA _NULL_;
FILE OUTBOX;
|
|
|
Back to top |
|
 |
rkarthik22 Beginner
Joined: 27 Sep 2008 Posts: 24 Topics: 9
|
Posted: Wed Feb 16, 2011 5:19 am Post subject: |
|
|
What a coincidence.....
Lenovo, Kolusu and my joining date is 27!!!! |
|
Back to top |
|
 |
lenovo Beginner
Joined: 27 Nov 2008 Posts: 31 Topics: 9 Location: India
|
Posted: Wed Feb 16, 2011 9:44 am Post subject: |
|
|
Hi,
@Kolusu: I am not specifying any password with the mail id. And I tried both ways i.e. by specifying my own email id and with different email id. For both it still contains the "on behalf of" before the email id I specify in the FROM header.
@rkarthik22: No its not working for me. It still contains "on behalf of" before the email id I specify in the FROM header.
Rgds,
Lenovo |
|
Back to top |
|
 |
bluewawa Beginner
Joined: 09 Jun 2011 Posts: 1 Topics: 0
|
Posted: Thu Jun 09, 2011 10:03 am Post subject: |
|
|
Hi Lenovo,
Have you got your anwser? I had this issue as well and looking for the solution.
Thanks. |
|
Back to top |
|
 |
lenovo Beginner
Joined: 27 Nov 2008 Posts: 31 Topics: 9 Location: India
|
Posted: Tue Jul 12, 2011 8:17 am Post subject: |
|
|
Hi bluewawa,
No, I havn't got the solution on this one.
Thanks!!! |
|
Back to top |
|
 |
|
|