|
AFAIK, Yahoo doesn't expose any SMTP servers and they don't supply an API to do this either. It looks like your idea isn't going to work, unless someone else knows something we don't.
|
|
|
|
|
Perhaps instead of yahoo, create and use a GMail acct. There are numerous tutorials on how you can tie into Google Mail.
Cheers!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
It does have SMTP -- this is an example if you have att's dsl through yahoo.
note #1: the from email and the credentials must be the same
note #2: if you login into your email, you can get the other smtp names for the type of email address extention you have (@yahoo.com / @att.com / @ameritech.com / etc)
Dim oMsg As New MailMessage
With oMsg
.From = New MailAddress("XXXXXXX@ameritech.net")
.To.Add("THEONEIWANTTOSENTO@HOTMAIL.COM"
.Priority = MailPriority.Normal
.Subject = "Test"
.Body = "test"
End With
Try
Dim oSMTP As New SmtpClient("smtp.att.yahoo.com")
oSMTP.Credentials = New NetworkCredential("XXXXXXX@ameritech.net", "ABCDEFG")
oSMTP.Send(oMsg)
oSMTP = Nothing
Catch ex As Exception
MessageBox.Show("Could not send the status email message." & ControlChars.CrLf & ex.ToString, _
"Emailing", MessageBoxButtons.OK, MessageBoxIcon.Stop)
End Try
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
...scribbles down notes.....
Nice info.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Dim mailSender As New System.Net.Mail.SmtpClient()
mailSender.Host = "YOUR HOSTNAME"
mailSender.Port = "YOUR SERVER PORT NO"
If strAuthentication = True Then
mailSender.Credentials = New Net.NetworkCredential(EMAILID, PASSWORD)
End If
If StrSSL = True Then
mailSender.EnableSsl = True
Else
mailSender.EnableSsl = False
End If
mailSender.DeliveryMethod = SmtpDeliveryMethod.Network
strTo = "RECEIPTENT EMAIL ID"
Dim toAddress As New MailAddress(strTo)
Dim msg As New MailMessage(fromAddress, toAddress)
msg.IsBodyHtml = False
strMessage = "MESSAGE BODY"
msg.Body = strMessage.Trim
msg.BodyEncoding = Encoding.Default
msg.Subject = "MESSAGE SUBJECT"
mailSender.Send(msg)
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Hi,
your Internet provider typically also offers a mail service, which is
adequate to send out mail messages, even if you choose not to use it
to receive anything.
Then a simple piece of code will do the job, based on MailMessage
and SmtpClient classes. Here is a C# snippet for you (the very same thing
can be done in VB.NET):
MailMessage msg=new MailMessage();
msg.From = ...;
msg.To.Add(...);
msg.CC.Add(...);
msg.Subject=...;
msg.Body=...;
SmtpClient client = new SmtpClient(server);
client.Send(msg);
And the surprise is you can assign any valid mail address to the From
property, so you could well make it look as if you used your Yahoo account to
send the message, although you did not.
BTW: server is the mail-out server of your provider, a typical example
in Belgium would be "relay.skynet.be" or "relay.belgacom.be"
|
|
|
|
|
how to convert string to binary and vice versa
thanks
|
|
|
|
|
This type of question should not be posted. You can find your answer in HELP.
Here is what came up when I serched for "convert string to number"
VB Example:
Dim value As String
Dim returnValue As Integer
returnValue = Convert.ToInt32(value)
Next time, take some initiative to find the answer for yourself.
Also read the following article before posting again.
[^]
|
|
|
|
|
I wrote an article here[^] that simplifies this. The code is C# but easily converted. If you just want the dll, extract BinOctHex.dll from the zip in the Download Sample link.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Hello all,
I am looking for something similar to the scrolling grid in the week view on google calender.
I looked at
http://www.codeproject.com/aspnet/ScrollingGrid.asp
and it looks pretty good but I need the column widths to change size along with the browser, and have a fixed header that does the same. I have looked around but I'm not really sure on what areas to look at. Any help would be greatly appreciated.
Aaran
|
|
|
|
|
Hello,
I have maybe a stupid question.
I have a .net 2008 application form , when clicking on a button on the mainform i opens a second form on top of it.
i set the mainform disabled so it is not possible to touch the main form wich is bigger than teh form on top.
In the taskbar the 2 forms are visible , when clicking on the mainform in the taskbar. the mainform becomes on front od the smeller form but the main form is disabled so the programm is not accesible anymore.
Is there a solution so i can remoe the forms from the taskbar so that it is not possible to click on it.
Thanks
DCAUB
|
|
|
|
|
Check out the ShowInTaskBar property of the Form.
|
|
|
|
|
Ditto to JZ. Sounds like you might want to show it modal as well like, form1.ShowDialog
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
thx this was what i was looking for.
DCA
|
|
|
|
|
Environment :
I have developed an Application in VB.NET and Reports are in CrystalReports 10.
The Problem is : I call the CrystalReport rpt file using VB.NET. The crystal Report page contains the map of the USA cities and States.
In Crystal Report if i run the RPT file and move the cursor on the map, the Tool tip shows the Name of the State and Cities.
if i call the Same file using VB.NET, the report shows on IE. If i move the cursor on the map, Nothing is displayed..
So tell me what should i do to show the Cities and States as a Tool tip while calling the Crystal Report rpt file using VB.NET?
Reply Soon............... Waiting...........
Reagrds and Thanks in Advance
Jothi S.
|
|
|
|
|
Are you still waiting?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Use a more descriptive subject line next time.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Please, Keep in mind that the Crystal Report does not run on the web.
Because, It Uses The Server Controls that should be Buy from The Business object. The Crystal Reports You are using in the vb.net it just a small copy of the Business Object's Crystal Reports.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
You will be waiting always. you will not get the answer unless if you make your subject clear.
Sathesh.
Blessed is the season which engages the whole world in a conspiracy of love.
|
|
|
|
|
Hi all...
Could anybody explain me what is automation and how to use it vb.net
Since i am creating a s/w to create themes for mobile phones, i want to use automation in my program(suggested by my frnd).
Thanks.
Gagan
|
|
|
|
|
Gagan.20 wrote: suggested by my frnd).
Perhaps you had better ask your frnd then? AS far as I know, automation in the VB world generally refers to MS Office (word, Excel etc), not sure how that relates to mobile phone themes.
Of course, I could have the wrong end of the stick (again)
Bob
Ashfield Consultants Ltd
|
|
|
|
|
If you don't know what automation is, how do you know you want to use it in your application on a mobile phone??
Various applications expose component libraries that you can use to manipulate that application. Examples of this are Word, Excel, AutoCAD, ... You can use these automation libraries to launch the application of use it to manipulate the documents that application works with.
AFAIK, there are no automation libraries to change out themes in a mobile phone.
|
|
|
|
|
Hi all...
I am using VS2005 with MS Access 2003.
I am creating a simple database program to store contacts.
I want to know that what should be datafield in access2003 to store image
and how can i store/retrieve image to/from database.
Thanks.
Gagan
|
|
|
|
|
Have you tried to Google[^] your question?
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Try defining a column as "OLE Object". I just did it and it worked. When you edit the table in datasheet view, right-click on OLE Object column, choose Insert Object and choose Bitmap Image. I then had to copy and paste an image into Paint to load the image into the table.
Create a form with the OLE Object column and you will see the image displayed on your form.
I'm not sure if I would use this technique if your database is going to have thousands of images stored, the database size could grow to an unmanageable size.
|
|
|
|