sending mail with asp.net
-
hi everybody, i tried to send email message from an asp.net application using following code
imporrts system.web.mail
---------->dim objmail as new mailmessage() objmail.from=txtfrom.text objmail.sub=txtsub.text objmail.to=txtto.text objmail.body=txtbody.text dim objsm as smtpmail objsm.send(objmail)
this is the code which i was used. in some machines, this works very nicely; but in some machines i got some error; "Send Using configuration is Invalid" and in some other machines i got the message like this---> "Could not access CDO Message Object" can anyone say how to solve this problem; with thanks and love Sebastian -
hi everybody, i tried to send email message from an asp.net application using following code
imporrts system.web.mail
---------->dim objmail as new mailmessage() objmail.from=txtfrom.text objmail.sub=txtsub.text objmail.to=txtto.text objmail.body=txtbody.text dim objsm as smtpmail objsm.send(objmail)
this is the code which i was used. in some machines, this works very nicely; but in some machines i got some error; "Send Using configuration is Invalid" and in some other machines i got the message like this---> "Could not access CDO Message Object" can anyone say how to solve this problem; with thanks and love Sebastian -
If the server where you are running this doesn't have SMTP activated, you have to specify what SMTP server to use.
--- b { font-weight: normal; }
thankz dear i will chech it out bye
-
hi everybody, i tried to send email message from an asp.net application using following code
imporrts system.web.mail
---------->dim objmail as new mailmessage() objmail.from=txtfrom.text objmail.sub=txtsub.text objmail.to=txtto.text objmail.body=txtbody.text dim objsm as smtpmail objsm.send(objmail)
this is the code which i was used. in some machines, this works very nicely; but in some machines i got some error; "Send Using configuration is Invalid" and in some other machines i got the message like this---> "Could not access CDO Message Object" can anyone say how to solve this problem; with thanks and love Sebastian -
thank you very much; now it works very nicely tahanks once again
-
If the server where you are running this doesn't have SMTP activated, you have to specify what SMTP server to use.
--- b { font-weight: normal; }
i have tested this ; it worked very nicely; thanks