NavinKaushik
asked on
How to send an e-mail with attachment without mapi and cdonts
Hi,
I have to send a mail with attachment from my application. I think i can not use mapi since it's not neccessary whether user is using outlook or not. If I use cdonts , in that case iis server should be installed on that machine.
In summary if there is a net on pc what is the best way to send an email with attachment without any assumption.
I have to send a mail with attachment from my application. I think i can not use mapi since it's not neccessary whether user is using outlook or not. If I use cdonts , in that case iis server should be installed on that machine.
In summary if there is a net on pc what is the best way to send an email with attachment without any assumption.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nonubik Could you tell me what is the api to get the smtp address. And if I get the smtp address then will i have to use cdonts ????
Jaime , is it neccessay that outlook should be configured by the user to use mapi and it will open as well ????
Jaime , is it neccessay that outlook should be configured by the user to use mapi and it will open as well ????
You need a configured account in outlook (or outlook express) in order to send and receive mail with Simple MAPI.
ASKER
hmmm, If I send mails using that account, will it show all mails sent by application in sent items ????
Second thing , you did't tell me , is it neccessay that when my application will send email at that particular time should out working ???
Second thing , you did't tell me , is it neccessay that when my application will send email at that particular time should out working ???
>If I send mails using that account, will it show all mails sent by application in sent items ????
Yes
> is it neccessay that when my application will send email at that particular time should out working ???
calling Simple MAPI functions correctly will lauch Outlook automatically.
Yes
> is it neccessay that when my application will send email at that particular time should out working ???
calling Simple MAPI functions correctly will lauch Outlook automatically.
ASKER
Hi ,
I have got a solution on codeguru forum. I would like to let you know Since in this case there is no dependency on outook, that's what I was looking for. I don't want to take any assumption like outlook will be configured etc.
Attachments need to be sent by encoding the message in MIME format.
Additionally you might take a look at the following
"http://codeproject.com/internet/csmtpconn.asp".
It wraps the SMTP protocol including the mentioned MIME attachments...
__________________
Ciao, Andreas
I have got a solution on codeguru forum. I would like to let you know Since in this case there is no dependency on outook, that's what I was looking for. I don't want to take any assumption like outlook will be configured etc.
Attachments need to be sent by encoding the message in MIME format.
Additionally you might take a look at the following
"http://codeproject.com/internet/csmtpconn.asp".
It wraps the SMTP protocol including the mentioned MIME attachments...
__________________
Ciao, Andreas
Find out the SMTP server address, and send raw MIME data