Solved

smtp.gmail.com issues with sending mail from sender

Posted on 2011-09-28
2
413 Views
Last Modified: 2012-05-12
Hello All;

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") ="webmaster@domain.org"
myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") ="********"
     
myMail.Configuration.Fields.Update

Open in new window


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: webmaster@domain.org

So.
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)

Thank you
Carrzkiss
0
Comment
Question by:Wayne Barron
2 Comments
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 36717810
No, this is Google's security that disallows sending from other people's e-mail addresses. Imagine this, a spambot is set up and the e-mail is sends from is "webadmin@yourdomain.com". Your e-mail would quickly become black listed. This leads many SMTP servers to prevent sending from e-mail addresses outside their domain name.

Your main option would be to set up your own SMTP server that allows you to send from any e-mail address, but then you have to worry about the security and preventing spambots from using your server.
0
 
LVL 30

Author Comment

by:Wayne Barron
ID: 36717989
>> set up your own SMTP server
That is what I stated that was planned for the future.

OK, I understand what you are saying and that is the best answer that I have found, so thank you and have a good one.

Carrzkiss
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Easy CSR creation in Exchange 2007,2010 and 2013
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question