Codeigniter: Can I send email using codeigniter email library with a POP account - email

I am a novice at this email sending task. I have a pop account on my company's mail network. Can I send email with this account using the default email library in codeigniter.
Some code references will be thoroughly helpful

Check out Email Class - supports mail, sendmail and SMTP protocols.

Related

If authentication is required to send SMTP messages, how do different mail servers send messages to each other?

To learn about email and SMTP, I wrote a basic SMTP client using sockets to push an email to my outlook account, following an example from a textbook.
I ran into a hiccup though, when the outlook mail server required me to authenticate before I could send the email. After researching the issue, I learned this is to prevent mass email spam and sender spoofing, which makes sense. I resolved this by authenticating using my outlook email and sending the email to myself.
My follow up questions that I'm having trouble finding an answer to are:
If a different mail server, such as google, needs to push an email to my outlook inbox, how does it authenticate? Does the google mail server have an account with outlook?
Is it not possible to just send mail between any two mail servers? Do the mail server admins need to white list other email servers first?
Found my answer here: How to send a mail directly to SMTP server without authentication?
Turns out, I was not connecting to an external SMTP server for outlook, but rather a server for users to perform actions with their outlook account specifically.

Is there a way to add a CC email address in SendGrid's Automation Email system?

I am currently building an automation email in SendGrid. The setup process seems very straightforward, but I can't find how or where to add a CC email address.
I've researched SendGrid's documentation and other sites to find a possible solution. Two sources had the right idea, but they provided examples using Node.js (see SendGrid Personalizations and Twilio Blog). I am needing to add a CC address inside SendGrid's Automation Email creator.
Does the SendGrid Automation system provide this capability, or is this best achieved through Node.js (or other background-handling languages)?
I don't believe that you can send an Automation with a cc.
You can track when Automation emails are sent to users by registering for the Event Webhook.
When users reply to the automation email and just get an email saying that their message was received, I assume that is because the email address you send the automation from is just set up to autorespond. You could set that email address up with the Inbound Parse Webhook so that you can trigger other events when you receive emails to that address. You could, in that case, send an email to your sales team, or register the response in a database, or forward the message to a CRM system.
If the only solution for you is to use a cc, then Automations may not work for you and you will have to send using the Mail Send API which gives you lots more control over the email being sent, but does lose the automation features.

sendgrid/mail wont allow sending 'from' to be dynamically

I have a form on my portfolio that allows a user fill in a form with a question they have and send that to me by email.
When i try to use sendgrid it only allows me as a verified user to send emails from my own email address. but i want the 'from' field to be dynamically filled in by that user and then sent to me.
note: I also tried 'emailjs' but that works fine in development but fails in production.
Any suggestions on how to fix this or any other platforms i can use for that preferabally free since it is a hobby project.
Thanks
Twilio SendGrid developer evangelist here.
You do need to use a verified email address to send emails from SendGrid, this is to stop people using a form like you describe to spoof anyone's email address.
A better idea is to send emails created in your form from a verified email address and set the reply-to address as the submitted email. That way you can send with SendGrid and then when you reply in your email client it will return to the person that submitted the form.
I added more detail and example code (in Python) in this answer.

Send mail to an email address using Yesod

I'm unable to find any good documentation or examples of how to send an mail to an email address using Yesod.
More practically, I'll extract the information the user typed inside a simple form (name, age, body of message) and send this information as a mail to an email address.
I'm kind of lost in this task.
There are three packages I'd recommend you look at:
mime-mail, which is a package for composing emails and rendering to bytestrings. It can also send via the system sendmail executable.
mime-mail-ses, which can send mail from mime-mail via Amazon SES.
smtp-mail, which can send mail from mime-mail via an SMTP connection.
There is some discussion about sending email in the auth chapter of the Yesod book.
Yesod doesn't have mailing functions. You have to use other packages outside Yesod.
Maybe you'd want to check this short answer: https://stackoverflow.com/a/11763447/1744195

sendmail disabled

My host has Sendmail() disabled. I'm basically looking for a way to bypass this. I want visitors to be able to send me (gmail account) an email where they first fill in their e-mail address, so they become the sender. It's for support questions and remarks.
If there is no way to bypass this, is there and alternative, perhaps using mailchimp..?
You can always use an alternative public send mail servers available. You can use one of them. Here is one Public Send Mail server list
use phpmailer library. you can send email via connecting smtp (works with gmail too.) 1st configure one of your accounts with phpmailer. when the user fills in their email set the sender as user's email.
even though you are actually sending the email through your account to receiver of the email will show as sent by user's email address.
http://phpmailer.worxware.com/