mail won'twork...

> From %%%%%

Posted Tuesday, 06 September 2011

Subject Error sending email

Message

An error was encountered when sending the user registration email. The error is: Could not instantiate mail function. The user who attempted to register is: %%%%%%

I am running on linode ubuntu 10.04 LTS. Before i was with hostgator and everything would work as norm. I am using php for the main under global config and using admin@terwax.com.

Oh and i use google apps, so gmail for mail.

3 Replies

You need to tell your linode how to send mail. This depends on your flavour of linux, but there's an example here:

http://library.linode.com/email/exim/se … 0.04-lucid">http://library.linode.com/email/exim/send-only-mta-ubuntu-10.04-lucid

Php should then be able to send mail.

I already use google apps, isn't that enough?

the test worked but it was sent to my hotmail junk :(

Google Apps is for incoming mail, and any mail that you personally send. Automated sending from your website is a different problem. Some web apps can be configured to send e-mails through your Google Apps account, but most apps can't.

In order to prevent major e-mail services from treating your automated messages as spam, you'll need to do a few things.

  • Add your server's address to your domain's SPF record.

  • Make sure that your server's mailname is identical to the reverse DNS entry for your IP address.

  • Never use anything other than your own admin e-mail address (belonging to the same domain as the website) in the "From" field.

  • You may still need to ask a few users to click "Not Spam", so that the e-mail service's spam filter knows what to do.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct