I am Using Php Mailer as i already discussion Before Few days on this but i am having some errors i need an Admin Support here @admin
Which one is Valid sir From Both Of This Because iam having some error now after adding these lines
$mail->addCustomHeader("X-MSMail-Priority", "High");
$mail->addCustomHeader("Importance", "High");
$mail->setFrom(CONTACTFORM_FROM_ADDRESS, CONTACTFORM_FROM_NAME);
return $mail;
$mail->addCustomHeader(“X-Priority”, “1”);
$mail->addCustomHeader(“X-MSMail-Priority”, “High”);
$mail->addCustomHeader(“Importance”, “High”);
$mail->setFrom(CONTACTFORM_FROM_ADDRESS, CONTACTFORM_FROM_NAME);
return $mail;
Oxy
December 8, 2023, 10:41am
2
I don’t have much time right now but the first thing I noticed is that you have the wrong quotation marks
this is what they should look like
9 Likes
yea but some admin said that before You should marks these kinds of things as Quotations also they can work and that would be proper php so i m waiting for that admin response what they actually says on this
YT_Xaos
December 8, 2023, 10:52am
4
The file manager is not to blame. PHP will only interpret regular double quotation marks or regular apostrophes (also called single quotation marks), not whichever quotation marks you’re using.
12 Likes
$mail->addCustomHeader(“X-Priority”, “1”);
$mail->addCustomHeader(“X-MSMail-Priority”, “High”);
$mail->addCustomHeader(“Importance”, “High”);
so this is Totally wrong Right ??
2 Likes
Oxy
December 8, 2023, 11:21am
6
you see when I put your text/code inside the code formatting
you can literally see that you have wrong quotes
how it will look depends on which program you write it in and how it encodes chars and what it uses as charset
and also how this forum prints the same
11 Likes
system
Closed
December 15, 2023, 11:21am
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.