If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

If you change the wsprintf line to use sprintf instead, it works fine.

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

this doesnt send mail to abv address...plz tell me some details abt last arguement ..is it a .txt file?if yes,shud i give full path of that file on my computer?or i what else shud i enter there?
plzzzzzz reply.

Originally posted by sushb4u
this doesnt send mail to abv address...plz tell me some details abt last arguement ..is it a .txt file?if yes,shud i give full path of that file on my computer?or i what else shud i enter there?
plzzzzzz reply.

Well...it sends the mail correctly, however the body is somehow empty...I need to test this further I guess...sorry about that...

all abv programs need name of smtp server...but i have only email address of receipent...so does anybosy know function or api to get smtp server name from given email address??or else can i use any standerd smtp server for any email id?if yes...plz tell me which smtp server i can use.

Normally you would send email through your smtp server for your ISP/email account unless you are trying to hide your email address/identity/IP address. Many ISP's are not accepting email directly from a person to their smtp server unless they have a email account on that server. Many ISP are checking origin of email and if it is not from a registered email server(IP address) it won't relay email or accept the mail. With 80% of email today as spam ISP's are cracking down on people using their resources for someone elses gain.

So just send the email through your ISP's smtp server and all will work just fine.

HTH

Jim
ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

"The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

"Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

ya i dont want to hide senders email address or identity...but user can enter any email id in from and to fields....so how can i get smtp server for that account's ISP??

If this is the case then you would have the user enter their smtp server address. As with most ISP's today in order to send email through their smtp server you must have a email account and log on with a user id and password this keeps people from using false return email address and using their smtp servers to relay SPAM.

Jim
ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

"The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

"Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

If this is the case then you would have the user enter their smtp server address.

user's stmp server address means which address?? i mean suppose i m not asking for from id (it is fixed) and i m asking for only "To" address...and user entered "abc@yahoo.com" and suppose my from id is "me@mycomp.com" then i have to use which smtp server? server for input email address or server for mycomp's address?

"To" address...and user entered "abc@yahoo.com" and suppose my from id is "me@mycomp.com" then i have to use which smtp server? server for input email address or server for mycomp's address?

You would use the smtp server for "me@mycomp.com", you use the smtp server of the senders address.

Jim
ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII

"The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.

"Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.