Prev: Mathematica 7 on netbooks
Next: inconsistent synatx for FillingStyle and PlotStyle? or How to make vertical lines in ListPlot have diffenent colors?
From: Todd Allen on 8 Sep 2009 05:54 Hi Folks, I teach at a small community college in PA where our email is managed through Novell Groupwise. I'm interested in using Mathematica to programmatically send student-customized emails using Mathematica 7's new SendMail functionality. As you might imagine I have not been succesful to date. When I start my Novel Groupwise software at work, I read an information window that states: "Connecting to Post Office Agent at: 172.19.177.4:1677". I am assuming (which might be my problem) that this is the proper server address and port number I need to provide to SendMail when I attempt to email students. My first attempt at code looks like this: SendMail["From"->"tdallen(a)hacc.edu","To"-> "genesplicer28(a)yahoo.com", "Subject"-> "Sending Email from Mathematica", "Body" -> "Testing", "Server"->"172.19.177.4","PortNumber"->1677,"UserName"->"myUsername","Password"->"myPassword"] Upon executing this, Mathematica spins away for about 10 seconds, and then returns the error: "SendMail::conopen: A connection cannot be established to the server "172.19.177.4". Would you have any thoughts how I can troubleshoot what I am doing wrong?? Have any of you used SendMail to communicate through Novell Gropuwise?? Admittedly, I may have several issues going on here. I appreciate any advice you might have! Best regards, Todd
From: Albert Retey on 9 Sep 2009 04:34 Hi, > I teach at a small community college in PA where our email is managed through > Novell Groupwise. I'm interested in using Mathematica to programmatically > send student-customized emails using Mathematica 7's new SendMail functionality. > As you might imagine I have not been succesful to date. > > When I start my Novel Groupwise software at work, I read an information window that states: > "Connecting to Post Office Agent at: 172.19.177.4:1677". I have never used Novel Groupwise, but I think port 1677 is not something well known and a quick search gave me some hints that this is probably used for a proprietary protocol that only the groupwise sofware components understand. On the other hand I think there is a pretty good chance that the groupwise server accepts email via snmtp (port 25) from the local area network, and probably even without a username and password, so that would be my first try (actually I think you are best off to not use the port option, since that is probably only necessary for non standard setups). Maybe you also want to try the various encryption-protocols that SendMail knows (then you'll need a username and passwort usually). Usually each of the encryption protocols uses a different port, and I think that SendMail will try the correct default without a Port-Option, so that would be what you probably want to try first. Another chance is that your box is set up so that it accepts email on port 25 itself, then you could send to ip-address 127.0.0.1 and port 25. If all that doesn't work, you'll need to talk to your administrator to find out if and how it is possible to send mail with something else than the groupwise client software. hth, albert
From: Sjoerd C. de Vries on 9 Sep 2009 04:36
Hi Todd, Port 1677 is the default port for the Post Office Agent. However, I believe Mathematica uses SMTP for sending mail, which uses the default port of 25. Novell Groupwise does support SMTP but it might have to be switched on, as it has several methods of sending mail, inclusing IMAP. Cheers -- Sjoerd On Sep 8, 11:54 am, Todd Allen <genesplice...(a)yahoo.com> wrote: > Hi Folks, > > I teach at a small community college in PA where our email is mana= ged through Novell Groupwise. I'm interested in using Mathematica to pro= grammatically send student-customized emails using Mathematica 7's new Send= Mail functionality. As you might imagine I have not been succesful to da= te. > > When I start my Novel Groupwise software at work, I read an inform= ation window that states: "Connecting to Post Office Agent at: 172.19.177.4= :1677". > > I am assuming (which might be my problem) that this is the proper = server address and port number I need to provide to SendMail when I attempt= to email students. > > My first attempt at code looks like this: > > SendMail["From"->"tdal...(a)hacc.edu","To"-> "genesplice...(a)yahoo.com", "Su= bject"-> "Sending Email from Mathematica", "Body" -> "Testing", "Server"->"= 172.19.177.4","PortNumber"->1677,"UserName"->"myUsername","Password"->"myPa= ssword"] > > Upon executing this, Mathematica spins away for about 10 seconds, = and then returns the error: "SendMail::conopen: A connection cannot be esta= blished to the server "172.19.177.4". > > Would you have any thoughts how I can troubleshoot what I am doing= wrong?? Have any of you used SendMail to communicate through Novell Gro= puwise?? Admittedly, I may have several issues going on here. I apprecia= te any advice you might have! > > Best regards, > Todd |