PHP mail - from argument [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to php, today I learned to use php mail and I'm kinda confused. How come I can write something like:
mail("example#example.com",$subject,$message,"From: $from\n")
and then the reciever sees in the from field whatever I put in $from? I could write an address of any institution/company/etc there and the reciever would think that it's legit email.
Isn't that totally insecure? What's the catch?

The from address is sent in the message in the message header.
A SPF (Sender Policy Framework) on the sending domain can be used to verify that mail has come from its said source.
If received mail does not comply with the SPF appropriate action on the receivers mail server may be taken such as moving the message into the spam folder or rejecting it entirely.

Related

PhpMailer taking too long to send email with remote server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 days ago.
Improve this question
I'm using PHP mailer to send email to my users for my webapp.
However the library is taking too much time to send email with a remote mail server.
I tried to replace the domain name by the server's ip address to reduce the time needed to resolve the domain name but it doesn't change anything.
Thank you for your help
I'm expecting that phpmailer takes not so much time to send mail.

Php web app and reply to email to call a function [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm developing a web app in php using codeignitor. I want to implement "reply to this email with approved in email body to update the app." feature.
Nowadays wen web apps send email for approvals, we can directly reply to email so the app will get updated once you send the reply. How does this feature implemented? I searched the web couldn't get any clues.
You can create a script polling the inbox of a specific email address and approving emails it got answer from. You would then need to set up cron jobs to run the script periodically.

How to post and upload content via email? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have a website and I want to be able to post things through my email, just like in many big social networks. (like Facebook, Flickr)
Like: I would send a message to 'post#domain.com'
the title would be saved to a MySQL db and attachment is saved to a directory.
or something similar to this.
I'm more focused on the attachment,but I'll take anything that will get me started
I heard that it is possible through a "Cron Job", but I'm not familiar with how that works. So please link to a tutorial or some code that I can learn from.
-Thank you
That would be a bigger and more complex system than a simple tutorial.
Conceptually, you'd have a mail exchanger that would accept incoming mail and store it somewhere. Then, you'd have a separate system that would connect to the mail exchanger (through POP, IMAP or filesystem) and get the mails since its last run. It would then parse the mail and run whatever action you specified.

Auto Email sending [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have been making a website for a client and he has requested two things. The first is to send an email when a job is assigned to a users accounts and the second is to enable a user to recover a lost password for a the user via an automated email. The website has been coded using HTML5 CSS PHP and SQL for the database back end.
I am unsure of how to set up this function to send this automated email
any help would be greatly appreciated
Thank You
Did you google it?
Use the mail function. http://php.net/manual/en/function.mail.php
Im using phpmailer for that job. :-)
http://phpmailer.worxware.com/

how can I modify a gmail account to forward an email that comes in with additional parameters? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Say my gmail account gets an email, how can I make it so that any email that comes to my gmail account automatically forwards to another email "bob#gmail.com" with ADDITIONAL parameters in the body of the email? Do I have to use a php script with IMAP or can I do this with gmail alone?
The only way I know to do this reliably is through code. So SMTP/IMAP to send & receive. In Java you can use the JavaMail api. You'll need to find an equivalent package for PHP.

Categories