Re: .NET email
From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 09/23/04
- Next message: Ken Tucker [MVP]: "Re: .NET email"
- Previous message: Ken Tucker [MVP]: "Re: Zip and copy file"
- In reply to: S Shulman: "Re: .NET email"
- Next in thread: S Shulman: "Re: .NET email"
- Reply: S Shulman: "Re: .NET email"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 23 Sep 2004 12:24:32 +0200
Shmuel
You can try this sample bellow if it fits your problem
I hope this helps?
Cor
\\\by Fergus Cooney & small correction Cor
'A reference to System.Web may be necessary
'in the Project for this Import to work.
Imports System.Web.HttpUtility
Public Sub StartDefaultMail (sTo As String, _
Optional sSubject As String = "", _
Optional sMessage As String = "")
Try
sTo = UrlEncode (sTo)
sSubject = sSubject
sMessage = sMessage
Process.Start ("mailto:" & sTo & "?subject=" _
& sSubject & "&body=" & sMessage)
Catch e As Exception
MsgBox ("Couldn't start default email application" _
& vbCrLf & e.Message)
'or
Throw New Exception ("Couldn't start default email app", e)
End Try
End Sub
///
"S Shulman"
> My question is really quite simple. Is there a way of sending email using
> .NET email functionality without having SMTP server installed on th
> client's
> machine I think this is quite simple.
>
>
>
> "***" <***@Foreign.com> wrote in message
> news:%2395NCtUoEHA.536@TK2MSFTNGP11.phx.gbl...
>> Isn't that what spammers are looking for?
>>
>> And preferably a server in a land without any kind of legislation about
> the
>> internet ...
>>
>> "S Shulman" <smshulman@hotmail.com> wrote in message
>> news:%23d2zNbPoEHA.2380@TK2MSFTNGP14.phx.gbl...
>> > Hi All
>> >
>> > I don't have smtp server and my email is hotmail and I am looking for
> smtp
>> > server so I will be able to send emails using .NET.
>> > Is there any server out there that I can use?
>> >
>> > Thank you in advance,
>> > Shmuel
>> >
>> >
>>
>>
>
>
- Next message: Ken Tucker [MVP]: "Re: .NET email"
- Previous message: Ken Tucker [MVP]: "Re: Zip and copy file"
- In reply to: S Shulman: "Re: .NET email"
- Next in thread: S Shulman: "Re: .NET email"
- Reply: S Shulman: "Re: .NET email"
- Messages sorted by: [ date ] [ thread ]