fructuoso
asked on
Join File to email
Hi,
I send a post yesterday in order to pop up the user mail if an error occur in my application.
here is the code to compute that :
void SendErrorMail()
{
LPCTSTR pszCmd = _T("mailto:....&subject=.. ...&body=. .....");
ShellExecute(NULL,_T("open "),pszCmd, NULL,NULL, SW_SHOW);
}
I would like to join a file to the mail. Is there an easy way to do that ?
Especially, can We automaticly make a screenshot and join it to the mail ?
Thank you
I send a post yesterday in order to pop up the user mail if an error occur in my application.
here is the code to compute that :
void SendErrorMail()
{
LPCTSTR pszCmd = _T("mailto:....&subject=..
ShellExecute(NULL,_T("open
}
I would like to join a file to the mail. Is there an easy way to do that ?
Especially, can We automaticly make a screenshot and join it to the mail ?
Thank you
Or
&attachments=""C:\Screensh ot.jpg""
Try &Attach and &attachments
one of them should work
&attachments=""C:\Screensh
Try &Attach and &attachments
one of them should work
you forge the mailto with "attachment":
mailto:blabla@bla.com?subj ect=mySubj ect&body=M yBody&atta chment="c: \myfile.tx t"
mailto:blabla@bla.com?subj
ASKER
Hi thanks for your reply
I was trying the parameter Attach and i have problem for the synthax for the file path.
I tried
......&Attach="\"C:\\Scree nshot.jpg\ "") --> doesn't work
I just tried yours which didn't work too.
I keep on looking but if you have any idea that would be great
Thank you
I was trying the parameter Attach and i have problem for the synthax for the file path.
I tried
......&Attach="\"C:\\Scree
I just tried yours which didn't work too.
I keep on looking but if you have any idea that would be great
Thank you
ASKER
Ok, I know where the file will be becuse i will create it and put it where i want. I just need to know what is the syntax for the file path to use th attachment parameter. Can you help me to do that ?
Thank you for your reply
Thank you for your reply
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry about my missunderstanding.
However I found an other solution.
Someone compute a class in order to do that. Here is the link for programmer who will have the same problem :
http://www.codeproject.com/KB/IP/SendTo.aspx?fid=257922&fr=1&df=90&mpp=25&noise=3&sort=Position&view=Quick#xx0xx
Anyway, thank you for your help
LPCTSTR pszCmd = _T("mailto:....&subject=..
Attach=YOURFILE
like:
LPCTSTR pszCmd = _T("mailto:....&subject=..
For taking screen shot you can try this link:
http://www.codeproject.com/KB/mcpp/ijwscrcap.aspx