No errors, it seems to go through the function ok, and insert the data. Just doesn't send any emails...
Main Topics
Browse All TopicsI closed out a question. But failed to test the code fully. I am sure it is 'my' syntax error and not the suggested code. Can you please check the below code and see where I went wrong?
The data is being inserted into the database, but the emails aren't sending. (I've *** the emails for privacy reasons)
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Mk3890:
I implemented your change and I get this error:
"The specified string is not in the form required for an e-mail address."
ICINTRACOM:
I haven't had that problem before. It quit sending when I implemented some new code to handle different versions of an email to be sent.
My code for email that I normally sent that worked is:
Ok I commented out this section:
'This will send message 1
'eMailSent = SendMail(mySenderEMail, myUserEmail, myMessageSubject, SendMessageBodyUser)
'If eMailSent = False Then
'email was not sent escape
'End If
And it sends the email, apparently it dosen't like the suggestion I was given to pull the email address in which was to change my query to this:
SELECT RequestorID, FirstName + ' ' + LastName + '(' + Email + ')' AS Requestor FROM tblRequestor ORDER BY FirstName
Then I called it in like this:
Dim Requestor As String
Requestor = txtPreparedby.SelectedItem
Which was giving me Username(emailaddress)
Also, the email that I did get for the "Boss" side lost all of its formatting and came through the email like this:
A new project has been submitted!<br /><br/> Vicki, a project needs to be assigned <a href="http://appserv1/Proj
i still need to figure out how to call the email address into a dropdown list correctly, this isn't working
SELECT RequestorID, FirstName + ' ' + LastName + '(' + Email + ')' AS Requestor FROM tblRequestor ORDER BY FirstName
Then I called it in like this:
Dim Requestor As String
Requestor = txtPreparedby.SelectedItem
Which was giving me Username(emailaddress)
I was trying to bind it to the dropdown list so the user can choose their name from the dropdownlist and I would also have access to their email address in order to send them a confirmation email.
I was given the below solution to accomplish that. However, the format it puts out is not accepted when I try to send the email. For now I am just binding the email address field to the dropdownlist. But I would rather the user to be able to select their name, not their email address from the dropdownlist.
SELECT RequestorID, FirstName + ' ' + LastName + '(' + Email + ')' AS Requestor FROM tblRequestor ORDER BY FirstName
Then I called it in like this:
Dim Requestor As String
Requestor = txtPreparedby.SelectedItem
Which was giving me Username(emailaddress)
Business Accounts
Answer for Membership
by: MikeyK65_2Posted on 2008-02-22 at 08:46:09ID: 20959084
If you debug the code do you get an exception in the sendmail function and return false or does it happily go through the function ok and just not send?
Mike