how to send mail without smtp server?
-
Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.
-
Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.
-
Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.
ispring wrote: how to send mail without smtp server? Write it on a piece of paper, place it in an envelope, address it, put a stamp on it, and put it in a mailbox ;P Humour aside... If you really can't use MAPI, then you'll need to use raw sockets and connect directly to the SMTP server which holds the recipient's account. You shouldn't need to authenticate yourself to a particular server if you are sending mail to a user whose account is on that server.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
ispring wrote: how to send mail without smtp server? Write it on a piece of paper, place it in an envelope, address it, put a stamp on it, and put it in a mailbox ;P Humour aside... If you really can't use MAPI, then you'll need to use raw sockets and connect directly to the SMTP server which holds the recipient's account. You shouldn't need to authenticate yourself to a particular server if you are sending mail to a user whose account is on that server.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
Ryan, thank you for you reply. I have tryed your approach, that is, connect to the target smtp server directly, but the server require user authentication too. so it doesn't work.:( it seem that the only way to send email without smtp server is implement a smtp server in my app. :)
-
Ryan, thank you for you reply. I have tryed your approach, that is, connect to the target smtp server directly, but the server require user authentication too. so it doesn't work.:( it seem that the only way to send email without smtp server is implement a smtp server in my app. :)
then, send the authentication to the server (requires Username and Password)... be sure to Encode them...
-
Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.
try these RFCs ;) http://www.faqs.org/rfcs/rfc1149.html http://www.faqs.org/rfcs/rfc2549.html
"Laughing at our mistakes can lengthen our own life. Laughing at someone else's can shorten it." - Cullen Hightower
-
Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.
Unless the client is able to successfully send e-mail, there's no way for you to do it programmatically. Something has to be in place that works.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
then, send the authentication to the server (requires Username and Password)... be sure to Encode them...
ok, then, how to send the authentication to the server I cannot find such a command in the SMTP command set. SMTP Commands:
HELO (Hello) MAIL (Mail) RCPT (Recipient) DATA (Data) SEND (Send) SOML (Send or mail) SAML (Send and mail) RSET (Reset) VRFY (Verify) EXPN (Expand) HELP (Help) NOOP (Noop) QUIT (Quit) TURN (Turn)
I know there must be a way there, but I can't find it :confused: