Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

i use this code to send e mail:

 


Sub Mailshot(ByVal adress As String, ByVal subject As String, ByVal body As String)
       Dim msgmail As MailMessage = New MailMessage()

       SmtpMail.SmtpServer = "smtp.012.net.il"
       msgmail.From = "shoresh@shoresh.org.il"

       Try
           msgmail.To = adress
           msgmail.Body = body
           msgmail.Subject = subject
           msgmail.BodyFormat = MailFormat.Html
           SmtpMail.Send(msgmail)
       Catch exc As Exception
           'DO WHATEVER ERROR HANDLING
       End Try
       msgmail = Nothing
   End Sub

 

the problem is that my users get my e mail address in the sender field.

 

i do want them to get my site name. but when i change the msgmail.from to my name, my smtp server wont send it.

 

do you have a way to keep a valid e mail as "from" and my name as "fromname"?

Posted
Yeh but its still a development language and as soon as you start doing things 'uncomplicated', what that means is that you are putting contraints on people. Otherwise you end up with a language that you can't do anything with and you'll get the same complaints here that .net is too specific.

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...