Can i use PHPMailer to send from my mail server? - php

I want to send message from my mail server, for example from. Can i use for that PHP Mailer class? And how STTP server checks the correctness of email? only checks that domain belongs one of his existing domains?
Sorry for bad english ))

Yes you can use phpmailer. You need to put in the smtp information provided by your hosting company in order to send the email

Related

Mail send with PHP in outbox of a user?

I need to send mail from my PHP app, I wonder if I authenticate as a exchange user via PHPMailer, does my mails send from my app will be on the outbox in the MS Outlook of this user ?
Thanks
On most mail servers, no, this doesn't happen automatically, but you can do it yourself. The gmail example provided with PHPMailer shows how to save a sent message to your outbox using IMAP; it will be nearly identical for Outlook. Alternatively, BCC the original message to yourself and you'll receive a copy of everything you send, which provides a similar effect.

Can I change the server name and IP address when I send an e-mail message with mailer?

I want to add custom sender ip and custom server name when i send my email using my hosting provider mailer .I use mailer:
My mail PHP Mail form
I want to show this mail information instead of the original server information.
Received: from BLU179-W29 ([65.55.111.71]) by
blu0-omc2-s1.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);
This information is generated by the receiver, and it is not possible to be changed by the sending party (nor is it meant to). I truly doubt you can find a valid reason to do so anyway.

handling bounce email w/phpmailer

I have a webpage that sends out emails using phpmailer. I set the host to 'relay-hosting.secureserver.net' the mail->sender, mail->from and mail->addReplyTo all to the same address, which is the address that I want the bounced email notifications sent to. This email address in also with the same host and the smtp host. When I put in a bad email address I don't get a notification that is was not delivered. What am I doing wrong? Thanks
PHPmailer does not handle receiving emails. It's purely a library for allowing PHP to talk to an SMTP server for sending emails. It has absolutely no support whatsoever to act as a mail client (e.g. receiving).
PHPmailer has no way of knowing the email bounced, as the bounce occurs LONG after PHPmailer's handed the email off to the outgoing SMTP server. IN real world terms, PHPmailer takes your letter and walks down the block to drop it into a mailbox. The bounce occurs later, when the letter carrier brings the letter back with 'return to sender' stamped on it - PHPmailer is not involved in this at all.
Your options are:
1) Use PHP's imap functions to connect to an existing pop/imap server and retrieve emails that way
2) Use a .forward or similar redirect on the SMTP side to "send" incoming email to a PHP script.
I know this is an old and answered question, but for those who may find this post later with a similar problem you might be able to solve this by going to your smtp mail relay service. If for example you use jangosmtp there is an option in your jangosmtp control panel to either hard code the address to which bounce reports should be sent or to always send bounce reports to the From address.

PHP - Specifying the SMTP server to send mail through

I am developing a simple webmail client for IMAP-based email services using PHP's IMAP library, and I was wondering if there was any way to specify the SMTP server to use when sending an outgoing message, so that the message will be placed in the user's Sent mailbox when they are logged into their IMAP account. I saw that their is an imap_mail() function however it looks from the docs like it is just basically an alias for the normal mail() function, or am I wrong in assumming that?
Why don't you use a full featured class for this function, like PHPMailer?
Saving a copy to the Sent Mail folder is a function of IMAP, and is completely unrelated to queuing the message for delivery via SMTP. I.e., your code will have to do both operations separately -- one does not imply the other.
I have noticed that Gmail adds a copy to the sent folder on its own. Is this common behavior for the big web-mail providers?

Is it possible with PHP mail to send an email to a specific IP address?

We have a client that can't receive emails from a dedicated server using PHP mail because when their SPAM server does an MX record lookup for the IP it can't find one (so it bounces the email).
This is because the mail exchange is on a different server completely. The client said that they have an IP address that bypasses the SPAM blocker.
So I'm wondering if PHP mail can send an email to a specific IP?
Does your server not qualify as a mail sender by their spam filter? Because I'm guessing that they can receive mail from other people.
So I think you need to look at the setup of your server so it complies with their qualifications (like a reversible name for example, or whatever other rules they require from an email sender)
Because with PHP (and other languages) you just send the email, there are tools that send an email through another server that is qualified to send emails, but usually you use the server itself.
For example, you can use the Zend Mail library to send through another SMTP server.
The answer is yes. However, how the mail() call in PHP actually sends the mail is totally dependent on how your system is set up, so any problems you're having sending mail won't be resolved in your PHP code, they'll be in your mail set up.
Generally, you should be able to address a piece of email to "user#192.168.1.1" and have it arrive successfully.
There's a good article about some of your mailer settings here.

Categories