I'm having quite the frustrating time trying to figure out a particular
problem I'm having. I'll post the details and perhaps someone can assist me
before I go bald
I created an app that reads from a technical support database. It
determines cases closed for the day and sends the contact of a case an email
pointing them to a survey on my company's website. During development and
testing the emails seemed to work just fine. However, when I moved it to my
boss' machine it doesn't work exactly the way I would like it to. When
developing the app, I used VB 6.0 SP5 and the MAPI controls provided with
VB. Both machines are running Win XP. The only real difference is that the
development machine uses Outlook Express as the default mail client and my
boss' machine uses Outlook 2000. Both of them access a POP3 SMTP server.
MS Exchange is not being used.
The interesting thing is that the email gets created just fine and is sent
to the Outbox in Outlook to be sent, but an error occurs when trying to send
the email. Error Msg text is below.
The exact same code works for Outlook Express using the same SMTP server and
everything.
Following is the snippet of code used to create my email:
problem I'm having. I'll post the details and perhaps someone can assist me
before I go bald
I created an app that reads from a technical support database. It
determines cases closed for the day and sends the contact of a case an email
pointing them to a survey on my company's website. During development and
testing the emails seemed to work just fine. However, when I moved it to my
boss' machine it doesn't work exactly the way I would like it to. When
developing the app, I used VB 6.0 SP5 and the MAPI controls provided with
VB. Both machines are running Win XP. The only real difference is that the
development machine uses Outlook Express as the default mail client and my
boss' machine uses Outlook 2000. Both of them access a POP3 SMTP server.
MS Exchange is not being used.
The interesting thing is that the email gets created just fine and is sent
to the Outbox in Outlook to be sent, but an error occurs when trying to send
the email. Error Msg text is below.
Code:
The message could not be sent because one of the recipients was rejected by
the server. Server Response: '550 5.1.1 <Client Name>... User unknown'.
(Account: 'mail.iwaynet.net', SMTP Server: 'mail.iwaynet.net', Error Number:
0x800ccc79).
everything.
Following is the snippet of code used to create my email:
Code:
With grsCasesToEmail
strCaseNum = .Fields(CASENUM).Value
strTechName = .Fields(TECHNAME).Value
strCompany = .Fields(COMPANY).Value
strContactName = .Fields(FIRSTNAME).Value & " " & .Fields(LASTNAME).Value
strEmail = .Fields(EMAIL).Value & ""
strDescription = .Fields(DESCR).Value
End With
With mpmMessage
'Start composing message
.Compose
'Address Message
.RecipDisplayName = strContactName
.RecipAddress = strEmail
'Subject of Message
.MsgSubject = "Customer Satisfaction Survey"
.MsgNoteText = strMsgText
.Send False
End With
[\code]