Click here to Skip to main content
16,016,022 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Error Pin
Len Miller17-Jun-05 21:36
Len Miller17-Jun-05 21:36 
GeneralError Pin
ADY00717-Jun-05 23:39
ADY00717-Jun-05 23:39 
GeneralSelectCommand Pin
alef3417-Jun-05 4:10
alef3417-Jun-05 4:10 
GeneralRe: SelectCommand Pin
Dave Kreskowiak17-Jun-05 4:42
mveDave Kreskowiak17-Jun-05 4:42 
GeneralRe: SelectCommand Pin
Len Miller17-Jun-05 20:49
Len Miller17-Jun-05 20:49 
GeneralRe: SelectCommand Pin
alef3419-Jun-05 20:34
alef3419-Jun-05 20:34 
GeneralLooking For CTL or COM Control for XML Editing Pin
Davy Mitchell17-Jun-05 2:35
Davy Mitchell17-Jun-05 2:35 
Generalsending mails from vb.net using Microsoft Outlook Pin
manojmmj17-Jun-05 2:31
manojmmj17-Jun-05 2:31 
Hello,
this is Manoj,doing a project in a company. In my project, I want to send mail (automatically, without click on send & even not displaying the composer window)through vb.net using my microsoft outlook (or anything else if can be used) which is configured to Microsoft Exchange server named bgeexc05. I am generating password automatically for an employee once he enters his empid,that password need to be sent to his emailid (by accessing emailid from database). Below are the error message which i get by using the respective code:

I have put, "Imports System" & "Imports System.Web.Mail" & below codes Written for Click Button

I have also tried for localhost.
Code1:
Dim from As String = "manoj.jahagirdhar@abc.com"
Dim mailto As String = "manoj.jahagirdhar@abc.com"
Dim subject As String = "PWD"
Dim body As String = "UtilMailMessage001 - success"
SmtpMail.SmtpServer = "bgeexc05"
SmtpMail.Send(from, mailto, subject, body)

Error Message1:

"The transport failed to connect to the server"


Code2:

Dim email As New System.Web.Mail.MailMessage
email.To = "manoj.jahagirdar@abc.com"
email.From = "manoj.jahagirdar@abc.com"
email.Body = "MessageText"
email.Subject = "SubjectText"
email.BodyFormat = Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.SmtpServer = "bgeexc05"
System.Web.Mail.SmtpMail.Send(email)


Error Message2:

The server rejected the sender address. The server response was: 454 5.7.3 Client does not have permission to submit mail to this server

Also i get get message saying, "Cannot relay on manoj.jahagirdhar@abc.com" ..........
Kindly Help
GeneralRe: sending mails from vb.net using Microsoft Outlook Pin
Anonymous17-Jun-05 16:05
Anonymous17-Jun-05 16:05 
GeneralRe: sending mails from vb.net using Microsoft Outlook Pin
jonathan1520-Jun-05 3:46
jonathan1520-Jun-05 3:46 
GeneralMulti-tasking Pin
manopt17-Jun-05 2:22
manopt17-Jun-05 2:22 
GeneralRe: Multi-tasking Pin
Dave Kreskowiak17-Jun-05 4:37
mveDave Kreskowiak17-Jun-05 4:37 
Generallast record Pin
Manik Nath16-Jun-05 22:41
Manik Nath16-Jun-05 22:41 
GeneralRe: last record Pin
Dave Kreskowiak17-Jun-05 6:28
mveDave Kreskowiak17-Jun-05 6:28 
GeneralRe: last record Pin
Manik Nath17-Jun-05 21:11
Manik Nath17-Jun-05 21:11 
GeneralRe: last record Pin
Manik Nath17-Jun-05 22:59
Manik Nath17-Jun-05 22:59 
Questionhow send message to active window Pin
Anonymous16-Jun-05 19:20
Anonymous16-Jun-05 19:20 
AnswerRe: how send message to active window Pin
Dave Kreskowiak17-Jun-05 4:33
mveDave Kreskowiak17-Jun-05 4:33 
GeneralRe: how send message to active window Pin
Anonymous20-Jun-05 0:19
Anonymous20-Jun-05 0:19 
GeneralVB6 casting problem Pin
Anonymous16-Jun-05 18:26
Anonymous16-Jun-05 18:26 
GeneralRe: VB6 casting problem Pin
toxcct16-Jun-05 20:51
toxcct16-Jun-05 20:51 
GeneralRe: VB6 casting problem Pin
Anonymous16-Jun-05 22:15
Anonymous16-Jun-05 22:15 
GeneralRe: VB6 casting problem Pin
J4amieC17-Jun-05 0:58
J4amieC17-Jun-05 0:58 
GeneralSOS!!!Dynamic Calculation in Datagrid column Pin
BORN...again!16-Jun-05 17:44
BORN...again!16-Jun-05 17:44 
GeneralRe: SOS!!!Dynamic Calculation in Datagrid column Pin
Christian Graus16-Jun-05 17:53
protectorChristian Graus16-Jun-05 17:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.