×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SMTP Mail failure

SMTP Mail failure

SMTP Mail failure

(OP)
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

RE: SMTP Mail failure

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.
http://www.erpessentials.com

RE: SMTP Mail failure

(OP)
The person responsible for the server told me, after verification, that SMTP is configured and working.

Any other ideas???

RE: SMTP Mail failure

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close