I am using the Google Apps Gmail, for my domain email.
Now, this is the issue that I am having and it is really starting to cause an
Issue with some of my clients.
Set myMail = CreateObject("CDO.Message")
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="smtp.gmail.com"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true 'Use SSL for the connection (True or False)
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") ="firstname.lastname@example.org"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="********"
Now, when someone fills out the Web Mail Form, and submits the message, it USE
to come to me from the email address that the person provided in the "FROM", and that was using a mail server other than the Google Apps Mail Server.
NOW, since I have been using the Google Apps Mail Server, the person that sends the message through the Web Form, gets their email knocked off, and the one listed in the code above gets tacked on to the FROM instead.
So basically, all messages come in from all Web Forms, from: email@example.com
My question is this.
Until I can start hosting in house and with my own mail server again, is there a work around to make this code send with the person's email address in the "FROM" instead of the hard coded User email in the code?
Right now, I have had to add code to grab the person's email address and list it in the message itself, which is fine, for those that read the message and pay attention to the NOTE that tells them to copy and paste email address to reply to sender.
(Most people just do not pay that much attention, especially when they are use to hitting the REPLY button)