"Joe Ercolino" <joe_ercolino@hotmail.com> wrote in message <f8ctm0$7qd$1@fred.mathworks.com>...
> Hi
>
> I am trying to use the sendmail command with GMail. It is possible? What are the right default parameters configuration?
>
> Thanks
There is a slightly more convoluted way of being able to do this: Ofcourse this is for a windows system:
If you use Outlook, here is something that i used to do sometime back:
----------------
function[]=sendingmail(mailid,attch1,subj,body)
outlook = actxserver('Outlook.Application');
email = outlook.CreateItem('olMailitem');
% Repeating for each address
email.Recipients.Add(mailid);
email.Subject = subj;
email.Body=body;
email.Attachments.Add(attch1);
%email.Attachments.Add(attch2);
% For read receipt
email.ReadReceiptRequested = false;
In this:
mailid - string containing the recipient mail id:
attch1=pathto attachment file.
subj=string
body - string.
Now since gmail allows pop access, configure your outlook to use gmail as the default outgoing smtp server (look at their online help) and i think you should be able to send the email.
"Joe Ercolino" <joe_ercolino@hotmail.com> wrote in message <f8ctm0$7qd$1@fred.mathworks.com>...
> Hi
>
> I am trying to use the sendmail command with GMail. It is possible? What are the right default parameters configuration?
>
> Thanks
There is a slightly more convoluted way of being able to do this: Ofcourse this is for a windows system:
If you use Outlook, here is something that i used to do sometime back:
----------------
function[]=sendingmail(mailid,attch1,subj,body)
outlook = actxserver('Outlook.Application');
email = outlook.CreateItem('olMailitem');
% Repeating for each address
email.Recipients.Add(mailid);
email.Subject = subj;
email.Body=body;
email.Attachments.Add(attch1);
%email.Attachments.Add(attch2);
% For read receipt
email.ReadReceiptRequested = false;
In this:
mailid - string containing the recipient mail id:
attch1=pathto attachment file.
subj=string
body - string.
Now since gmail allows pop access, configure your outlook to use gmail as the default outgoing smtp server (look at their online help) and i think you should be able to send the email.
"Joe Ercolino" <joe_ercolino@hotmail.com> wrote in message <f8ctm0$7qd$1@fred.mathworks.com>...
> Hi
>
> I am trying to use the sendmail command with GMail. It is possible? What are the right default parameters configuration?
>
> Thanks
There is a slightly more convoluted way of being able to do this: Ofcourse this is for a windows system:
If you use Outlook, here is something that i used to do sometime back:
----------------
function[]=sendingmail(mailid,attch1,subj,body)
outlook = actxserver('Outlook.Application');
email = outlook.CreateItem('olMailitem');
% Repeating for each address
email.Recipients.Add(mailid);
email.Subject = subj;
email.Body=body;
email.Attachments.Add(attch1);
%email.Attachments.Add(attch2);
% For read receipt
email.ReadReceiptRequested = false;
In this:
mailid - string containing the recipient mail id:
attch1=pathto attachment file.
subj=string
body - string.
Now since gmail allows pop access, configure your outlook to use gmail as the default outgoing smtp server (look at their online help) and i think you should be able to send the email.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.