[Message Deleted]
-
Are you sure that you wrote that code? It looks like you copied and pasted it from somewhere, without even looking at it. What's the give-away, you may ask?
clife537 wrote:
mail.From = "mail@mymail.com";
clife537 wrote:
mail.To = "mail@mymail.com";
clife537 wrote:
mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "mail@mymail.com";
clife537 wrote:
mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "xxxxxxx";
clife537 wrote:
SmtpMail.SmtpServer = "smtp.domain.com";
You are supposed to replace all those with actual E-Mail addresses, and your working SMTP server.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet. "If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
-
Isn't the
MailMessage.To
property, read-only? I don't think you can writeclife537 wrote:
mail.To = "mail@mymail.com";
It would generate an error. To add an email address to the
MailMessage.To
property, you'd have to write something like:mail.To.Add("someone@somewhere.world");
AshishTime flies like an arrow; Fruit flies like a banana. Ashish Derhgawen - http://ashishrd.blogspot.com[^]