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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Non blank from field - script

Status
Not open for further replies.

getrav

Technical User
Feb 9, 2005
5
US
We are setting up a helpdesk email address. When the user replies to the email, it should use the "support" email address by default instead of the user's email address.


It would work like a forgotten attachment script. When the user sends the message a message would popup and ask "you are sending this email using your own email address, is this ok?"

As a second step, it would be nice to have a drop down of email address he can choose to send from.
Thanks

I'm not a programmer but I tried to edit a script as follows:


Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Dim intRes As Integer
Dim strMsg As String
Dim strThismsg As String
Dim intOldmsgstart As Integer

If objMessage.from = "" Then
strMsg = "From Field Checker:" & Chr(13) & Chr(10) & "The From field is blank" & Chr(13) & Chr(10) & "Send the message anyway?"
intRes = MsgBox(strMsg, vbYesNo + vbDefaultButton2 + vbExclamation, "You forgot the From Field!")
If intRes = vbNo Then
' cancel send
Cancel = True
End If
End If
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top