How do I use Google Apps' email services to send mail using the CodeIgniter email class? The email class seems to prefer SMTP, and I was going through the clients Google Apps account. I can't find any place within the Google Apps settings for SMTP. Does anyone know of a solution for this issue?
Right you don't find it because CodeIgniter uses the "mail" PHP function.
For some reasons only the most drunken PHP core developer knows about - this function do not support SMTP and worse even the admin can't configure SMTP usuage on Unix (it is possible to do this on windows - making the PHP design look even more crazy).
There are a few SMTP libraries out there that can handle SMTP Email, just use them
http://pear.php.net/package/Mail
http://sourceforge.net/projects/phpmailer/
http://swiftmailer.org/
or the Email classes from the Zend Framework which are uncoupled from the rest so easy to use with CodeIgniter.
Here is a blog post detailing instructions:
http://joelg.info/sending-email-with-gmail-using-the-codeignite
Extract From link:
Why send email with Gmail rather than
the server's SMTP configuration? There
are a number of advantages I see for
doing this: Ability to develop locally
and test email sending functionality
without going to lengths to setup a
local mail server. Ability to utilise
Google Apps emails to send email from
emails which are on your own domain.
Ability to have a reference of the
mail you send using this method in the
"sent" folder on your Gmail account.
Related
I'm looking for a way to allow Yahoo application to read user's emails over IMAP. It works well for old applications (that were created before Yahoo Mail API has deprecated), but trying to access IMAP for new applications gives me an error
[AUTHENTICATIONFAILED] (#AUTH007) Bad scope.
Unfortunately, I have no idea how to add a correct scope for accessing IMAP for new applications. During creation of the app, I was not given a choice to add scope with name even looking like 'mail'.
Is Yahoo API just broken or there is some tricky way to work around?
Contact imap-service#yahoo-inc.com
With your Yahoo.com email address and
Brief description of your product.
How will your product use Yahoo user's email content?
How will your product help Yahoo mail users?
What market do you serve?
What is your product's userbase?
basically I'm hosting my site on 123-reg and have a contact form on my site which i want people to send me emails to my live.co.uk email address, i was using the basic php mail() but found all emails are constantly going into junk folder which i rather it go into inbox so was told to use phpmailer
looking into phpmailer i get to the code which asks for smtp but I'm lost with this as I'm not sure what i should be putting for the host username and password as i want the website to send emails to a given email address , any advice on what i should be putting this and why would be great
Thank You
You don't need to use SMTP - you can use a local mail server and call isMail() instead of isSMTP() - though you don't even need to do that since it's the default. In the examples folder provided with PHPMailer, look at the one called mail.phps.
I would like to know if there is a way how I can send e-mails with preferabel php or JS without needing an actual mail server. I am pretty sure it won't work, but have any of you an idea how there could be a way?
You can send mail with a lot of services, I believe they are called 'exchange' mail services. Gmail, outlook (or live, hotmail) are examples of these services. Google is full of examples :-)
Currently, I am developing a website using Drupal 7 in my local computer.
I have set up Contact Form (Drupal core module) for user to send feedbacks.
However, I have no idea how to send email from Contact form. I didn't receive any email after I filled in and submitted the contact form. And website displays the status "The message has been sent." But there is no email received.
I know there must be something I need to setup before using Contact Form. Maybe mail server?
I use Drupal 7 with XAMPP.
Is there any step-by-step guideline on sending email? Maybe for both cases
Local machine as web server (for testing on my local computer)
Real web server (for publishing after everything is done)
I have searched some solutions in some forums but I do not understand.
I am new to Drupal.
Thank you so much for your help and guidance.
For getting mail from contact form,
Enable the module
Go to admin-> structure-> contact form
Create new category
Fill the details Category, Recipients (you need to give the mail you need to get notified), etc...
If you need to test the mail in local then you need to setup SMTP module in your drupal, this will work in server also.
If you don't have any any SMTP settings then you need to test in server. In server you may don't need any smtp mail, simply php mail may work if your hosting server is support. So no need to do any extra effort for that.
I am modifying my website so users will be able to send an email through our webform.
Everything is written in PHP.
I will be using standard mail() function (PHP) and as I understand it will use local smtp server to send an email (this is sendmail, right?).
Should I maybe use SMTP server to send those emails?
I am asking because using standard mail() function it will use local server (Debian Linux 6.0) and I never really used it... I just want to be sure that all of those emails will get throu.
You have to keep some standards for sending emails in mind but then it will work fine:
set a RDNS entry for the IP you are sending the emails from
your email server must be not an open relay
don't send emails to users who didn't opt in to your email list via double opt in proceeder
your server IP need to be nowhere blacklisted
If you are sending a lot of emails (like 5000 emails and more) you should use a special service for that. A shared hosting plan or a VPS won't be a good idea for that amount of emails.
I always use PHP mailer. Its very easy to configure. Refer http://www.inmotionhosting.com/support/email/send-email-from-a-page/using-phpmailer-to-send-mail-through-php
Delivering mail is not an easy subject. If you don't want to dive into it, http://mandrill.com/ is a great solution. They offer a great free plan, and they manage all the deliverability issues for you.
We use Mandrill on all our new projects. We were using SendGrid, which is also good, but is more expensive (and not better).