Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMTP Mail failure

Status
Not open for further replies.

mlbechard

Programmer
Jun 22, 2009
87
CA
Below is the Flex code we are using to send email in the customised screen OE0101. It was working fine for the last 5-6 years but the server has changed last friday and since then, no message is sent. The only thing I have changed is the name of the server.

The Flex code below does not return any error but does not seems to send the email.

I am sure the issue is on the new server but I can't point my finger on it.

Any help would be really appreciated.

Private Sub SendEmailSmtp(strEmailToRecipient As String, strEmailCCRecipient As String, _
strEmailSubject As String, strEmailMessage As String, strFilename As String)
Dim oSMTP As OSSMTP.SMTPSession
On Error GoTo ErrorHandler
Set oSMTP = New OSSMTP.SMTPSession

With oSMTP
.Server = "vorw2ksrv01.vortex-intl.com"
.MailFrom = "NewOrderMail"
.SendTo = strEmailToRecipient
.CC = strEmailCCRecipient
.MessageSubject = strEmailSubject
.MessageText = strEmailMessage
.SendEmail
End With

Set oSMTP = Nothing
Exit Sub

ErrorHandler:
MsgBox "Error No: " & Err.Number & vbCrLf & _
"Error Desc: " & Err.Description, vbCritical, _
"Vortex [Report Error to System Admin]"
Exit Sub
End Sub
 
Is SMTP configured and working on your new server? The SMTP server is not installed by default. SMTP can be added through the Features Summary area of the Server Manager tool in Windows Server 2008.

Peter Shirley
Macola Consultant, PA and surrounding states.
 
The person responsible for the server told me, after verification, that SMTP is configured and working.

Any other ideas???
 
FYI,
The error was on the new email server. It was not accepting the short name of the email anymore. As example, "yourname@compagnie.com" works on the new email server but not "yourname" only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top