email - (php) Does mail() save the "sent mail"? -


i use mail() in php send mails.

i don't know mail() , have send mail without saving mails sent.

in general mailing service such gmail, there "sent" page displays mails sent. (after log in, can access via here)

it means google saves mails sent in db. mail() save too?

if does, how can not save?

no, php mail() function contacts directly configured (possibly local) mail server forwards destination. saving e-mails in sent folder application (google mail, thunderbird, outlook) explicitely you.

if want save mail in google account, need kind of imap library save mail or send every mail in bcc account , create filter automatically move them sent folder.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -