How to set the email sending system user name

Source: Internet
Author: User
Tags php introduction
How can I set the user name of the email sending system? this is the email received in the inbox after the email sending code is sent. why is the name 13435243125 instead of the email name I set! How to Change

This is my code


Reply to discussion (solution)

No one!

Dude, you didn't write the sender's information at all. you didn't see the sender! You only wrote the server mailbox and title without username

Dude, you didn't write the sender's information at all. you didn't see the sender! You only wrote the server mailbox and title without username
Beginner, how to write code! Can I send it down,

// Load the class library PHPMailerrequire ("lib/PHPMailer_v5.1/class. phpmailer. php "); // instantiate PHPMailerdate_default_timezone_set (" Asia/Shanghai "); // Set the time zone to GMT + 8 $ mail = new PHPMailer (); $ mail-> IsHTML (true ); // whether the email is in HTML format $ mail-> CharSet = "GBK"; // specify the character set here! $ Mail-> Encoding = "base64"; $ mail-> IsSMTP (); // enable SMTP $ mail-> Host = "smtp.qq.com "; // SMTP server $ mail-> SMTPAuth = true; // enable SMTP Authentication $ mail-> Username = "sss.com "; // SMTP username $ mail-> Password = "fqddind"; // SMTP Password $ mail-> From = "sss "; // sender address $ mail-> FromName = "aaaa"; // sender $ mail-> AddAddress ('SSSS '); // add recipient $ mail-> AddReplyTo ("s@qq.com", "sss"); // reply address $ mail-> WordWrap = 100; // set the length of each line

Download phpmailer and instantiate it. it's easy to fill in the corresponding parameters. ask again if you have any questions.

PHP code? 1234567891011121314151617181920 // load the class library PHPMailer require ("lib/PHPMailer_v5.1/class. phpmailer. php"); // instantiate PHPMailer date_default_timezone_set ("Asia/Shanghai"); // Set ......
Er, isn't phpmailer a class? Why are there so many files!

Yes is a class
Class must also be put into the file --

Reference the reply from nzr_dream on the 4th floor:
PHP code? 1234567891011121314151617181920 // load the class library PHPMailer require ("lib/PHPMailer_v5.1/class. phpmailer. php"); // instantiate PHPMailer date_default_timezone_set ("Asia/Shanghai"); // Set ......

Er, isn't phpmailer a class? Why are there so many files!

Whatever your Directory
Class. phpmailer. php can be instantiated for operations!

Take a closer look at the class. phpmailer. php introduction.
Http://zixun2008.blog.163.com/blog/static/64221266201072854026244/
Hope to help you

Yes is a class
Class must also be put into the file --
Q: How big is the class. phpmailer. php file! Is there a website for me? now I have one, but he has reported an error,

Take a closer look at the class. phpmailer. php introduction.
Http://zixun2008.blog.163.com/blog/static/64221266201072854026244/
Hope to help you
You do not have a good phpmailer download URL that does not need to modify errors or warnings!

Q: How big is the class. phpmailer. php file! Is there a website for me? now I have one, but he has reported an error,

The size is about 300 or 400 kb. you 'd better paste the code and check it out.

It is best not to touch the original thing, because there is a require relationship between the entire folder 300 or 400 kb





This is the case. he can also send emails! But there are several warnings! I have been searching for a long time and cannot find the character encoding settings! His code has more than one thousand lines of interpreted code, so I only put the error!

It is best not to touch the original thing, because there is a require relationship between the entire folder 300 or 400 kb
I downloaded several! They are: 1.2 M 103Kb 34KB! The first two are all three files and one folder after many files! I am using the one next to it. It can also be sent successfully, but his character encoding is faulty! I don't know where to set it. I couldn't find it for a while! 201728259324 do you have time?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.