Send mail php with a .live email - php

I can send a email to my domain email but when using a .live email as the $to in php I get the error in the log "Denied ATTR36" is there anything I can do Thanks

Related

Email should come under same convestaion

I am sending email using php mailer and email is going fine to the inbox
but next time when i reply back instead of email coming to under same conversation it create a new email even it should show all the email subject
any one has an idea ?
The email you send via php must have a header
Reply-To: <from-email-address>
From: <from-email-address>
as well as a
To: <destination-email-address>
header line for it to appear as a conversation thread.
Also the subject line should be the same or be the same with a prepended 'Re: '

Get Email To Receiver When Submitted And Also Sender Get Submission Copy using PHPMailer

I am newbie with PHPMailer library , I want to get emails from my contact form But on submission of form I want sender also get a copy of mail With additional message as " thanks for registering with us." As I gone through PHP mailer examples We can use addCC();. But how to embed additional msg.
Could you please help me with this ?
Using CC or BCC will always result in identical message being sent to all; If you want the messages to be different for different recipients, you must send separate messages with different bodies. With PHPMailer:
$mail->addAddress('recipient1#example.com');
$mail->Body = "hello abc";
$mail->send();
$mail->clearAddresses();
$mail->addAddress('recipient2#example.com');
$mail->Body = "hello xyz";
$mail->send();
It's important to call clearAddresses as otherwise the second message will be sent to both recpients.

when i am sending email from my php code through a 3rd party mail server, where do i save my emails?

i am using php code to send emails to gmail or yahoo ids. i am using a 3rd party mail server to send my emails. my php code works and i can receive the content in my gmail inbox. but where do i save my sent emails ?? who gives me an inbox for all my received / sent emails. suggest me a Name ?
function helloEmail()
{
$from = new Email(null, "test#example.com");
$subject = "Hello World from the SendGrid PHP Library";
$to = new Email(null, "test#example.com");
$content = new Content("text/plain", "some text here");
$mail = new Mail($from, $subject, $to, $content);
$to = new Email(null, "test2#example.com");
$mail->personalization[0]->addTo($to);
//echo json_encode($mail, JSON_PRETTY_PRINT), "\n";
return $mail;
}
There is no inbox for your sent mails. You can send an e-mail using any e-mail address you choose, even if it belongs to someone else or doesn't exist.
For your received e-mail inbox, you'll have to make one yourself via any third party e-mail service such as Gmail or Hotmail, or via your web hosting platform using your own domain name if they provide e-mail services.
To save your sent e-mails you can opt to save them in a database.

how to php email change `setfrom`

how to change setfrom in email sending by php
example I have the sender email is myemail1#gmail.com and I want change the setfrom when email is sending to myemail2#gmail.com
I tried with this code but not work
$mail->setFrom('myemail2#gmail.com', 'My Email2');

CakeEmail response of mail send

I can successfully send emails by using CakeEmail class of CakePHP.
But how can I be sure that the email is sent ?
Does a response comes when email is sent successfully?
When i take success response, I will redirect visitor to some other page.
send() method send the content array if the mail send successfully or it throws an exception.

Categories