Hi,
instead of anothe function u can do it in one single line as below,
Dim str As String
str = Format(CDate((F ormatDateTime(S ystem.DateTime. Now, DateFormat.Gene ralDate))), "yyyy-MM-dd")
And i tried ur code and its working fine and its not going into catch section.
even though if you are getting the error try to debug and see where its failing.....
User Profile
Collapse
-
Hi Plater,
I am Sending the mail as html only if the option IsHtml is ticked in my application. Can you plz tell me how to use (Or set ) the message.Body.Fo rmat to "Plain/Text". Actually the code is as follows, here i am replacing each "\r\n" i.e. "vbCrLf" with 2 vbCrLf's, then i was getting the mail in correct format.
the code is as follows..
Public Sub Send(ByVal strServerName As String, ByVal...Leave a comment:
-
Formatting is lost while sending mail in .Net 2.0
Hi Everybody,
I am sending mail using the new class in .Net 2.0.
Here while sending internal mails it is giving me problem.
Carriage return, Line feed and Spaces are lost while sending mails.
I am using msg.BodyEncodin g = System.Text.UTF 8Encoding.UTF8 to encode the body.
But same code and same mail is going fine , when sent to external mails (Like gmail, yahoo, etc.)
Please can anyone help me in... -
hi dip_developer
My problem got solved....
Actually that machine dint had default gateway... and when i configured the gateway its working now...
Thanks......Leave a comment:
-
SO without IIS i wont be able to send mail's isnt it?.
il try to install IIs and check my application.
Then all clients using this windows application must have IIS?
Thanks...Leave a comment:
-
Hi dip_developer,
I asked my system Admin, and he said that smtp server is configured in server itself and he has given my the same Ip address of the smtp server so no need to configure the server..
Can you tell me what else i have to check?
this problem is really making me crazy.
thanks....Leave a comment:
-
Do we need IIS for sending mails from an Vb.Net applications
Hi to every one,
I am having a problem while sending mail from my application. iI want to send mail from my Vb.Net applications. and it is working fine in my system, but the problem is that when i try to run tha same application from another system where there is no iis installed, its giving me error mail not sent, and when i change the DeliveryMethod to network , giving me tha same problem...
So can anyone help me out with this problem..... -
How to set "Allow Service To intract with desktop" in codding
Hi all,
I want to start a windows application onStart of a .Net service...
i am able to start this process, but it wont display until i set the option Allow service to interace with desktop manually...
Pls help me in setting this option in codding.
Thank u all in advance,
Deepak
No activity results to display
Show More
Leave a comment: