 |
Linode.com Forum Linode Community Forums
|
| Author |
Message |
prabhat
Joined: 25 Oct 2007
Posts: 1
|
| Posted: Thu Oct 25, 2007 9:34 am Post subject: I have a form on my website that emails my account, but |
|
|
Google Apps for Administrators
Quote: If you have a form (using PHP/ASP/etc) on your website that is configured to send a message to your Google Apps email account, but you never receive mail from your website's form, please perform the following tests:
* Send a message to your Google Apps email account from a non-Google Apps personal email account.
* Modify the form to send mail to your Gmail account, or another non-Google Apps personal email account.
If both tests are successful, this issue is most likely caused by mail delivery settings on your webserver. Because your website and your Google Apps email address share the same domain name, the mail agent running on the server that hosts your website thinks that it is responsible for mail addressed to your domain name. This is a typical default setting.
When someone submits the form on your website, the mail agent recognizes your domain name and concludes that it should be sending mail to itself. The mail agent will attempt to deliver the message locally.
To resolve this issue, notify the mail agent running on the server that hosts your website that it is not also responsible for handling mail for your domain. Contact your web host for specific instructions. If you host your own website, contact the support team for your mail server software.
I have this Problem can anyone please suggest a sol? I am using smpt server. |
|
| Back to top |
|
raman
Joined: 30 Nov 2004
Posts: 17
|
| Posted: Fri Oct 26, 2007 12:32 pm Post subject: |
|
|
| What exactly is the problem? |
|
| Back to top |
|
easilyamused
Joined: 03 Jan 2008
Posts: 1
Location: orlando, fl
|
| Posted: Thu Jan 03, 2008 4:05 pm Post subject: Im haveing the same problem |
|
|
| do you have a mail server installed on your server? php dose not send mail. it is a tool used to do it but it need something more. im also haveing the same problem and have not found a fix yet. we are installing a mail server now , we are useing google apps for our mail at this point. |
|
| Back to top |
|
zunzun
Joined: 18 Feb 2005
Posts: 167
Location: Birmingham, Alabama USA
|
| Posted: Fri Jan 04, 2008 5:56 am Post subject: |
|
|
My Python gmail code (less password) for user feedback emails to myself, no mail software installed on my Linode. The details on ports etc. came from google's info on Gmail. This might be helpful as a model.
James
Code:
# email out
fromaddr = ""
if self.CONNECTION.args.has_key('ADDRESS'):
fromaddr = self.CONNECTION.args['ADDRESS']
if fromaddr == "":
fromaddr = "zunzun@zunzun.com"
toaddrs = ["zunzun@zunzun.com"]
# Add the From: and To: headers at the start!
msg = ("From: %s\r\nTo: %s\r\nSubject: ZunZun.com Feedback Form\r\n\r\n"
% (fromaddr, string.join(toaddrs, ", ")))
msg += "From " + fromaddr + "\n\n"
msg += dateAndTime + "\n\n"
msg += self.CONNECTION.args['FEEDBACK']
server = smtplib.SMTP('smtp.gmail.com', 587)
server.ehlo()
server.starttls()
server.ehlo()
server.login('zunzun@zunzun.com', 'PASSWORD_GOES_HERE')
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
|
|
| Back to top |
|
| |
|