Go to run and type ‘matlab’, or just open the matlab application by double clicking it. Copy the M-file and change the wroking directory to that directory.
now type this in your command window :
>>send_mail_message(‘roll_no’,’subject’,'my message is hello world’);
I have customized this code to send mail from and to nittmail accounts only. When i tried to send to other service providers it was showing error.
I got this code from central file exchange library of matlab.
Remember
1. You can send and receive mails using any name and password. (they do not really matter). Infact no need to login to send those messages. (this is for nittmail only)
2. Be cautious and dont use it in any way that may end up in trouble.
3. This is very useful for people like those who have to send mail to everybody inside the campus.(“especially while sending the assignment questions
“).
Here is the link for sending common messages with attachment.
Here is the link for sending common messages wothout attachment.
I have tested the above codes in OCTA lan only. Dont know whether they would work in internet but quiet confident that they will work.
I got another for updating Twitter status message. Here is the link to mathworks.
For sending mail to gmail account here is the code.
June 28, 2008 at 12:45 am
gr8 work dude
lagta hai kuch dino mein matlab master ho jayega tu
continue with ur efforts to master matlab
June 28, 2008 at 1:58 am
Sahi !!!!
Abhi lagta hai matlab ke doubts tumse puchhne padenge
Good work yaar… Keep it up !!!