Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm writing a windows app that send email. It' an extreme easy application, I just write

 

MailMessage msg = new MailMessage();

msg.From = "myEmailAddress";

msg.To = "destinationEmailAddress";

msg.Subject = "subject";

msg.Body = "body";

msg.Attachments.Add(new MailAttachment("attachment"));

SmtpMail.SmtpServer="smtpServer";

SmtpMail.Send(msg);

 

no login, no password. Why? In this way I can send email from a email address of another person. What's the conseguences of this? Can I have problem from my host?

My Application is finished but I don't want to have problem for using my email from an application like this one.

Can you help me?

Posted
no login, no password. Why? In this way I can send email from a email address of another person. What's the conseguences of this? Can I have problem from my host?

Hi Roby,

yes, most smtp-mailservers do not require you to log in. However most servers don't accept sending mail from a different domain than you're logged in to and somehow you're logged in to some domain (or you wouldn't be on the internet)

Some servers require valid from addresses, most however do not. And it's not just your app that's offering this option to forge the sender, all (?) mail programs have options to set the sending name and address. It's not hard to trick people to believe that the sender is Bill Gates, or Kofi Annan, or the Pope if you wish. However, your IP-address will always show from where the mail was sent....

 

HTH

/Kejpa

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...